- Source:
Methods
-
<static> create(args) → {Object}
-
Create a maze and return the inner walls of the maze.
Parameters:
Name Type Argument Default Description args
Object <optional>
{width: 10, height: 10, start: {x: 0, y: 0}, print: false} Arguments object. - Source:
Returns:
An object with properties to construct a maze. The attribute `walls` is an array of objects with the attributes x, y, width and height. The attribute `start` says where the ball should start and `exit` says where the goal is. The attribute `exitPath` is an array of objects with attributes x and y.- Type
- Object