class Aoc::Day22

Defined in:

day/22.cr

Instance Method Summary

Instance methods inherited from class Aoc::Day

first(input : Array(String)) first, second(input : Array(String)) second

Instance Method Detail

def first(input) #

[View source]
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


[View source]
def second(input) #

[View source]