uses Robot;
begin
Task('if8');
if wallfromup then
down;
paint;
if freefromdown then
end
end;
if wallfromleft then
right;
if freefromright then
end.
uses Robot;
begin
Task('if8');
if wallfromup then
begin
down;
paint;
down;
paint;
if freefromdown then
begin
down;
paint;
end
end;
if wallfromleft then
begin
right;
paint;
right;
paint;
if freefromright then
begin
right;
paint;
end
end
end.