OM
Size: a a a
OM
ИБ
OM
ИБ
ИБ
ТХ
RC
RC
def task_8_22():
while True:
if wall_is_above() and not wall_is_on_the_left():
move_left()
if wall_is_above() and not wall_is_on_the_right():
move_right()
move_up()
OM
OM
RC
RC
НП
OM
RC
RC
ВВ
RC
def task_8_22():
while not wall_is_above():
move_up()
if wall_is_on_the_left():
while not wall_is_on_the_right():
move_right()
else:
while not wall_is_on_the_left():
move_left()
OM
def task_8_22():
while not wall_is_above():
move_up()
if wall_is_on_the_left():
while not wall_is_on_the_right():
move_right()
else:
while not wall_is_on_the_left():
move_left()
И