lczerolens.play.game#

Preproces functions for chess games.

Attributes#

Classes#

Module Contents#

lczerolens.play.game.GAME_DATASET_FEATURES[source]#
lczerolens.play.game.BOARD_DATASET_FEATURES[source]#
class lczerolens.play.game.Game[source]#
gameid: str[source]#
moves: List[str][source]#
book_exit: int | None = None[source]#
classmethod from_dict(obj)[source]#
Parameters:

obj (Dict[str, str])

Return type:

Game

to_boards(n_history=0, skip_book_exit=False, skip_first_n=0, output_dict=True)[source]#
Parameters:
  • n_history (int)

  • skip_book_exit (bool)

  • skip_first_n (int)

Return type:

List[Union[Dict[str, Any], lczerolens.board.LczeroBoard]]

static board_collate_fn(batch)[source]#