labyrinth-frontend/src/app/model/maze.ts
2024-12-26 17:38:31 +01:00

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
}