chipiron.utils.communication.gui_messages package
Submodules
chipiron.utils.communication.gui_messages.evaluation_messsage module
Module for the EvaluationMessage class.
- class chipiron.utils.communication.gui_messages.evaluation_messsage.EvaluationMessage(evaluation_stock: Any, evaluation_chipiron: Any, evaluation_player_black: Any = None, evaluation_player_white: Any = None)[source]
Bases:
objectRepresents a message containing evaluation information.
- Variables:
evaluation_stock (Any) – The evaluation for the stock.
evaluation_chipiron (Any) – The evaluation for the chipiron.
evaluation_player_black (Any, optional) – The evaluation for the black player. Defaults to None.
evaluation_player_white (Any, optional) – The evaluation for the white player. Defaults to None.
- evaluation_chipiron: Any
- evaluation_player_black: Any = None
- evaluation_player_white: Any = None
- evaluation_stock: Any
chipiron.utils.communication.gui_messages.game_status_message module
Module that contains the GameStatusMessage class.
- class chipiron.utils.communication.gui_messages.game_status_message.BackMessage[source]
Bases:
objectRepresents a message indicating a request to go back one move.
- class chipiron.utils.communication.gui_messages.game_status_message.GameStatusMessage(status: PlayingStatus)[source]
Bases:
objectRepresents a message containing the current game status.
- Variables:
status (PlayingStatus) – The playing status of the game.
- status: PlayingStatus
chipiron.utils.communication.gui_messages.gui_messages module
Module that contains the GUI messages that are sent to the GUI from the game.
- class chipiron.utils.communication.gui_messages.gui_messages.MatchResultsMessage(match_results: MatchResults)[source]
Bases:
objectRepresents a message containing the match results that are sent to the GUI from the game.
- Variables:
match_results (MatchResults) – The match results object containing the details of the match.
- match_results: MatchResults
chipiron.utils.communication.gui_messages.progress_messsage module
Module for the ProgressMessage class.
- class chipiron.utils.communication.gui_messages.progress_messsage.PlayerProgressMessage(progress_percent: int | None, player_color: bool)[source]
Bases:
objectRepresents a message containing evaluation information.
- Variables:
evaluation_stock (Any) – The evaluation for the stock.
- player_color: bool
- progress_percent: int | None
Module contents
Module containing the different messages that can be sent to the GUI.
- class chipiron.utils.communication.gui_messages.BackMessage[source]
Bases:
objectRepresents a message indicating a request to go back one move.
- class chipiron.utils.communication.gui_messages.EvaluationMessage(evaluation_stock: Any, evaluation_chipiron: Any, evaluation_player_black: Any = None, evaluation_player_white: Any = None)[source]
Bases:
objectRepresents a message containing evaluation information.
- Variables:
evaluation_stock (Any) – The evaluation for the stock.
evaluation_chipiron (Any) – The evaluation for the chipiron.
evaluation_player_black (Any, optional) – The evaluation for the black player. Defaults to None.
evaluation_player_white (Any, optional) – The evaluation for the white player. Defaults to None.
- evaluation_chipiron: Any
- evaluation_player_black: Any = None
- evaluation_player_white: Any = None
- evaluation_stock: Any
- class chipiron.utils.communication.gui_messages.GameStatusMessage(status: PlayingStatus)[source]
Bases:
objectRepresents a message containing the current game status.
- Variables:
status (PlayingStatus) – The playing status of the game.
- status: PlayingStatus
- class chipiron.utils.communication.gui_messages.PlayerProgressMessage(progress_percent: int | None, player_color: bool)[source]
Bases:
objectRepresents a message containing evaluation information.
- Variables:
evaluation_stock (Any) – The evaluation for the stock.
- player_color: bool
- progress_percent: int | None