[Disallowed URL]
move ();
while ( !treeFront () )
{
if ( !onLeaf () )
{
putLeaf();
move();
}
}
if ( treeFront () )
{
turnRight ();
move();
turnRight ();
move();
stepForward ();
}
while ( !treeFront() )
{
turnLeft();
stepForward();
turnRight();
stepForward();
}
turnLeft();
turnLeft();
move();
while ( !treeFront() )
{
if ( onLeaf() )
{
move();
}
else
{
putLeaf();
}
}
}
void stepForward ()
{
move();
putLeaf();
move();
}
}putLeaf(); move();