|
|
@ -22,7 +22,6 @@ object Day2 { |
|
|
|
|
|
|
|
|
data class Game(val id: Int, val hands: List<Hand>) { |
|
|
data class Game(val id: Int, val hands: List<Hand>) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun isCompatibleWith(hand: Hand) = |
|
|
fun isCompatibleWith(hand: Hand) = |
|
|
hand.fitsIn(maxOfHands()) |
|
|
hand.fitsIn(maxOfHands()) |
|
|
|
|
|
|
|
|
|