From ef920929c641613413dd74ce2569c1ffc3c5f54b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 19 Jan 2024 00:31:38 +0100 Subject: feat: store draws in ttable --- src/grossmeister/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3