AOC Day 14 Discussion: grain by grain #774
Replies: 3 comments 2 replies
-
A fun little simulator. Got me further into multidimensional numpy arrays! solve |
Beta Was this translation helpful? Give feedback.
-
Difficulty was all in the parsing on this one. There's almost certainly a cleaner way to handle that in TS than just looping like I do, but I'm not sure what it would be. https://github.com/doleraj/adventofcode/blob/main/aoc2022/src/day14/index.ts |
Beta Was this translation helpful? Give feedback.
-
My day 14 Other solutions here are interesting, @rhdeck I never attempted to render the output except to test. My "cavern" is just a set (because sets are great!) @doleraj I also didn't separate the rocks from the sand. The type of matter ended up not... mattering. 🥁 (I'm so so sorry) Initially solved without any optimization, took 15 minutes, made my computer angry. Now optimized, less angry. Also testing some new file formatting. Also improved my rigging for solutions. Happy with this. |
Beta Was this translation helpful? Give feedback.
-
Discussion of solutions for Advent of Code Day 14 here.
Don't forget about the VC Advent of Code private leaderboard:
Go to leaderboard/private
Use join code 363496-e6f42283
Beta Was this translation helpful? Give feedback.
All reactions