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

Represents a message containing evaluation information.

evaluation_stock

The evaluation for the stock.

Type:

Any

evaluation_chipiron

The evaluation for the chipiron.

Type:

Any

evaluation_player_black

The evaluation for the black player. Defaults to None.

Type:

Any, optional

evaluation_player_white

The evaluation for the white player. Defaults to None.

Type:

Any, optional

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

Represents a message indicating a request to go back one move.

class chipiron.utils.communication.gui_messages.game_status_message.GameStatusMessage(status: PlayingStatus)[source]

Bases: object

Represents a message containing the current game status.

status

The playing status of the game.

Type:

PlayingStatus

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

Represents a message containing the match results that are sent to the GUI from the game.

match_results

The match results object containing the details of the match.

Type:

MatchResults

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

Represents a message containing evaluation information.

evaluation_stock

The evaluation for the stock.

Type:

Any

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

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

Represents a message containing evaluation information.

evaluation_stock

The evaluation for the stock.

Type:

Any

evaluation_chipiron

The evaluation for the chipiron.

Type:

Any

evaluation_player_black

The evaluation for the black player. Defaults to None.

Type:

Any, optional

evaluation_player_white

The evaluation for the white player. Defaults to None.

Type:

Any, optional

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

Represents a message containing the current game status.

status

The playing status of the game.

Type:

PlayingStatus

status: PlayingStatus
class chipiron.utils.communication.gui_messages.PlayerProgressMessage(progress_percent: int | None, player_color: bool)[source]

Bases: object

Represents a message containing evaluation information.

evaluation_stock

The evaluation for the stock.

Type:

Any

player_color: bool
progress_percent: int | None