|
|
|
@ -182,10 +182,10 @@ class StreetCardsRow(var street: Street, var handHistory: HandHistory) : CardsRo |
|
|
|
Street.PREFLOP.ordinal -> listOf() |
|
|
|
Street.PREFLOP.ordinal -> listOf() |
|
|
|
Street.FLOP.ordinal -> cards.take(3) |
|
|
|
Street.FLOP.ordinal -> cards.take(3) |
|
|
|
Street.TURN.ordinal -> { |
|
|
|
Street.TURN.ordinal -> { |
|
|
|
if (cards.size > 3) { listOf(cards[4]!!) } else { null } |
|
|
|
if (cards.size > 3) { listOf(cards[3]!!) } else { null } |
|
|
|
} |
|
|
|
} |
|
|
|
Street.RIVER.ordinal -> { |
|
|
|
Street.RIVER.ordinal -> { |
|
|
|
if (cards.size > 4) { listOf(cards[5]!!) } else { null } |
|
|
|
if (cards.size > 4) { listOf(cards[4]!!) } else { null } |
|
|
|
} |
|
|
|
} |
|
|
|
else -> throw PAIllegalStateException("unmanaged tag $tag") |
|
|
|
else -> throw PAIllegalStateException("unmanaged tag $tag") |
|
|
|
} |
|
|
|
} |
|
|
|
|