summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt1
1 files changed, 0 insertions, 1 deletions
diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt
index 01026722..e8d9ab40 100644
--- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt
+++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt
@@ -11,7 +11,6 @@ internal fun List<Card>.deal(nbPlayers: Int): Hands {
internal class Decks(private val cardsPerAge: Map<Int, List<Card>>) {
- @Throws(Decks.CardNotFoundException::class)
fun getCard(age: Int, cardName: String): Card =
getDeck(age).firstOrNull { c -> c.name == cardName } ?: throw CardNotFoundException(cardName)
bgstack15