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:
- Calculate your total score following the first interpretation of the guide
- 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)
Navigation
- Problem Description: Detailed description of the day's challenge
- Solution Explanation: Walkthrough of the approach used
- Code: The complete implementation with comments