Refactor
All checks were successful
/ maven-build (push) Successful in 20s

This commit is contained in:
Manuel Friedli 2026-03-07 23:47:38 +01:00
parent 824f038084
commit 3efb87bcd8
Signed by: manuel
GPG key ID: 41D08ABA75634DA1
24 changed files with 14 additions and 19 deletions

4
app/model/coordinates.ts Normal file
View file

@ -0,0 +1,4 @@
export default interface Coordinates {
x: number,
y: number
}

19
app/model/maze.ts Normal file
View 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
}