class Aoc2022::Day2
- Aoc2022::Day2
- Aoc2022::Day
- Reference
- Object
Defined in:
aoc2022/days/day2.crConstant Summary
-
MY_SHAPES =
{"X" => Shape::ROCK, "Y" => Shape::PAPER, "Z" => Shape::SCISSORS}
-
OPONENT_SHAPES =
{"A" => Shape::ROCK, "B" => Shape::PAPER, "C" => Shape::SCISSORS}
-
WINS =
{Shape::ROCK => Shape::SCISSORS, Shape::PAPER => Shape::ROCK, Shape::SCISSORS => Shape::PAPER}