module DayTwo

Defined in:

aoc2022/day_two.cr

Constant Summary

CHOICES = {"A" => ["C", "A", "B"] of ::String, "B" => ["A", "B", "C"] of ::String, "C" => ["B", "C", "A"] of ::String}
POINTS = {"A X" => 4, "A Y" => 8, "A Z" => 3, "B X" => 1, "B Y" => 5, "B Z" => 9, "C X" => 7, "C Y" => 2, "C Z" => 6}
SHAPE_POINTS = {"A" => 1, "B" => 2, "C" => 3}

Class Method Summary

Class Method Detail

def self.part_one(input) #

[View source]
def self.part_two(input : String) #

[View source]