This commit is contained in:
Oliver Hofmann
2024-09-23 13:22:12 +02:00
commit 45c4160142
69 changed files with 1906 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
while front_is_clear():
move()
turn_left()
turn_left()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
def turn_around():
turn_left()
turn_left()
+9
View File
@@ -0,0 +1,9 @@
def take_if_there():
if object_here():
take()
for _ in range(9):
take_if_there()
move()
take_if_there()
+13
View File
@@ -0,0 +1,13 @@
for i in range(10):
put()
move()
put()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
def turn_right():
turn_left()
turn_left()
turn_left()
+24
View File
@@ -0,0 +1,24 @@
def turn_right():
turn_left()
turn_left()
turn_left()
move()
move()
turn_left()
move()
move()
turn_right()
move()
take()
turn_left()
turn_left()
move()
move()
turn_left()
move()
put()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
+15
View File
@@ -0,0 +1,15 @@
move()
move()
take()
turn_left()
move()
turn_left()
turn_left()
turn_left()
move()
move()
put()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
@@ -0,0 +1,19 @@
def do_robin():
if object_here():
take()
if not object_here():
put()
while front_is_clear():
do_robin()
move()
do_robin()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
def turn_around():
turn_left()
turn_left()
+19
View File
@@ -0,0 +1,19 @@
def do_robin():
if object_here():
take()
else:
put()
while front_is_clear():
do_robin()
move()
do_robin()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
def turn_around():
turn_left()
turn_left()
+10
View File
@@ -0,0 +1,10 @@
while front_is_clear():
move()
################################################################
# WARNING: Do not change this comment.
# Library Code is below.
################################################################
def turn_around():
turn_left()
turn_left()