This one seemed like it might be hard, but then I realized that part1 was fast enough that I could just do the first couple hundred and watch for loops.
I didn't get a loop, but I did see a consistency! I made a quick function to seek for that and voila! (That's French, for 'voila!')
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
Full marks + animations + bonus plant puns! Checking for loops was a good idea. I didn't think of that until I cheated and looked at the discussion here :/
Haha, love your visualisations! Always fascinating how such simple things can create such complexity.
(Slightly off-topic, but I once came across these "meta-pixel" in Conway's Game of Life which literally gave me goose bumps: youtube.com/watch?v=xP5-iIeKXE8)
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
Kotlin Solution
This one was similar to a previous year's problem, but it's thankfully in 2d.
Part 1
"Just" make a map of the rules, chunk the input into 5 char seedlings and map them to the rules.
Oh wait... it can grow left and right... better add some padding.
Part 2
This one seemed like it might be hard, but then I realized that part1 was fast enough that I could just do the first couple hundred and watch for loops.
I didn't get a loop, but I did see a consistency! I made a quick function to seek for that and voila! (That's French, for 'voila!')
Bonus Content
Single line:
Multi line:
Actual GIF output from AWT:
EDIT: FORGOT PLANT PUNS:
Um... hopefully this one isn't leaving you out in the weeds?
Er... put the petal to the metal?
Uh... Orange you glad I didn't say banana? (Does fruit count?)
Full marks + animations + bonus plant puns! Checking for loops was a good idea. I didn't think of that until I cheated and looked at the discussion here :/
Haha, love your visualisations! Always fascinating how such simple things can create such complexity.
(Slightly off-topic, but I once came across these "meta-pixel" in Conway's Game of Life which literally gave me goose bumps: youtube.com/watch?v=xP5-iIeKXE8)
GET. OUT. This is amazing. Thank you.