maze-generation
Version:
A package to generate mazes using the depth first or hunt and kill algorithm. Mazes can be generated with seed values for reproducibility
26 lines • 781 B
TypeScript
import { type MazeCells } from "./Maze";
import { type ColumnRowCoordinate } from "./types";
export declare class Solver {
cells: MazeCells;
path: ColumnRowCoordinate[];
mazeHeight: number;
mazeWidth: number;
constructor(cells: MazeCells, start: ColumnRowCoordinate, goal: ColumnRowCoordinate);
/**
* Returns an ordered array of cells, with each cell being a cell on the path through the maze.
*/
toJSON(): ColumnRowCoordinate[];
/**
* Returns the string representation of the path through the maze
* e.g.
* _ _ _ _ _
* |S| | |
* |↓ _| | |_|
* |↳ ↴|_ _| |
* | |↓|_ ↱ ↴|
* |_ ↳ → ⇗|G|
* ¯ ¯ ¯ ¯
*/
toString(): string;
}
//# sourceMappingURL=Solver.d.ts.map