User Tools

Site Tools


2020

This is an old revision of the document!


2020

Parker

This has no exit but plenty of beepers

/**
 * Parker C
 * Aug 19, 2020
*/
import kareltherobot.*;
public class PCMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(20);
        World.setSize(10, 10);
        //Plce beeps at the begining and the end
        World.placeBeepers(7, 4, 1);
        World.placeBeepers(6, 3, 1);
        World.placeBeepers(4, 4, 1);
        World.placeBeepers(5, 6, 1);
        //Walls that make the maze
        World.placeNSWall(2, 4, 3);
        World.placeEWWall(2,1,4);
        World.placeNSWall(0, 5, 6);
        World.placeEWWall(4, 3, 2);
        World.placeNSWall(2, 4, 1);
        World.placeEWWall(5, 3, 6);
        World.placeNSWall(4, 2, 1);
        World.placeNSWall(3, 1, 2);
        World.placeNSWall(6, 1, 2);
        World.placeEWWall(8, 1, 8);
        World.placeEWWall(7, 2, 3);
        World.placeNSWall(7, 4, 1);
        World.placeEWWall(6, 3, 2);
        World.placeNSWall(6, 2, 1);
        World.placeEWWall(7, 6, 5);
        World.placeNSWall(8, 8, 1);
        World.placeNSWall(7, 5, 1);
        World.placeEWWall(6, 6, 4);
        World.placeNSWall(4, 9, 3);
        World.placeEWWall(3, 7, 3);
        World.placeNSWall(3, 6, 1);
        World.placeNSWall(5, 6, 1);
        World.placeEWWall(2, 7, 3);
        World.placeNSWall(1, 9, 2);
        World.placeEWWall(1, 6, 3);
        World.setVisible();
        task();
    }
}

Justin C

/**
 * @author Justin C
 * @version August 19, 2020
 */
import kareltherobot.*;
public class JCMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Plce beeps at the begining and the end
        World.placeBeepers(6, 7, 1);
        World.placeBeepers(1, 1, 1);
        World.placeBeepers(2, 1, 1);
        //Walls that make the maze
        World.placeNSWall(3, 2, 1);
        World.placeNSWall(2, 1, 3);
        World.placeEWWall(2, 3, 3);
        World.placeNSWall(1, 5, 2);
        World.placeEWWall(1, 1, 3);
        World.placeEWWall(4, 2, 2);
        World.placeEWWall(3, 3, 2);
        World.placeNSWall(4, 4, 2);
        World.placeEWWall(5, 2, 7);
        World.placeEWWall(6, 1, 8);
        World.placeNSWall(6, 7, 1);
        World.setVisible();
        task();
    }
}

Daniel K

import kareltherobot.*;
public class DKMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Plce beeps at the begining and the end
        World.placeBeepers(6, 8, 1);
        World.placeBeepers(1, 1, 1);
        World.placeBeepers(2, 3, 1);
        World.placeBeepers(8, 3, 1);
        //Walls that make the maze
        World.placeEWWall(5, 1, 3);
        World.placeEWWall(1, 2, 1);
        World.placeNSWall(2, 5, 6);
        World.placeNSWall(2, 3, 4);
        World.placeNSWall(1, 4, 6);
        World.placeEWWall(6, 2, 3);
        World.placeEWWall(7, 1, 2);
        World.placeEWWall(7, 4, 2);
        World.placeEWWall(2, 3, 1);
        World.placeNSWall(1, 1, 4);
        World.placeEWWall(1, 6, 2);
        World.placeNSWall(2, 7, 5);
        World.placeEWWall(6, 8, 1);
        World.placeNSWall(8, 2, 1);
        World.placeNSWall(8, 3, 1);
        World.setVisible();
        task();
    }
}

Charlie L

/*
 *Author: Charlie L
 *Version: 8/20/20
 */
 
import kareltherobot.*;
public class CLMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
 
 
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(10, 10);
        //Plce beeps at the begining and the end
        World.placeBeepers(3, 5, 1);
        World.placeBeepers(4, 8, 1);
        World.placeBeepers(6, 9, 1);
        //North-South Walls that make the maze
        World.placeNSWall(1, 0, 4);
        World.placeNSWall(6, 0, 3); 
        World.placeNSWall(2, 1, 2);
        World.placeNSWall(7, 1, 2);
        World.placeNSWall(2, 2, 3);
        World.placeNSWall(3, 3, 4);
        World.placeNSWall(3, 5, 2);
        World.placeNSWall(8, 5, 1); 
        World.placeNSWall(4, 6, 1);
        World.placeNSWall(6, 6, 1);
        World.placeNSWall(9, 6, 2);
        World.placeNSWall(7, 7, 1);
        World.placeNSWall(3, 8, 2);
        World.placeNSWall(1, 8, 1);
        World.placeNSWall(1, 9, 6);
        World.placeNSWall(8, 9, 1);
        //East-West Walls
        World.setVisible();
        World.placeEWWall(0, 1, 8);
        World.placeEWWall(1, 2, 1);
        World.placeEWWall(1, 4, 5);
        World.placeEWWall(2, 4, 2);
        World.placeEWWall(2, 7, 2);
        World.placeEWWall(3, 7, 1);
        World.placeEWWall(4, 1, 2);
        World.placeEWWall(4, 5, 1);
        World.placeEWWall(4, 7, 2);
        World.placeEWWall(5, 1, 2);
        World.placeEWWall(5, 7, 3);
        World.placeEWWall(6, 4, 3);
        World.placeEWWall(6, 8, 2);
        World.placeEWWall(7, 3, 3);
        World.placeEWWall(7, 8, 2);
        World.placeEWWall(8, 2, 4);
        World.placeEWWall(8, 7, 3);
        World.placeEWWall(9, 2, 2);
 
        task();
    }
}

Nathan L

import kareltherobot.*;
public class NLMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
    }
    public static void main(String[] args) {
        World.setDelay(25);
        World.setSize(10, 10);
        World.placeBeepers(8, 8, 1);
        World.placeBeepers(1, 1, 1);
        World.placeBeepers(8, 7, 1);
        World.placeEWWall(9, 3, 7);
        World.placeEWWall(1, 2, 6);
        World.placeEWWall(2, 3, 4);
        World.placeEWWall(3, 2, 4);
        World.placeEWWall(7, 8, 2);
        World.placeEWWall(4, 5, 2);
        World.placeEWWall(7, 7, 1);
        World.placeEWWall(8, 4, 5);
        World.placeNSWall(2, 9, 8);
        World.placeNSWall(2, 1, 1);
        World.placeNSWall(2, 7, 5);
        World.placeNSWall(4, 1, 7); 
        World.placeNSWall(3, 6, 5);
        World.placeNSWall(1, 8, 6);
        World.placeNSWall(5, 2, 5);
        World.placeNSWall(8, 7, 1);
        World.placeNSWall(4, 3, 5);
        World.placeNSWall(5, 4, 3);
        World.placeNSWall(6, 5, 3);
        World.setVisible();
        task();
    }
}

Vatche P

import kareltherobot.*;
public class VPMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 /**
  * @author Vatche P
  */
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Place beeps at the beginning and the end
        World.placeBeepers(4, 5, 1);
        World.placeBeepers(1, 1, 1);
        //Walls that make the maze
        World.placeEWWall(1, 1, 2);
        World.placeNSWall(2, 2, 3);
        World.placeEWWall(4, 3, 2);
        World.placeNSWall(1, 3, 2);
        World.placeEWWall(3, 4, 1);
        World.placeNSWall(1, 4, 3);
        World.setVisible();
        task();
    }
}

Tim P

import kareltherobot.*;
public class TPMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Plce beeps at the begining and the end
        World.placeBeepers(2, 1, 1);
        World.placeBeepers(7, 1, 1);
        //Walls that make the maze
        World.placeEWWall(2, 1, 6);
        World.placeNSWall(2, 2, 4);
        World.placeEWWall(6, 1, 4);
        World.placeNSWall(1, 7, 3);
        World.placeNSWall(4, 4, 3);
        World.placeEWWall(1, 4, 4);
        World.placeEWWall(3, 5, 2);
        World.setVisible();
        task();
    }
}

Matthew P

//@author Matthew P
import kareltherobot.*;
public class MPMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
 
    public static void main(String[] args) {
        World.setDelay(100);
        World.setSize(8, 8);
        World.placeBeepers(1, 4, 1); //beginning beeper
        World.placeBeepers(8, 2, 1); //main beeper
        World.placeBeepers(1,6,1); //extra beeper
        World.placeEWWall(1, 3, 4);
        World.placeNSWall(1,5,1);
        World.placeNSWall(1, 7, 7); 
        World.placeEWWall(7, 1, 1);
        World.placeEWWall(7, 3, 5);
        World.placeNSWall(2, 6, 4); 
        World.placeNSWall(3, 5, 4); 
        World.placeEWWall(3, 1, 4); 
        World.placeNSWall(2, 2, 1);
        World.placeEWWall(2, 2, 1);
        World.placeNSWall(2, 1, 1);
        World.placeEWWall(5, 5, 2);
        World.placeEWWall(4, 5, 1);
        World.placeEWWall(6, 6, 1);
        World.placeNSWall(3, 3, 1);
        World.placeEWWall(2, 4, 1);
        World.placeNSWall(5, 3, 3);
        World.placeEWWall(4, 2, 2);
        World.placeNSWall(7, 4, 1);
        World.placeNSWall(7, 2, 1);
        World.placeNSWall(5, 1, 1);
        World.placeEWWall(5, 2, 1);
        World.setVisible();
        task();
    }
}

Jason P

import kareltherobot.*;
public class JPMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(50);
        World.setSize(10, 10);
        //Plce beeps at the begining and the end
        World.placeBeepers(6, 5, 1);
        World.placeBeepers(1, 1, 1);
        //Walls that make the maze
        World.placeEWWall(1, 1, 5);
        World.placeNSWall(2, 5, 7);
        World.placeNSWall(1, 7, 9);
        World.placeEWWall(5, 6, 1);
        World.placeEWWall(7, 1, 4);
        World.placeEWWall(9, 1, 7);
        World.placeNSWall(7, 4, 1);
        World.setVisible();
        task();
    }
}

Allister Q

/*
 * @author Allister Q
 * @version August 19, 2020
 */
import kareltherobot.*;
public class AQMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Plce beeps at the begining and the end
        World.placeBeepers(5, 5, 1);
        World.placeBeepers(4, 1, 1);
        World.placeBeepers(1, 1, 1);
        //Walls that make the maze
        World.placeNSWall(1, 1, 2);
        World.placeEWWall(2, 2, 1);
        World.placeEWWall(1, 3, 1);
        World.placeEWWall(5, 1, 4);
        World.placeNSWall(4, 1, 1);
        World.placeEWWall(4, 2, 1);
        World.placeNSWall(4, 4, 2);
        World.placeEWWall(3, 3, 1);
        World.placeNSWall(2, 3, 3);
        World.placeEWWall(1, 4, 1);
        World.placeNSWall(1, 5, 5);
        World.placeEWWall(2, 4, 2);
        World.placeEWWall(3, 1, 1);
        World.setVisible();
        task();
    }
}

Ryan R

import kareltherobot.*;
public class RRMaze implements Directions {
    public static void task() {
        MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff(); 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(8, 9);
        //Plce beeps at the begining and the end
        World.placeBeepers(6, 7, 1);
        World.placeBeepers(1, 1, 1);
        World.placeBeepers(6, 1, 1);
        World.placeBeepers(3, 2, 1);
        World.placeBeepers(1, 4, 1);
        World.placeBeepers(5, 6, 1);
        World.placeBeepers(5, 6, 1);
        World.placeBeepers(6, 6, 1);
        World.placeBeepers(2, 7, 3);
        //Walls that make the maze
        World.placeEWWall(2, 1, 2);
        World.placeEWWall(7, 3, 4);
        World.placeEWWall(5, 6, 4);
        World.placeEWWall(3, 5, 2);
        World.placeNSWall(1, 3, 3);
        World.placeNSWall(5, 4, 2);
        World.placeNSWall(4, 5, 2);
        World.placeNSWall(5, 6, 3);
        World.placeNSWall(3, 2, 1);
        World.placeNSWall(5, 3, 3);
        World.placeEWWall(4, 2, 2);
        World.placeEWWall(1, 3, 4);
        World.placeEWWall(3, 2, 1);
        World.placeEWWall(5, 1, 1);
        World.placeEWWall(5, 3, 1);
        World.placeNSWall(6, 1, 2);
        World.placeEWWall(6, 2, 1);
        World.setVisible();
        task();
    }
}

Alec S

import kareltherobot.*;
/**
 * Alec S
 */
public class ASMaze implements Directions {
    public static void task() {
       MazeWalker robby = new MazeWalker(1, 1, East, 0);
        robby.escapeMaze();
        robby.turnOff();
 
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(150);
        World.setSize(10, 10);
        //Plce beeps at the begining and the end
        World.placeBeepers(6, 9, 1);
        World.placeBeepers(1, 1, 1);
        World.placeBeepers(5, 4, 1);
        //Walls that make the maze
        World.placeEWWall(4, 1, 2);
        World.placeNSWall(1, 1, 3);
        World.placeNSWall(2, 2, 3);
        World.placeEWWall(1, 3, 1);
        World.placeEWWall(1, 5, 1);
        World.placeNSWall(2, 3, 4);
        World.placeNSWall(2, 4, 4);
        World.placeNSWall(2, 5, 5);
        World.placeEWWall(5, 4, 1);
        World.placeNSWall(1, 6, 5);
        World.placeEWWall(6, 6, 4);
        World.placeEWWall(5, 7, 3);
        World.placeNSWall(6, 9, 1);
        World.setVisible();
        task();
    }
}
2020.1630769941.txt.gz · Last modified: 2021/09/04 11:39 by frchris