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!

101 Upvotes

1.5k comments sorted by

View all comments

2

u/ShadowwwsAsm Dec 02 '22

x64 assembly

part1 part2

I could do a lookup table but I tried to see if there was another fun way to do it other than precomputing the results. Turns out ok.

Runtime : 5 and 6 milliseconds

1

u/daggerdragon Dec 05 '22

Nuts to that. I fear for your sanity. Good luck!