Posted 05 April 2014 - 02:50 AM
I am trying to teach a turtle location and orientation. I currently am working on orientation but I ran into a problem with my system. I have a variable stated at the top of my code:
dir = 1
this denotes north. I planned to have it add one and subtract one for each turn, but this obviously falls apart at 1 and 4.
Any suggestions as to how to circumnavigate this problem? or maybe a better way to do it? Any help is appreciated!
dir = 1
this denotes north. I planned to have it add one and subtract one for each turn, but this obviously falls apart at 1 and 4.
Any suggestions as to how to circumnavigate this problem? or maybe a better way to do it? Any help is appreciated!