Made an epic showcase website and API!
This commit is contained in:
parent
9e21e4dbdd
commit
1907fad7c5
89 changed files with 36444 additions and 3 deletions
17
projects/Day 6/reeborg-maze.py
Normal file
17
projects/Day 6/reeborg-maze.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
def turn_right():
|
||||
turn_left()
|
||||
turn_left()
|
||||
turn_left()
|
||||
|
||||
while front_is_clear():
|
||||
move()
|
||||
turn_left()
|
||||
|
||||
while not at_goal():
|
||||
if right_is_clear():
|
||||
turn_right()
|
||||
move()
|
||||
elif front_is_clear():
|
||||
move()
|
||||
else:
|
||||
turn_left()
|
||||
Loading…
Add table
Add a link
Reference in a new issue