chessai.chess.game
1import random 2 3import chessai.chess.gamestate 4import chessai.core.agentinfo 5import chessai.core.board 6import chessai.core.game 7import chessai.core.gamestate 8 9RANDOM_BOARD_PREFIX: str = 'random' 10 11class Game(chessai.core.game.Game): 12 """ 13 A game following the standard rules of Chess. 14 """ 15 16 def get_initial_state(self, 17 rng: random.Random, 18 fen: str | None = None) -> chessai.core.gamestate.GameState: 19 return chessai.chess.gamestate.GameState.from_fen(fen = fen)
RANDOM_BOARD_PREFIX: str =
'random'
12class Game(chessai.core.game.Game): 13 """ 14 A game following the standard rules of Chess. 15 """ 16 17 def get_initial_state(self, 18 rng: random.Random, 19 fen: str | None = None) -> chessai.core.gamestate.GameState: 20 return chessai.chess.gamestate.GameState.from_fen(fen = fen)
A game following the standard rules of Chess.
def
get_initial_state( self, rng: random.Random, fen: str | None = None) -> chessai.core.gamestate.GameState:
17 def get_initial_state(self, 18 rng: random.Random, 19 fen: str | None = None) -> chessai.core.gamestate.GameState: 20 return chessai.chess.gamestate.GameState.from_fen(fen = fen)
Create the initial state for this game.