Skip to content

Commit

Permalink
📦 NEW: No mate score for tablebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ianagbip1oti committed Dec 18, 2023
1 parent a777257 commit 8f6fa71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/search_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ impl SearchTree {
}

evaln = match node.flag {
Flag::TerminalWin | Flag::TablebaseWin => 2 * SCALE as i64,
Flag::TerminalLoss | Flag::TablebaseLoss => -2 * SCALE as i64,
Flag::TerminalWin => 2 * SCALE as i64,
Flag::TerminalLoss => -2 * SCALE as i64,
Flag::TablebaseWin => SCALE as i64,
Flag::TablebaseLoss => -SCALE as i64,
Flag::TerminalDraw | Flag::TablebaseDraw => 0,
Flag::Standard => evaln,
};
Expand Down

0 comments on commit 8f6fa71

Please sign in to comment.