Skip Navigation
Advent of Code @lemmy.world mykl @lemmy.world

Nadvent of Code - 2022 Day 2

dartpad.dev DartPad

An online Dart editor with support for console, web, and Flutter apps.

As a warmup for this year's Advent of Code, I'm re-reading and posting my solutions to last year's challenges. You can read or run today's solution by following the link above.

Day 2 involved playing Rock Paper Scissors following a strategy guide. I solved part one by building a simple look-up table encoding the provided score values. Solving part two just required building a second lookup table to key into that first table.

0
0 comments