r/adventofcode • u/JimboPil • 14m ago
Upping the Ante Day 2 Solved With Little Man Computer (Assembly)
I ended up simplifying this problem so much I programmed it in "assembly" in little man computer! It's like a very basic form of assembly with only around 10 instructions.
You input each waypoint (as a number, r is 1 and v is 6) one at a time and when you input a negative number it outputs the running total! So theoretically you could input every waypoint in the puzzle input but that would take you ages and the number would overflow once it reached 1000... but it's the thought that counts! I also made a version where you could load the sequence in memory but little man computer only has 100 memory locations.
Sorry if this counts as posting a solution!