aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grossmeister/search.rs3
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
}