Game¶
-
class
games.chess.game.
Game
¶ Bases:
joueur.base_game.BaseGame
The class representing the Game in the Chess game.
The traditional 8x8 chess board with pieces.
-
property
fen
¶ Forsyth-Edwards Notation (fen), a notation that describes the game board state.
- Type
str
-
property
game_objects
¶ A mapping of every game object’s ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID.
- Type
dict[str, games.chess.game_object.GameObject]
-
get_game_object
(id: str) → Optional[joueur.base_game_object.BaseGameObject]¶ gets the game object with the given id, or None
- Returns
BaseGameObject in the game with the given id, or None if not found
-
property
history
¶ The list of [known] moves that have occurred in the game, in Universal Chess Interface (UCI) format. The first element is the first move, with the last element being the most recent.
- Type
list[str]
-
property
players
¶ List of all the players in the game.
- Type
-
property
session
¶ A unique identifier for the game instance that is being played.
- Type
str
-
property