chessfriend/board
Eryn Wells 182bf81126 [board] Fix a counter underflow in the piece set
During perft runs, the PieceSet counter would occasionally underflow, causing
the whole program to crash. This is because, when building a Board from a list
of bitboards, Counts::increment() was only being called once, even when the
bitboard had more than one piece in it. Fix the bug by incrementing during the
loop that sets up the mailbox.

Additionally, refactor the increment() and decrement() methods to be a little
more succinct.
2025-08-15 16:15:09 -07:00
..
src [board] Fix a counter underflow in the piece set 2025-08-15 16:15:09 -07:00
Cargo.toml [board, position] Implement Zobrist hashing 2025-06-05 08:22:34 -07:00