Day 2: Rock Paper Scissors

Day 2 involves implementing the rules of Rock Paper Scissors and calculating scores based on different strategy interpretations.

Problem Overview

You need to play Rock Paper Scissors against elves. Given an encrypted strategy guide with two columns, you need to:

  1. Calculate your total score following the first interpretation of the guide
  2. Calculate your total score following the second interpretation of the guide

Your score for each round is the sum of:

  • Points for the shape you selected (1 for Rock, 2 for Paper, 3 for Scissors)
  • Points for the outcome (0 for loss, 3 for draw, 6 for win)