/** sample test for MowerBot of program 5 * @author Mary Elaine Califf */ import becker.robots.*; public class TestMowerBot { /** * @param args */ public static void main(String[] args) { Rectangle yard = new Rectangle(15, 13, 2, 2); yard.createHorizontalWall(5,6,4,Direction.NORTH); yard.createVerticalWall(5,6,4,Direction.WEST); yard.createVerticalWall(5,9,4,Direction.EAST); yard.createHorizontalWall(8,6,4,Direction.SOUTH); for (int i = 2; i < 17; i++) { for (int j = 2; j < 15; j++) { if ((i < 5) || (i > 8) || (j < 6) || (j > 9)) { Thing item = new Thing(yard,i,j); } } } MowerBot mower = new MowerBot(yard,3,3,Direction.SOUTH); mower.mowYard(); } }