UNPKG

@miketmoore/maze-generator

Version:

This is a javascript library, written in TypeScript that generates a maze data structure.

13 lines (12 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.coordFactory = void 0; class Coord { constructor(row, col) { this.toString = () => `[${this.row},${this.col}]`; this.row = row; this.col = col; } } const coordFactory = (row, col) => new Coord(row, col); exports.coordFactory = coordFactory;