jhonnold / berserk

UCI Chess Engine written in C
GNU General Public License v3.0
202 stars 32 forks source link

Continuation History Fix #367

Closed jhonnold closed 2 years ago

jhonnold commented 2 years ago

Bench: 3614027

It was originally assumed that even if a parent move didn’t exist, it wouldn’t have an impact on the resulting history. This is not the case as it is represented the same as a pawn promotion to a8. This is a small fix that checks the move exists prior to pulling from history.

Only ran STC as this is mostly a slow down concern.

ELO | 1.88 +- 3.74 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 2.94 (-2.94, 2.94) [-4.00, 1.00] GAMES | N: 15728 W: 3785 L: 3700 D: 8243