aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-01-19 00:31:38 +0100
committereug-vs <eugene@eug-vs.xyz>2024-01-19 00:31:38 +0100
commitef920929c641613413dd74ce2569c1ffc3c5f54b (patch)
tree3a32cc4c0560fa55574aacf330bdc63a4dbfb684
parentd03c8f026d660d8e1f828f8e4e6ad48df61f1566 (diff)
downloadchessnost-ef920929c641613413dd74ce2569c1ffc3c5f54b.tar.gz
feat: store draws in ttable
-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
}