Posted 18 March 2015 - 01:40 PM
Hey, I am writing a turtle farm program. So far, the turtle navigates the farm perfectly fine, it does EXACTLY as it should. And that's good. BUT, when it's done with a farm, I have to go out to it and tell it what to do. Whether it's do another farm, or just Return to the house.
But right now, if it's at the wheat farm for example, I just have to do, "Return", and it goes back to it's start. BUT, if it's at say, the carrot farm, or the potato farm, I have to do something different like, "Return Carrot", or, "Return Potato". Now I don't want to do that…I have 8 farms…What I want, is for when I do, "Return", the turtle will find it's coordinates, and according to which coordinates it's at, and then run a specified function…
Now I don't know very well how to do this…I was maybe hoping the maybe someone could help me with this issue…if you need it, I can even paste my current code into here…if you need it for testing. Thanks for the help!
But right now, if it's at the wheat farm for example, I just have to do, "Return", and it goes back to it's start. BUT, if it's at say, the carrot farm, or the potato farm, I have to do something different like, "Return Carrot", or, "Return Potato". Now I don't want to do that…I have 8 farms…What I want, is for when I do, "Return", the turtle will find it's coordinates, and according to which coordinates it's at, and then run a specified function…
Now I don't know very well how to do this…I was maybe hoping the maybe someone could help me with this issue…if you need it, I can even paste my current code into here…if you need it for testing. Thanks for the help!