Skip to content
Snippets Groups Projects
Select Git revision
  • 0a9dd374c29793659005dba8216260324b90de0f
  • main default protected
  • variant
3 results

BoardBehavior.java

Blame
  • Forked from COUETOUX Basile / FirefighterStarter
    114 commits ahead of the upstream repository.
    user avatar
    Sarah CHERCHEM authored
    cfd778da
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    BoardBehavior.java 678 B
    package model;
    
    import util.Position;
    import java.util.List;
    
    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();
    }