Animated Collatz sequence using Gosu
Continuing my obsession with the Collatz conjecture, I took some of my Ruby code from the other day and mixed in some Gosu 2D animations.
Basically, I randomly seed a bunch of objects and then let them bounce their way through the sequence until they bottom out at 1, and then drop them. There’s a counter in the top left that shows how many are left.
Anyway, here’s the video with the obligatory iMovie stock music in the background:
The little monster blocks are a free icon set from Fast Icon. I’m a huge fan. :)
I'm an engineer, but sometimes I like to pretend I'm a programmer. Current obsessions include Ruby and Project Euler. 


