diff --git a/src/main/java/model/BoardBehavior.java b/src/main/java/model/BoardBehavior.java index cf02e8d51b15f2ab1a27c662fea95c457756a2fb..be7af5381534061990fc176bb7cd528b188e734d 100644 --- a/src/main/java/model/BoardBehavior.java +++ b/src/main/java/model/BoardBehavior.java @@ -1,11 +1,27 @@ package model; import util.Position; - import java.util.List; -public interface BoardBehavior { - public int stepNumber(); // Numéro de l'étape actuelle. - public List<Position> updateToNextGeneration(); - public void reset(); +public interface BoardBehavior<S> { + /** + * Get the current step number or generation of the board. + * + * @return The current step number or generation. + */ + int stepNumber(); + + /** + * Update the board to its next generation or state. This method may modify the + * internal state of the board and return a list of positions that have changed + * during the update. + * + * @return A list of positions that have changed during the update. + */ + List<Position> updateToNextGeneration(); + + /** + * Reset the board to its initial state. + */ + void reset(); }