diff options
Diffstat (limited to 'sw-engine/src/test/kotlin')
-rw-r--r-- | sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt index 62267c7a..a2e75a5f 100644 --- a/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt +++ b/sw-engine/src/test/kotlin/org/luxons/sevenwonders/engine/GameTest.kt @@ -65,10 +65,10 @@ class GameTest { moveExpectations.forEach { game.prepareMove(it.playerIndex, it.moveToSend) } assertTrue(game.allPlayersPreparedTheirMove()) - val table = game.playTurn() + game.playTurn() val expectedMoves = moveExpectations.map { it.expectedPlayedMove } - assertEquals(expectedMoves, table.lastPlayedMoves) + assertEquals(expectedMoves, game.getCurrentTurnInfo()[0].table.lastPlayedMoves) } private fun PlayerTurnInfo.firstAvailableMove(): MoveExpectation? = when (action) { |