SebLague / Chess-Coding-Adventure

A work-in-progress chess bot written in C#
https://youtu.be/U4ogK0MIzqk
MIT License
1.45k stars 303 forks source link

Fixed bug with Zobrist Key updates #15

Closed Eliagiac closed 1 year ago

Eliagiac commented 1 year ago

Fixed #14.

As explained in #14, the Zobrist Key was not updating properly after a double pawn push.

This was fixed using the methodology described in #14, by always updating the key with both the old and the new en passant file, in case the two don't match.

The opening book was also regenerated, now with the correct Zobrist keys.