Skip to content

Commit

Permalink
allow restarts to turn 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mrosack committed Apr 6, 2024
1 parent 0fcf0dd commit b857ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/controllers/gameController/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export class GameController_Restart {
throw new HttpResponseError(400, 'Game must be in progress to restart!');
}

if (game.round > 2) {
throw new HttpResponseError(400, 'Cannot restart game after round 2!');
if (game.round > 10) {
throw new HttpResponseError(400, 'Cannot restart game after round 10!');
}

const turns = await this.gameTurnRepository.getTurnsForGame(gameId, 0, 1000);
Expand Down

0 comments on commit b857ca8

Please sign in to comment.