Program
{
forward ( 1 );
right;
while ( free_forward )
if ( wall_left )
put;
}
else
left;
back ( 1 );
Объяснение:
картинки
Program
{
forward ( 1 );
right;
forward ( 1 );
while ( free_forward )
{
forward ( 1 );
if ( wall_left )
{
put;
}
else
{
left;
forward ( 1 );
put;
back ( 1 );
right;
}
}
right;
forward ( 1 );
}
Объяснение:
картинки