Give it up for day 2 of (extra) smooth brain shenanigans! https://pbs.twimg.com/media/E1bxikWWEAEGYHU.png

master
Ben Maurer 2022-12-02 21:50:48 -06:00
parent 0deb5c0c85
commit 3491af01a1
2 changed files with 25 additions and 0 deletions

View File

25
day_2.py 100644
View File

@ -0,0 +1,25 @@
import aocd
from dotenv import load_dotenv
load_dotenv()
puzzle_input = aocd.get_data(day=2, year=2022)
round_result = {
"A X":4,
"B X":1,
"C X":7,
"A Y":8,
"B Y":5,
"C Y":2,
"A Z":3,
"B Z":9,
"C Z":6,
}
strategy_score = 0
moves_list = puzzle_input.split('\n')
for move in moves_list:
strategy_score = strategy_score + round_result[move]
print(strategy_score)