diff options
Diffstat (limited to 'backend/src/main/kotlin')
-rw-r--r-- | backend/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt b/backend/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt index 0cee6531..b37c9c7c 100644 --- a/backend/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt +++ b/backend/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt @@ -79,13 +79,12 @@ class GameController @Autowired constructor( val preparedCardBack = game.prepareMove(player.index, action.move) val preparedCard = PreparedCard(player.toDTO(principal.name), preparedCardBack) logger.info("Game {}: player {} prepared move {}", game.id, principal.name, action.move) + sendPreparedCard(game.id, preparedCard) if (game.allPlayersPreparedTheirMove()) { logger.info("Game {}: all players have prepared their move, executing turn...", game.id) val table = game.playTurn() sendPlayedMoves(game.id, table) - } else { - sendPreparedCard(game.id, preparedCard) } } |