78
SOLUTION MEGATHREAD-🎄- 2022 Day 11 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 17 minutes after) by daggerdragon to /r/adventofcode (134.8k)
WIKI NEWS
- The FAQ section of the wiki on [Code Formatting](https://www.reddit.com/r/adventofco...
since 3 years, 1 month ago
1 of 1
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


Applesoft BASIC
Source code and a Video
Only part 1 on the Apple... its BASIC only uses floating-point numbers, so we're limited in the precision part 2 would need. My repo also has both parts in C++ which I wrote out first.
A trick helped me to parse the monkey data: I packed each monkey's data into a string, with operation/test data at the front and starting items on the end. Strings are helpful for this due to their flexibility, and all of the initial data fits into bytes. Once a monkey's info is organized, its copied into a numerical array for processing.
Hoping to annotate the code tomorrow.