pacosako icon indicating copy to clipboard operation
pacosako copied to clipboard

When all pieces are united, game does not draw

Open kreibaum opened this issue 2 years ago • 3 comments

This can be seen in https://pacoplay.com/game/5080

kreibaum avatar Oct 11 '22 15:10 kreibaum

Added AI label, because this is a candidate for the spurious non-ending games that Thomas saw.

kreibaum avatar Jan 02 '23 20:01 kreibaum

With the relatively new DrawState struct which already does reset_half_move_counter on union-addition and promotion, this should now be relatively cheap. I just need the reset_half_move_counter to know if this is a promotion or a union-addition.

kreibaum avatar Jan 02 '23 20:01 kreibaum

On a bitboard implementation, this would just be "white pieces" xor "black pieces" |> count_ones |> (==2)

kreibaum avatar Aug 14 '23 15:08 kreibaum