def tt_store(self, board: Board, entry: TTEntry): key = board._transposition_key() self.hashtable[key] = entry
def tt_lookup(self, board: Board) -> "TTEntry": key = board._transposition_key() return self.hashtable.get(key, TTEntry.default())