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: object

The 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: object

The class

line: list[int]
outcome: OverEvent
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, Enum

Represents 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.

WHITE

The white player’s point of view.

Type:

PointOfView

BLACK

The black player’s point of view.

Type:

PointOfView

PLAYER_TO_MOVE

The point of view of the player who is currently making a move.

Type:

PointOfView

NOT_PLAYER_TO_MOVE

The point of view of the player who is not currently making a move.

Type:

PointOfView

BLACK = 'black'
NOT_PLAYER_TO_MOVE = 'not_player_to_move'
PLAYER_TO_MOVE = 'player_to_move'
WHITE = 'white'

Module contents