This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Demosthenex's profile picture

Turtle mining a Hilbert Space Filling Curve

Started by Demosthenex, 16 May 2014 - 07:11 PM
Demosthenex #1
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.
civilwargeeky #2
Posted 18 May 2014 - 06:27 AM
Wow. This is a really cool new look at mining :)/>

I would certainly love to try this out next time I play.

It just looks like it would be fun to run around in the corridors mining materials. Kind of like a linear labyrinth of ores :)/>
BlockSmith #3
Posted 01 June 2014 - 07:08 PM
Make it an adventure map with traps :P/>