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.

No comments yet!

Advent of Code

!adventofcode@lemmy.world

Create post

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

Community stats

  • 7

    Monthly active users

  • 39

    Posts

  • 2

    Comments