Posted 16 May 2014 - 09:11 PM
I'm not a huge fan of quarries or mining turtles, but I do like branch
mining. My goal was to have a turtle cut a corridor I can cherrypick,
and bonuses for an interesting pattern and high density with minimal
cutting.
While thinking about algorithms for creating the branch mine, I
recalled the Hilbert Space Filling Curve.
https://en.wikipedia.org/wiki/Hilbert_curve
It has a relatively easy recursive algorithm, and so below are the
results of implementing it with a mining turtle.
Screenshots:
https://imgur.com/a/djTkA
Code:
http://pastebin.com/JjLzu0nS
Comments welcome.
mining. My goal was to have a turtle cut a corridor I can cherrypick,
and bonuses for an interesting pattern and high density with minimal
cutting.
While thinking about algorithms for creating the branch mine, I
recalled the Hilbert Space Filling Curve.
https://en.wikipedia.org/wiki/Hilbert_curve
It has a relatively easy recursive algorithm, and so below are the
results of implementing it with a mining turtle.
Screenshots:
https://imgur.com/a/djTkA
Code:
http://pastebin.com/JjLzu0nS
Comments welcome.