Class ResignedGameState


public class ResignedGameState extends ControlGameState
A game state that represents a player resigning from a game.
  • Constructor Details

    • ResignedGameState

      public ResignedGameState(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType player)
      Instantiates a game state representing a player resigning from a game.
      Parameters:
      board - The state of the pieces on the board.
      lightPlayer - The state of the light player.
      darkPlayer - The state of the dark player.
      timeSinceGameStartMs - The time this state was created.
      player - The player who resigned the game.
  • Method Details

    • describe

      public String describe()
      Description copied from class: GameState
      Generates an English text description of the state of the game.
      Specified by:
      describe in class GameState
      Returns:
      An English text description of the state of the game.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class ControlGameState