User Tools

Site Tools


try_running_these_student_made_mazes

Table of Contents

Student Made Mazes

These are mazes ready for you to solve. The robot is in the starting position, and the beeper is the goal. You May wish to make an extended Robot that has other methods like turnRight() or turnAround(), or walkToWall(). Good luck!

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() {
        Robot robby = new Robot(1, 1, East, 0);
        // Place the code to run the maze here
        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() {
        Robot robby = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        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() {
        Robot robby = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        // Good luck, Daniel Kong
        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() {
        Robot robby = new Robot(1, 9, North, 0);
        // Place the code to run the maze here
        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() {
        Robot Bob = new Robot(1, 1, East, 0);
        Bob.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() {
        Robot bob = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        bob.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() {
        Robot robby = new Robot(3, 1, North, 0);
        // Place the code to run the maze here
        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() {
        Robot carl = new Robot(1, 5, West, 0);
        // Place the code to run the maze here
        carl.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() {
        Robot chuck = new Robot(1, 1, North, 0);
 
 
        chuck.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() {
        Robot robby = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        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() {
        Robot robby = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        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() {
        Robot robby = new Robot(1, 1, North, 0);
        // Place the code to run the maze here
        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();
    }
}

Noah M

Zack F

2019

Christian B

import kareltherobot.*;
public class CBMaze implements Directions {
	public static void task() {
		Robot robby = new Robot(1, 2, East, 0);
		// you code here
		robby.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(30);
		World.setSize(8, 9);
		World.placeBeepers(6, 7, 1);
		World.placeEWWall(3, 1, 3);
		World.placeEWWall(3, 5, 3);
		World.placeEWWall(5, 6, 3);
		World.placeEWWall(6, 2, 5);
		World.placeNSWall(2, 7, 5);
		World.placeNSWall(1, 3, 2);
		World.placeNSWall(4, 3, 2);
		World.placeNSWall(6, 6, 1);
		World.placeEWWall(7, 1, 5);
		World.setVisible();
		task();
	}
}

Andrew C

import kareltherobot.*;
public class ACMaze implements Directions {
	public static void task() {
		Robot karel = new Robot(1,6 , North, 0);
	//Robot commands below
 
              karel.turnOff();
	}
	// Main entry point
 
	public static void main(String[] args) {
		World.setDelay(30);
		World.setSize(14, 14);
		World.placeBeepers(14,8, 1);
 
		World.placeNSWall(1,  0, 13);
		World.placeEWWall(0, 0, 6);
		World.placeEWWall(0,9,7);
		World.placeEWWall(13,1,7);
		World.placeEWWall(13, 9,6 );
		World.placeNSWall(1,13,14);
		World.placeEWWall(1,1,5);
		World.placeNSWall(1,5,1);
		World.placeNSWall(1,6,1);
		World.placeEWWall(1,7,7);
		World.placeNSWall(2,1,4);
		World.placeNSWall(2,3,5);
		World.placeEWWall(2, 5, 2);
		World.placeNSWall(1,6,3);
		World.placeNSWall(4,3,2);
		World.placeNSWall(4, 4, 6);
		World.placeEWWall(4,5,4);
		World.placeEWWall(3,5,1);
		World.placeNSWall(2,7,1);
		World.placeEWWall(4,3,4);
		World.placeEWWall(12,4,7);
		World.placeNSWall(13,10,1);
		World.placeNSWall(10,1,3);
		World.placeNSWall(10,2,5);
		World.placeEWWall(3,8,3);
		World.placeEWWall(2,8,4);
		World.placeNSWall(4,10,5);
		World.placeNSWall(3,11,4);
		World.placeEWWall(7,12,1);
		World.placeNSWall(2,12,4);
		World.placeNSWall(7,12,1);
		World.placeNSWall(5,8,5);
		World.placeNSWall(5,9,4);
		World.placeEWWall(5,9,1);
		World.placeEWWall(7,11,4);
		World.placeEWWall(10,11,9);
		World.placeEWWall(9,5,3);
		World.placeNSWall(5,7,4);
		World.placeEWWall(8,6,2);
		World.placeNSWall(5,5,3);
		World.placeNSWall(6,6,3);
		World.placeEWWall(10,11,2);
		World.placeNSWall(8,11,2);
		World.placeNSWall(8,11,2);
		World.placeNSWall(9,12,3);
		World.placeEWWall(10,9,2);
		World.placeNSWall(10,10,2);
		World.placeEWWall(11,9,2);
		World.placeNSWall(9,7,2);
		World.placeNSWall(8,9,1);
		World.placeNSWall(9,9,1);
		World.placeNSWall(12,11,2);
		World.placeEWWall(11,4,5);
		World.placeNSWall(8,3,4);
		World.placeEWWall(8,1,2);
		World.placeEWWall(7,1,2);
		World.placeNSWall(5,1,1);
		World.placeNSWall(3,2,2);
		World.placeEWWall(6,2,2);
		World.placeNSWall(5,2,1);
		World.placeEWWall(10,5,3);
		World.placeNSWall(14,7,1);
		World.placeNSWall(14,8,1);
	        World.setVisible();
		task();
 
 
	}
}

Daniel G

import kareltherobot.*;
public class CornMaze implements Directions {
	public static void task() {
		Robot robby = new Robot(1, 2, East, 0);
 
//your code here
		robby.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(30);
		World.setSize(8, 9);
		World.placeEWWall(1, 1, 1);
		World.placeEWWall(2,2,2);
		World.placeEWWall(1, 4, 3);
		World.placeNSWall(1, 6, 1);
		World.placeNSWall(2, 1, 1);
		World.placeNSWall(3, 2, 2);
		World.placeBeepers(2, 1, 1);
		World.setVisible();
		task();
	}
}

Ethan G

import kareltherobot.*;
public class EGMaze implements Directions {
	public static void task() {
		Robot jo = new Robot(4, 7, North, 0);
		/**
                 * type Robot instructions here
		 * Robot is named Jo for easy typing
		 * You're welcome 
                 */
                jo.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(150);
		World.setSize(8, 8);
		World.placeBeepers(3, 7, 1);
		World.placeNSWall(1, 7,7);
		World.placeEWWall(7,1,7);
		World.placeEWWall(1,4,1);
		World.placeEWWall(1,6,1);
		World.placeEWWall(3,7,1);
		World.placeNSWall(2,6,3);
		World.placeNSWall(2, 1, 2);
		World.placeNSWall(1, 2, 2);
		World.placeNSWall(2,3,2);
		World.placeEWWall(3, 2, 4);
		World.placeEWWall(4, 1, 2);
		World.placeEWWall(4, 4, 3);
		World.placeNSWall(2, 5, 2);
		World.placeEWWall(2,5,1);
		World.placeEWWall(5, 5, 1);
		World.placeEWWall(5, 7, 1);
		World.placeNSWall(5, 5, 1);
		World.placeNSWall(6, 3, 1);
		World.placeEWWall(6, 4, 3);
		World.placeNSWall(7, 5, 1);
		World.placeNSWall(6, 2, 2);
		World.placeEWWall(5,2,1);
		World.placeNSWall(6, 1, 1);
		World.setVisible();
		task();
	}
}

Luc G

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

Nicolas H

import kareltherobot.*;
public class NHMaze implements Directions {
	public static void task() {
		Robot billy = new Robot(1, 1, North, 0);
 
		billy.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(10);
		World.setSize(9, 8);
		World.placeBeepers(1, 7, 1);
		World.placeEWWall(1, 1, 4);
		World.placeNSWall(1, 5, 2);
		World.placeEWWall(2, 2, 4);
		World.placeNSWall(3, 1, 1);
		World.placeEWWall(4, 1, 2);
		World.placeEWWall(3, 2, 2);
		World.placeNSWall(5, 2, 4);
		World.placeNSWall(4, 3, 4);
		World.placeEWWall(8, 3, 3);
		World.placeEWWall(7, 4, 1);
		World.placeNSWall(7, 5, 2);
		World.placeNSWall(6, 4, 2);
		World.placeEWWall(5, 5, 1);
		World.placeEWWall(6, 6, 1);
		World.placeNSWall(4, 6, 3);
		World.placeNSWall(3, 5, 3);
		World.placeEWWall(3, 7, 1);
		World.placeEWWall(2, 6, 1);
		World.placeNSWall(1, 7, 3);
		World.placeNSWall(1, 6, 2);
 
		World.setVisible();
		task();
	}
}

Jordan M

import kareltherobot.*;
public class JMMaze implements Directions {
	public static void task() {
		Robot robby = new Robot(1, 1, North, 0);
		// your code here
                robby.turnOff();
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(1);
		World.setSize(8, 9);
		World.placeBeepers(1, 5, 1);
		World.placeEWWall(1, 1, 3);
		World.placeNSWall(1, 4, 4);
		World.placeEWWall(2, 3, 3);
		World.placeNSWall(2, 1, 5);
		World.placeEWWall(4, 3, 2);
		World.placeEWWall(6, 1, 1);
		World.placeEWWall(7, 1, 2);
		World.placeNSWall(6, 2, 2);
		World.placeEWWall(5, 3, 3);
		World.placeNSWall(5, 6, 2);
		World.placeEWWall(4, 7, 1);
		World.placeEWWall(1, 5, 3);
		World.placeNSWall(2, 6, 2);
		World.placeNSWall(2, 7, 3);
		World.placeNSWall(6, 7, 3);
		World.placeEWWall(6, 4, 3);
		World.setVisible();
		task();
	}
}

JonathanN

import kareltherobot.*;
public class JNMaze implements Directions {
    public static void task() {
        Robot robby = new Robot(1, 1, North, 0);
        // your code here
        robby.turnOff();
 
    }
    /**
     * Here are some helpful methods- Here Jonathan
     * uses a static method, rather than make a 
     * new type of Robot.
     */
    public static void turnAround(Robot r)
    {
        r.turnLeft();
        r.turnLeft();
    }
 
    public static void turnRight(Robot r)
    {
        r.turnLeft();
        r.turnLeft();
        r.turnLeft();
    }
 
    public static void moveSpaces(int spaces, Robot r)
    {
        for(int i = 0; i < spaces; i++)
        {
            r.move();
        }
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(30);
        World.setSize(12, 12);
        World.placeBeepers(1, 6, 1);
        World.placeEWWall(5, 4, 3);
        World.placeNSWall(1,6, 5);
        World.placeEWWall(4, 2, 4);
        World.placeNSWall(1, 5, 4);
        World.placeEWWall(5,  1,  2);
        World.placeNSWall(6, 2, 3);
        World.placeNSWall(6, 3, 4);
        World.placeEWWall(8, 1, 2);
        World.placeEWWall(9, 1, 3);
        World.setVisible();
        task();
    }
}

Matteo P

import kareltherobot.*;
public class MPMaze implements Directions {
	public static void task() {
		Robot robby = new Robot(1, 2, East, 0);
		//your code here
		robby.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(150);
		World.setSize(8, 9);
		World.placeBeepers(1, 4, 1);
		World.placeEWWall(4, 2, 4);
		World.placeNSWall(2,4, 5);
		World.placeEWWall(7, 1, 7);
		World.setVisible();
		task();
	}
}

Tianxi X

import kareltherobot.*;
public class TXMaze implements Directions {
	public static void task() {
		Robot robby = new Robot(1, 2, East, 0);
		// your code here
		robby.turnOff();
 
	}
	// Main entry point
	public static void main(String[] args) {
		World.setDelay(30);
		World.setSize(8, 9);
		World.placeBeepers(7, 8, 1);
		World.placeEWWall(3, 1, 5);
		World.placeNSWall(1,7, 6);
		World.placeEWWall(7, 1, 6);
		World.placeNSWall(4, 5, 1);
		World.placeEWWall(6, 2, 6);
		World.setVisible();
		task();
	}
}

Youssef Z

import kareltherobot.*;
public class YZMaze implements Directions {
    public static void task() {
        Robot robby = new Robot(1, 2, East, 0);
        // your code here
        robby.turnOff();
 
    }
    // Main entry point
    /**
     * @param args
     */
    public static void main(String[] args) {
        World.setDelay(50);
        World.setSize(15, 15);
        World.placeBeepers(10,13,1);
        World.placeNSWall(2,4,4);
        World.placeNSWall(1,6, 4);
        World.placeEWWall(5,1,6);
        World.placeNSWall(1,2,4);
        World.placeNSWall(1,7,3);
        World.placeNSWall(1,8,3);
        World.placeEWWall(3,8,1);
        World.placeNSWall(1,9,1);
        World.placeNSWall(1,12,9);
        World.placeEWWall(10,1,12);
        World.placeEWWall(1,10,1);
        World.placeNSWall(2,10,2);
        World.placeEWWall(3,11,2);
        World.placeEWWall(5,7,1);
        World.placeEWWall(5,9,4);
        World.placeEWWall(4,7,2);
        World.placeEWWall(4,10,3);
        World.placeNSWall(10,3,1);
        World.placeNSWall(10,7,1);
        World.placeEWWall(9,4,4);
        World.placeNSWall(8,1,2);
        World.placeEWWall(9,2,1);
        World.placeNSWall(8,2,2);
        World.placeEWWall(7,3,3);
        World.placeNSWall(7,5,1);
        World.placeEWWall(6,1,5);
        World.placeNSWall(9,9,2);
        World.placeEWWall(8,10,1);
        World.placeNSWall(9,10,2);
        World.placeNSWall(7,6,2);
        World.placeEWWall(7,8,5);
        World.placeEWWall(6,7,4);
        World.placeNSWall(8,7,1);
        World.placeEWWall(8,7,1);
        World.setVisible();
        task();
    }
}

George Z

import kareltherobot.*;
public class GZMaze implements Directions {
    public static void task() {
        Robot robby = new Robot(1, 1, East, 0);
 
        // Your code here
 
        robby.turnOff();
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(10);
        World.setSize(8, 9);
        World.placeBeepers(6, 5, 1);
        World.placeEWWall(2, 1, 5);
        World.placeEWWall(4, 3, 3);
        World.placeEWWall(5, 2, 1);
        World.placeEWWall(6, 5, 3);
        World.placeEWWall(3, 2, 6);
        World.placeEWWall(1, 6, 1);
        World.placeNSWall(1,6, 5);
        World.placeNSWall(6,4, 1);
        World.placeNSWall(5,7, 2);
        World.placeNSWall(2,7, 2);
        World.placeNSWall(5,5, 2);
        World.placeNSWall(1,2, 1);
        World.placeNSWall(1,4, 1);
        World.placeNSWall(2,3, 1);
        World.placeNSWall(4,1, 2);
        World.placeNSWall(5,3, 3);
        World.placeEWWall(6, 1, 3);
        World.setVisible();
        task();
    }
}

Jiabo Z

import kareltherobot.*;
public class JZMaze implements Directions {
    public static void task() {
        Robot robby = new Robot(1, 2, North, 0);
        // your code here
        robby.turnOff();
    }
    // Main entry point
    public static void main(String[] args) {
        World.setDelay(50); 
        World.setSize(7, 7); 
        World.placeBeepers(6, 1, 1);
        World.placeEWWall(6, 1, 6);
        World.placeEWWall(1, 2, 1);
        World.placeNSWall(1, 1, 1);
        World.placeNSWall(1, 3, 2);
        World.placeEWWall(2, 2, 2);
        World.placeNSWall(4, 1, 1);
        World.placeEWWall(4, 2, 3);
        World.placeEWWall(6, 1, 4);
        World.placeNSWall(1, 6, 6);
        World.placeEWWall(5, 1, 4);
        World.placeNSWall(2, 4, 4);
        World.placeEWWall(1, 5, 1);
        World.placeNSWall(3, 5, 4);
        World.setVisible();
        task(); 
    }
}
try_running_these_student_made_mazes.txt · Last modified: 2020/08/24 17:17 by frchris