How to figure out if turtle sim is at world boundary

asked 2017-09-29 23:19:17 -0500

regularguy gravatar image

I'm going through the tutorials and from the "Moving in a straight line" tutorial I wanted to modify it such that if the turtle reaches the world boundary, it turns and then continues on. Is there is a smart way of doing it? I looked at the tf tutorial but couldn't figure it out. Thanks

edit retag flag offensive close merge delete