-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The turtle doesn't seem to be able to round... #9
Comments
I think it's this line that decides when it has reached one point, so that it can go onto the next. You're probably running into floating point issues. Maybe it needs to check with a tolerance. |
I have the same problem: bob = Turtle()
n = 7
ang = round(360/n, 1)
ds = 50
for i in range(2):
bob.forward(ds)
bob.left(ang) does not work properly. The angle has just 1 decimal number, but the turtle does not draw the second line. |
I think the turtle's angle changes in steps, and it overshoots the correct angle and then gets stuck turning one degree left and one degree right. Here's the code for that: Pull requests welcome :-) |
I would like to speed up drawing circle |
If you give it a
left
orright
command that has lots of decimals, then the turtle performs this action, but hangs and will not respond to commands afterwards.In my case, I can recreate this by:
won't work
will work
The text was updated successfully, but these errors were encountered: