update react
This commit is contained in:
parent
804ce323bf
commit
7d4f1151fa
40 changed files with 3573 additions and 14078 deletions
19
src/app/model/maze.ts
Normal file
19
src/app/model/maze.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue