Expand description
Advent of Code 2022 Day 2: https://adventofcode.com/2022/day/2
Since the total number of combinations is so small (9 for every possible outcome) I have solved this by doing a static lookup for any given input.
The difference between part one and two only change the point value assigned to each outcome (depending on whether the second letter i.e., your move means what to play or what to do).
Functions§
- The solution for the day two challenge.