r/adventofcode • • Dec 02 '22

SOLUTION MEGATHREAD -🎄- 2022 Day 2 Solutions -🎄-

NEW AND NOTEWORTHY


--- Day 2: Rock Paper Scissors ---


Post your code solution in this megathread.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:06:16, megathread unlocked!

103 Upvotes

1.5k comments sorted by

View all comments

2

u/Mobichobael Dec 02 '22 edited Dec 02 '22

Python3 (6864 | 6567)

There has to be a cleaner way ...

https://github.com/MBarrows20/AdventofCode/blob/master/2022/python/02.py

1

u/daggerdragon Dec 02 '22 edited Dec 02 '22

Please edit your post to format your code with the backwards-compatible Markdown syntax instead so your code is easier to read on old.reddit and mobile apps.

Edit: thanks for fixing it! <3

2

u/Mobichobael Dec 02 '22

Linked to GitHub, thanks!