forked from MDL29/LPH-cubito
La tortue ne sort plus
This commit is contained in:
parent
f8a2eb0e5b
commit
8307c65bd0
|
@ -19,7 +19,7 @@ def start():
|
|||
# Goto to first cell
|
||||
turtle.penup()
|
||||
turtle.goto(-225,225)
|
||||
turtle.pendown()
|
||||
#turtle.pendown()
|
||||
|
||||
|
||||
def fordward():
|
||||
|
@ -27,6 +27,11 @@ def fordward():
|
|||
Forward fonction
|
||||
"""
|
||||
turtle.forward(distance)
|
||||
if turtle.xcor() > 225 or turtle.xcor() < -225:
|
||||
turtle.backward(distance)
|
||||
if turtle.ycor() > 225 or turtle.ycor() < -225:
|
||||
turtle.backward(distance)
|
||||
|
||||
|
||||
def left():
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user