Skip to content

Commit

Permalink
Fixes UCI received binc in seconds instead on ms
Browse files Browse the repository at this point in the history
  • Loading branch information
fathzer committed Apr 26, 2024
1 parent 7ec01e4 commit ccc7de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/fathzer/jchess/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private Move getMove(Engine engine) throws IOException {
} else {
final long remainingTime = clock.getRemaining(clock.getPlaying());
final ClockSettings clockSettings = clock.getCurrentSettings(clock.getPlaying());
final int increment = clockSettings.getIncrement()>0 ? clockSettings.getIncrement()/clockSettings.getMovesNumberBeforeIncrement() : 0;
final int increment = clockSettings.getIncrement()>0 ? clockSettings.getIncrement()*1000/clockSettings.getMovesNumberBeforeIncrement() : 0;
final int movesToGo = clock.getRemainingMovesBeforeNext(clock.getPlaying());
params = new CountDownState(remainingTime, increment, movesToGo);
}
Expand Down

0 comments on commit ccc7de9

Please sign in to comment.