User Tools

Site Tools


make_a_maze

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
make_a_maze [2019/08/22 18:53] frchrismake_a_maze [2019/08/22 18:54] frchris
Line 14: Line 14:
 ====== 3 Ways to Make Walls ====== ====== 3 Ways to Make Walls ======
   - World.placeNSWall(), World.placeEWWall() have three parameters (sometimes called arguments).  You need to tell these methods three integers,  For a East-West Street: the number of the street, the number of the Avenue, and the length of the wall (either going East or North, depending on the direction. Once you get the hang of reading the [[http://csis.pace.edu/%7Ebergin/KarelJava2ed/KJRdocs/kareltherobot/World.html|API]] of a class you can quickly use or build upon other people's code (or even your own). <code java>import kareltherobot.*;   - World.placeNSWall(), World.placeEWWall() have three parameters (sometimes called arguments).  You need to tell these methods three integers,  For a East-West Street: the number of the street, the number of the Avenue, and the length of the wall (either going East or North, depending on the direction. Once you get the hang of reading the [[http://csis.pace.edu/%7Ebergin/KarelJava2ed/KJRdocs/kareltherobot/World.html|API]] of a class you can quickly use or build upon other people's code (or even your own). <code java>import kareltherobot.*;
-public class Walls implements Directions {+public class Maze implements Directions {
  public static void task() {  public static void task() {
  Robot robby = new Robot(1, 2, East, 0);  Robot robby = new Robot(1, 2, East, 0);
make_a_maze.txt · Last modified: 2021/09/05 13:16 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki