19 lines
357 B
TypeScript
19 lines
357 B
TypeScript
import Coordinates from "./coordinates.ts";
|
|
|
|
export default interface Maze {
|
|
id: string,
|
|
width: number,
|
|
height: number,
|
|
start: Coordinates,
|
|
end: Coordinates,
|
|
algorithm: string,
|
|
grid: MazeCell[][]
|
|
}
|
|
|
|
export interface MazeCell {
|
|
top: boolean,
|
|
right: boolean,
|
|
bottom: boolean,
|
|
left: boolean,
|
|
solution: boolean
|
|
}
|