Для того, чтобы Робот обошел поле по периметру и закрасил все клетки по краю поля, необходимо написать следующую программу:
while not wall_right():
move_right()
fill_cell()
while not wall_down():
move_down()
fill_cell()
while not wall_left():
move_left()
fill_cell()
while not wall_up():
move_up()
fill_cell()
Ответ:
while not wall_right() move_right() fill_cell() while not wall_down() move_down while not wall_left(): move_left() while not wall_up(): move_up()