SaveText.Ru
Add a new text
View all texts
Change language
English
Russian
Registration
SaveText.Ru
4
move_right
(
)
if
free_from_up
(
)
:
fill_cell
(
)
move_left
(
)
if
wall_from_up
(
)
:
move_right
(
)
move_left
(
)
else
:
fill_cell
(
)
move_right
(
)
move_right
(
)
if
free_from_up
(
)
:
move_up
(
)
if
wall_from_up
(
)
and
wall_from_up
(
)
:
move_down
(
)
fill_cell
(
)
elif
wall_from_right
(
)
and
free_from_up
(
)
:
move_down
(
)
else
:
move_right
(
)
Share with your friends:
Print