UNPKG

node-maze-generator

Version:

Generate perfect mazes with Node using a growing tree algorithm

11 lines (10 loc) 218 B
class Cell { constructor(x, y, z, visited = false) { this.x = x; this.y = y; this.z = z; this.blocked = true; this.visited = visited || false; } } module.exports = Cell;