teaching machines

Voxel Snake

September 28, 2015 by . Filed under madeup, public.

My kids have a bendy toy that was begging me to recreate it using Madeup. The toy is kind of like a voxelated snake:

https://youtu.be/7pHmBJZBT-s

I made a single block with this short program:

/usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:315:in `to_specs': Could not find 'coderay' (>= 0) among 94 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/var/www/.local/share/gem/ruby/3.2.0:/var/lib/gems/3.2.0:/usr/local/lib/ruby/gems/3.2.0:/usr/lib/ruby/gems/3.2.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.2.0:/usr/share/rubygems-integration/3.2.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.2.0:/home/johnch/.gems' , execute `gem env` for more information
	from /usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:327:in `to_spec'
	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:57:in `gem'
	from ./coderay:24:in `
'

This solidifies to a nice-looking block with alternating notches:

A single voxel from the voxel snake. Not visible is the hole passing through the center through which I run an elastic cord.

A single voxel from the voxel snake. Not visible is the hole passing through the center through which I run an elastic cord.

After printing 12 of these, making a trip to a hobby store for elastic cord, and tying some knots, I had my very own voxel snake and the esteem of my sons.