Exemple #1
0
 def __init__(self, *args, **kwargs):
     #same constructor, just added fields for opening book and table base
     Board.__init__(self, *args, **kwargs)
     # table of values for endgames of 3,4, and 5 pieces, showing how many moves until mate, or if position is drawn
     self.end_tablebase = chess.syzygy.open_tablebase("3-4-5")
     # here you can add directorys to the table base for more pieces (6 and 7), which takes many terrabytes
     self.end_tablebase_num_of_pieces = [3, 4, 5]
     # book of opening positions from which to play, if position has been encountered
     self.opening_memory_map = chess.polyglot.MemoryMappedReader("ProDeo.bin")
 def __init__(self, fen=STARTING_FEN):
     Board.__init__(self, fen)
 def __init__(self,
              fen: Optional[str] = STARTING_FEN,
              *,
              chess960: bool = False):
     Board.__init__(self)