public class Maze
extends java.lang.Object
Constructor and Description |
---|
Maze(int width,
int height)
Creates a new instance of the maze.
|
public Maze(int width, int height)
width
- The width (the number of columns) of the Maze.height
- The height (the number of rows) of the Maze.public Grid getGrid(int x, int y)
x
- The column number of the gridy
- The row number of the gridpublic int getWidth()
public int getHeight()