OneCompiler

robotbasicspasoquin

121

import becker.robots.*;
public class Robotbasicspasoquin {

/**
 * @param args the command line arguments
 */


public static void main(String[] args) {
    // TODO code application logic here
    City bislig = new City();
    Robot chan = new Robot(bislig, 0, 3, Direction.WEST);
    Wall w1 = new Wall(bislig, 1, 1, Direction.NORTH);
    Wall w2 = new Wall(bislig, 1, 2, Direction.NORTH);
    Wall w3 = new Wall(bislig, 1, 1, Direction.WEST);
    Wall w4 = new Wall(bislig, 2, 1, Direction.WEST);
    Wall w5 = new Wall(bislig, 1, 2, Direction.EAST);
    Wall w6 = new Wall(bislig, 2, 2, Direction.EAST);
    Wall w7 = new Wall(bislig, 2, 1, Direction.SOUTH);
    Wall w8 = new Wall(bislig, 2, 2, Direction.SOUTH);
    
    chan.move();
    chan.move();
    chan.move();
    chan.turnLeft();
    chan.move();
    chan.move();
    chan.move();
    chan.turnLeft();
    chan.move();
    chan.move();
    chan.move();
}

}