diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-07-01 02:01:33 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-07-01 02:01:33 +0200 |
commit | ab794ae09c8d8b8244dd4e1fe1cfd97199b67b1e (patch) | |
tree | 68a4bbf2ec4fbe05a2038eb74fcb540c39decc5d /sw-engine | |
parent | Add buttons to randomly reassign wonders and reorder players (diff) | |
download | seven-wonders-ab794ae09c8d8b8244dd4e1fe1cfd97199b67b1e.tar.gz seven-wonders-ab794ae09c8d8b8244dd4e1fe1cfd97199b67b1e.tar.bz2 seven-wonders-ab794ae09c8d8b8244dd4e1fe1cfd97199b67b1e.zip |
Fix style
Diffstat (limited to 'sw-engine')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/DecksDefinition.kt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/DecksDefinition.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/DecksDefinition.kt index c4f8cdc7..e4dfb8fd 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/DecksDefinition.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/DecksDefinition.kt @@ -9,10 +9,7 @@ internal class DeckDefinition( val cards: List<CardDefinition>, val backImage: String ) { - fun create(nbPlayers: Int): List<Card> = cards.flatMap { it.create( - CardBack( - backImage - ), nbPlayers) } + fun create(nbPlayers: Int): List<Card> = cards.flatMap { it.create(CardBack(backImage), nbPlayers) } } internal class DecksDefinition( |