mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00:00
Fixed a bug that the game play is invalid.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user