18 posts
Posted 29 September 2015 - 01:41 PM
This code will build a random hedge maze. It first uses a maze algorithm to build a maze in memory, then moves around to place bushes at ground level where the maze is. These will then later grow 3 blocks high and form a nice maze. You can very easily modify it to place some other block however high you want though.
Screenshot:
http://i.imgur.com/M6QcpKU.pngCode:
http://pastebin.com/4mqdr9Qi
7083 posts
Location
Tasmania (AU)
Posted 30 September 2015 - 03:22 AM
That's pretty cool, but I can't help thinking it's a bit plain-jane…
Would you maybe consider having the turtle randomly choose between different berry types while building? Bonus points if the maze can be paved and lit!
18 posts
Posted 30 September 2015 - 04:14 PM
Those are rather trivial modifications, to be left as an exercise for the reader.
Actually adding paving and lights could get complex for large mazes as you will have to come back for more resources!
Another interesting extension would be to extend it into 3 dimensions. placing ladders on the up and down paths.
18 posts
Posted 30 September 2015 - 04:58 PM
18 posts
Posted 01 October 2015 - 09:23 PM
Well adding a third dimension to the random maze in memory - super easy.
Getting the turtle to build it is a big task!
Coming along though. Testing on an 11x11x7 3d maze now
It is a bit tedious if something goes wrong and you have to break it all down!
7083 posts
Location
Tasmania (AU)
Posted 01 October 2015 - 11:21 PM
It is a bit tedious if something goes wrong and you have to break it all down!
A command computer and a few nested "for" loops are the way to go there. :)/>
18 posts
Posted 02 October 2015 - 03:03 PM
I only play survival mode. For aesthetic reasons =)
Thankfully there is some useful buildcraft stuff for these purposes.
18 posts
Posted 02 October 2015 - 09:17 PM
18 posts
Posted 02 October 2015 - 10:15 PM