Posted 13 November 2012 - 02:24 PM
This is a turtle scanner that will move around an area and create a 2d map of that area. It uses an algorithm I developed from A* Pathfinding, however the tricky part was to get it to make a path based on no knowledge of the world around it.
Without further ado…
http://pastebin.com/rey7R6W5
The turtle returns to where it started when done traversing the room. Bigger rooms take longer to traverse. I was planning on making a way to use networking to tell the turtle where to go after the map has been traversed, but now I am working on an EMAIL SERVER and CLIENT that adds support for GoldComputers but is still compatible with BasicComputers.
So feel free to use my code and upgrade it and what not. It is messy cause it was a MAKE-IT-AS-YOU-GO project.
Without further ado…
http://pastebin.com/rey7R6W5
The turtle returns to where it started when done traversing the room. Bigger rooms take longer to traverse. I was planning on making a way to use networking to tell the turtle where to go after the map has been traversed, but now I am working on an EMAIL SERVER and CLIENT that adds support for GoldComputers but is still compatible with BasicComputers.
So feel free to use my code and upgrade it and what not. It is messy cause it was a MAKE-IT-AS-YOU-GO project.