1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 11:39:15 +00:00

Fixed a bug that the game play is invalid.

This commit is contained in:
Hisayori Noda 2019-06-22 00:38:24 +09:00
parent 07dc336b0f
commit 57ead90f18

View file

@ -197,7 +197,7 @@ struct SfenPacker
stream.write_n_bit(pos.state()->rule50, 6);
stream.write_n_bit(pos.game_ply(), 8);
stream.write_n_bit(1 + (pos.game_ply() - (pos.side_to_move() == BLACK)) / 2, 8);
assert(stream.get_cursor() <= 256);
}