/*
* ImprovedRobot.java
*
* Created on September 21, 2005, 1:30 PM
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package ImprovedRobot;
import kareltherobot.*;
/**
*
* @author sargun
*/
public class ImprovedRobot extends Robot
{
/** Creates a new instance of ImprovedRobot */
public ImprovedRobot(int street, int avenue, Direction d, int b) {
super(street, avenue, d,b);
}
public void turnRight(){
this.turnLeft();
turnLeft();
turnLeft();
}
public void move(int steps){
while(steps > 0){
move();
steps = steps - 1;
}
}
}