j_chess_lib.client package

Subpackages

Submodules

j_chess_lib.client.Client module

class j_chess_lib.client.Client.Client(connection: j_chess_lib.communication.connection.Connection.Connection, ai: j_chess_lib.ai.ai.AI, tournament_code: Optional[str] = None)[source]

Bases: threading.Thread

property ai: j_chess_lib.ai.ai.AI
base_msg() j_chess_lib.communication.schema.j_chess_message.JchessMessage[source]
property id: uuid.UUID
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

j_chess_lib.client.Exceptions module

exception j_chess_lib.client.Exceptions.ClientError[source]

Bases: Exception, abc.ABC

exception j_chess_lib.client.Exceptions.InterruptClient(error: j_chess_lib.communication.schema.j_chess_message.ErrorType)[source]

Bases: Exception

property error: j_chess_lib.communication.schema.j_chess_message.ErrorType
exception j_chess_lib.client.Exceptions.LoginFailedError[source]

Bases: j_chess_lib.client.Exceptions.ClientError

exception j_chess_lib.client.Exceptions.UnhandledMessageError(message: j_chess_lib.communication.schema.j_chess_message.JchessMessage)[source]

Bases: j_chess_lib.client.Exceptions.ClientError

exception j_chess_lib.client.Exceptions.WrongMessageType(message: j_chess_lib.communication.schema.j_chess_message.JchessMessage, expected_type: Tuple[j_chess_lib.communication.schema.j_chess_message.JchessMessageType, ...])[source]

Bases: j_chess_lib.client.Exceptions.ClientError

Module contents

class j_chess_lib.client.Client(connection: j_chess_lib.communication.connection.Connection.Connection, ai: j_chess_lib.ai.ai.AI, tournament_code: Optional[str] = None)[source]

Bases: threading.Thread

property ai: j_chess_lib.ai.ai.AI
base_msg() j_chess_lib.communication.schema.j_chess_message.JchessMessage[source]
property id: uuid.UUID
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.