Friday, September 4, 2015

Minecraft

I would have never in a million years guessed that I would be playing Minecraft, a game with sub par graphics, no story, no set goal, no anything. But... hidden in this open sandbox game, I found so much stuff to do. I built a farm, a house, tools, and my most favorite accomplishment was learning to program in a programming language called Lua that I've neither heard of or used. I learned Lua just so that I could program a felling turtle to fell a tree and automate a lot of my labor. For the $27 dollars that I paid for this game, I honestly believe that it was well worth it and would definitely recommend to others. Now I don't want this post to sound like review or a paid advertisement, but I truly feel this game deserves some cool points because of how fun it has been especially when you play with friends on a private server.

If your interested in felling a tree with a turtle here's the code I made to do just that. It took a few hours to code because the built-in interpreter does not help very much with finding bugs, but it was definitely fun and rewarding! Side note, sometimes it'll miss some wood(slight bug to be fixed) and its not an entirely 100% efficient algorithm but it works and it does its job, so im not complaining lol. If you need to fell a tree, starting from the bottom here's the code.

You can also download it straight into the turtle through craft OS using pastebin. Here's the pastebin link.  http://pastebin.com/gsW50T6g

or you can skim through it here.