Add log for soft limit reach, tweak values, clippy

This commit is contained in:
stefiosif
2025-01-28 00:21:19 +02:00
parent ccba6451aa
commit 3f08e194f4
3 changed files with 5 additions and 5 deletions

View File

@@ -15,8 +15,7 @@ impl TranspositionTable {
}
pub fn lookup(&self, zobrist_hash: ZobristHash) -> Option<&TTEntry> {
self
.positions
self.positions
.get((zobrist_hash.0 % self.size) as usize)
.and_then(|entry| entry.as_ref())
}