mirror of
https://github.com/SleepingInsomniac/lx_chess_cr
synced 2024-11-16 19:49:34 +01:00
Fix off by one error
This commit is contained in:
parent
ccd3e93460
commit
1608aa7b90
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module LxChess
|
|||
castling = fen.castling
|
||||
en_passant_target = fen.en_passant
|
||||
@fifty_move_rule = fen.halfmove_clock
|
||||
@move_clock = fen.fullmove_counter * 2
|
||||
@move_clock = (fen.fullmove_counter - 1) * 2
|
||||
@move_clock += 1 if fen.turn == "b"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue