Discussion thread for day 2 of the Advent of Code - https://adventofcode.com/2022/day/2
If you have not read the children's book "The Legend of Rock Paper Scissors", I HIGHLY recommend it as a complement to today's challenge.
"Are you not entertained?!?"
I struggled most with understanding the rules. Really need to read twice build once instead of build 5 times read once.
When in doubt mapping files solve everything
I made some manual assignments instead of writing a long formula. The tradeoff paid off in speed given there were a fixed number of outcomes. Not my most dynamic solution...
@clmc9601 Very nicely done 😁. I guess it shows we should do some thinking before we start dragging the tools onto Canvas to solve the problem 😂.
I'm embarrassed with how long I took, so here's my refactored version
Originally parsed out the letters and then built complicated IF statements which with my 5am brain meant I had typos and just couldn't see it, so ended up getting some paper out and writing the logic down in a matrix.
I even messed up this!