import kareltherobot.*; public class GGMaze implements Directions { public static void task() { MazeWalker robby = new MazeWalker(8, 1, East, 0); robby.escapeMaze(); robby.turnOff(); } public static void main(String[] args) { World.setDelay(20); String maze = "streets 10\n" + "avenues 10\n" + "beepers 5 5 1\n" + "northsouthwalls 1 1 2\n" + "northsouthwalls 2 1 1\n" + "northsouthwalls 5 1 1\n" + "northsouthwalls 9 1 9\n" + "northsouthwalls 3 2 2\n" + "northsouthwalls 4 2 4\n" + "northsouthwalls 6 2 2\n" + "northsouthwalls 7 2 3\n" + "northsouthwalls 1 4 4\n" + "northsouthwalls 3 4 7\n" + "northsouthwalls 6 4 4\n" + "northsouthwalls 8 4 4\n" + "northsouthwalls 5 5 5\n" + "northsouthwalls 7 5 5\n" + "northsouthwalls 8 6 6\n" + "northsouthwalls 4 7 8\n" + "northsouthwalls 6 7 8\n" + "northsouthwalls 7 7 7\n" + "northsouthwalls 1 8 8\n" + "northsouthwalls 8 8 8\n" + "northsouthwalls 2 9 9\n" + "northsouthwalls 5 9 9\n" + "eastwestwalls 1 4 4\n" + "eastwestwalls 1 6 6\n" + "eastwestwalls 1 8 8\n" + "eastwestwalls 2 3 3\n" + "eastwestwalls 2 5 5\n" + "eastwestwalls 2 9 9\n" + "eastwestwalls 3 1 2\n" + "eastwestwalls 3 4 5\n" + "eastwestwalls 3 7 7\n" + "eastwestwalls 4 3 3\n" + "eastwestwalls 4 5 6\n" + "eastwestwalls 4 8 8\n" + "eastwestwalls 5 1 2\n" + "eastwestwalls 5 5 7\n" + "eastwestwalls 5 9 9\n" + "eastwestwalls 6 2 3\n" + "eastwestwalls 6 5 6\n" + "eastwestwalls 7 1 1\n" + "eastwestwalls 7 3 5\n" + "eastwestwalls 7 7 7\n" + "eastwestwalls 8 3 3\n" + "eastwestwalls 8 6 7\n" + "eastwestwalls 8 9 9\n" + "eastwestwalls 9 1 9";; World.getWorld(maze); World.setVisible(); task(); } }