Skip to content
Snippets Groups Projects
Commit e53a58ab authored by AREZKI Celia's avatar AREZKI Celia
Browse files

BoardBehavior : add the documentation

parent 0cbe8bd1
Branches
No related tags found
No related merge requests found
package model; package model;
import util.Position; import util.Position;
import java.util.List; import java.util.List;
public interface BoardBehavior { public interface BoardBehavior<S> {
public int stepNumber(); // Numéro de l'étape actuelle. /**
public List<Position> updateToNextGeneration(); * Get the current step number or generation of the board.
public void reset(); *
* @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();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment