class Aoc::Day22
- Aoc::Day22
- Aoc::Day
- Reference
- Object
Defined in:
day/22.crInstance Method Summary
- #first(input)
-
#recursive_combat(p1_cards, p2_cards, previous_rounds) : Tuple(Bool, Array(Int32), Bool)
returns whether P1 won, the winner's deck of cards, and whether there was a repeat round
- #second(input)
Instance methods inherited from class Aoc::Day
first(input : Array(String))
first,
second(input : Array(String))
second
Instance Method Detail
def recursive_combat(p1_cards, p2_cards, previous_rounds) : Tuple(Bool, Array(Int32), Bool)
#
returns whether P1 won, the winner's deck of cards, and whether there was a repeat round