diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-01-19 00:31:38 +0100 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-01-19 00:31:38 +0100 |
commit | ef920929c641613413dd74ce2569c1ffc3c5f54b (patch) | |
tree | 3a32cc4c0560fa55574aacf330bdc63a4dbfb684 /src/grossmeister | |
parent | d03c8f026d660d8e1f828f8e4e6ad48df61f1566 (diff) | |
download | chessnost-ef920929c641613413dd74ce2569c1ffc3c5f54b.tar.gz |
feat: store draws in ttable
Diffstat (limited to 'src/grossmeister')
-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 } |