Aaron's Page

This is where I post about what I'm working on.

--- Day 11: Dumbo Octopus ---

or..

Syntax error in your favor, go directly to SyntaxError jail.

one art please

Part 1

Python

I hit two major road blocks with this: my while loop for "flashing" octopuses was terminating prematurely and when I was "flashing" I was accidentally rolling 0s to 1s that hadn't flashed yet.

Once I took a little advice from Chris, who I was chatting with on discord for our friendgroups regular game night (Astroneer tonight, pretty fun game if you like running out of oxygen in a deep cave because your friend John breaks your tether line.), I was able to correct my while exit condition and got part 1 solved.

Go

Still catching up

Part 2

Python

It took me all of 30 seconds to refactor my part 1 solution for part 2. Rather than tracking cumulative flashes, I just tracked flashes after each "step" until there were 100 flashes. Easy peasy, decent performance at 0.04 seconds.

Go

We'll see.

<< - Table of Contents - >>