diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 00:12:54 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-12-13 00:12:54 +0100 |
commit | 223dc654f0ba558a12c03f0b19ce1dd289258487 (patch) | |
tree | 728a90b52af3d4bda51bd7f4073a046a1edcb874 /sw-engine/src/test/kotlin | |
parent | Add docker tags based on commit SHA (diff) | |
download | seven-wonders-223dc654f0ba558a12c03f0b19ce1dd289258487.tar.gz seven-wonders-223dc654f0ba558a12c03f0b19ce1dd289258487.tar.bz2 seven-wonders-223dc654f0ba558a12c03f0b19ce1dd289258487.zip |
Reduce number of TableState creations
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) { |