chipiron.players.boardevaluators.board_evaluation package
Submodules
chipiron.players.boardevaluators.board_evaluation.board_evaluation module
_ Module for the BoardEvaluation class and the PointOfView enumeration.
- class chipiron.players.boardevaluators.board_evaluation.board_evaluation.FloatyBoardEvaluation(value_white: float | None)[source]
Bases:
objectThe class to defines what is an evaluation of a board. By convention is it always evaluated from the view point of the white side.
- value_white: float | None
- class chipiron.players.boardevaluators.board_evaluation.board_evaluation.ForcedOutcome(outcome: OverEvent, line: list[int])[source]
Bases:
objectThe class
- line: list[int]
- class chipiron.players.boardevaluators.board_evaluation.board_evaluation.PointOfView(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
str,EnumRepresents the point of view in a game.
This enumeration defines the possible points of view in a game, including: - WHITE: Represents the white player’s point of view. - BLACK: Represents the black player’s point of view. - PLAYER_TO_MOVE: Represents the point of view of the player who is currently making a move. - NOT_PLAYER_TO_MOVE: Represents the point of view of the player who is not currently making a move.
- Variables:
WHITE (PointOfView) – The white player’s point of view.
BLACK (PointOfView) – The black player’s point of view.
PLAYER_TO_MOVE (PointOfView) – The point of view of the player who is currently making a move.
NOT_PLAYER_TO_MOVE (PointOfView) – The point of view of the player who is not currently making a move.
- BLACK = 'black'
- NOT_PLAYER_TO_MOVE = 'not_player_to_move'
- PLAYER_TO_MOVE = 'player_to_move'
- WHITE = 'white'