Init
This commit is contained in:
@@ -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()
|
||||
@@ -0,0 +1,9 @@
|
||||
def take_if_there():
|
||||
if object_here():
|
||||
take()
|
||||
|
||||
|
||||
for _ in range(9):
|
||||
take_if_there()
|
||||
move()
|
||||
take_if_there()
|
||||
@@ -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()
|
||||
@@ -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.
|
||||
################################################################
|
||||
@@ -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()
|
||||
@@ -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()
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user