mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fixed a bug that the game play is invalid.
This commit is contained in:
parent
07dc336b0f
commit
57ead90f18
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ struct SfenPacker
|
||||||
|
|
||||||
stream.write_n_bit(pos.state()->rule50, 6);
|
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);
|
assert(stream.get_cursor() <= 256);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue