Skip to content

Commit

Permalink
Merge pull request #234 from sopra-fs24-group-09/phase_time
Browse files Browse the repository at this point in the history
change guess phase time to 60s
  • Loading branch information
Zehao-Zhang authored May 23, 2024
2 parents 21c857c + 901447d commit d7ac1c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void proceedTurn(Game game) {
guessPhase(game);

try {
Thread.sleep(30000);
Thread.sleep(60000);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
Expand Down Expand Up @@ -315,7 +315,7 @@ public void speakPhase(Game game) {
}

public void guessPhase(Game game) {
game.setRoundDue(String.valueOf(ZonedDateTime.now(ZoneId.of("UTC")).plusSeconds(30)));
game.setRoundDue(String.valueOf(ZonedDateTime.now(ZoneId.of("UTC")).plusSeconds(60)));
gameRepository.save(game);
socketService.broadcastGameinfo(game.getRoomId(), "guess");
socketService.broadcastPlayerInfo(game.getRoomId(), "guess");
Expand Down

0 comments on commit d7ac1c9

Please sign in to comment.