Пример #1
0
 def tt_store(self, board: Board, entry: TTEntry):
     key = board._transposition_key()    
     self.hashtable[key] = entry
Пример #2
0
 def tt_lookup(self, board: Board) -> "TTEntry":
     key = board._transposition_key()
     return self.hashtable.get(key, TTEntry.default())