pacosako
pacosako copied to clipboard
When all pieces are united, game does not draw
This can be seen in https://pacoplay.com/game/5080
Added AI label, because this is a candidate for the spurious non-ending games that Thomas saw.
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.
On a bitboard implementation, this would just be "white pieces" xor "black pieces" |> count_ones |> (==2)