Commit 7d6ac67
authored
Consider repetitions in TB probing (#1027)
has_repeated was hardcoded to false, so Fathom never knew if the root
position had repeated before, and could rank a drawn position as a win.
Search usually catches this via upcoming_repetition and is_draw, but
when DTZ succeeds we stop probing TB in search. The wrong score then
gets written to TT and returned via TT cutoff before any repetition
check can correct it, which might cause the engine to report an
incorrect eval.
Bench: 28519481 parent 4a2efd5 commit 7d6ac67
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments