102
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
5 of 5
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


rust:
I like how values are spelt out as a total instead of magic values. At this point I'd probably also name the values as constants, so that 1 + 3 would become PICK_ROCK + OUTCOME_DRAW.
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: thank you for fixing it <3
Apologies, I'm used to stack-overflow and used the same format out of habit. That should fix it.
Ay, it's all good as long as you fix it when I poke you <3
(psst, the first pair of lines are outside the code block)Nothing to see here, please disperse.