103
SOLUTION MEGATHREAD-🎄- 2022 Day 2 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 4 days, 4 hours after) by daggerdragon to /r/adventofcode (134.8k)
NEW AND NOTEWORTHY
- All of our rules, FAQs, resources, etc. are in our [community wiki](/r/adve...
since 3 years, 1 month ago
2 of 2
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


I used similar and felt pleased to avoid the brute force approach. But then I saw you refined solution and realised I made it difficult on myself by calculating the scores.
"A X": 4, # Rock = 1 + draw = 3 "A Y": 8, # Paper = 2 + win = 6 "A Z": 3, # Scissors = 3 + lose = 0 "B X": 1, # Rock = 1 + lose = 0 "B Y": 5, # Paper = 2 + draw = 3 "B Z": 9, # Scissors = 3 + win = 6 "C X": 7, # Rock = 1 + win = 6 "C Y": 2, # Paper = 2 + lose = 0 "C Z": 6, # Scissors = 3 + draw = 3 }
Note to Admin - it is not formatting code block in comment. Is that me or comments?