diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/grossmeister/search.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs index eafb8a7..45d2330 100644 --- a/src/grossmeister/search.rs +++ b/src/grossmeister/search.rs @@ -155,12 +155,13 @@ impl Grossmeister { if self.board.is_king_in_check(color) { return -SCORE_MATE + root_distance as Score } else { + transposition.score = 0.0; + self.store_transposition(transposition); return 0.0 } } self.store_transposition(transposition); - alpha } |