//CircleBug.java MrG 2011.1216
import info.gridworld.actor.Bug;
public class CircleBug extends Bug
{
private int steps;
private int sideLength;
public CircleBug(int length)
{
steps = 0;
sideLength = length;
}
public void act()
{
if (steps < sideLength && canMove())
{
move();
steps++;
}
else
{
turn();
steps = 0;
}
}
}