fix: correction d'erreur dans le choix de bonne sortie

This commit is contained in:
2026-08-03 00:21:31 +02:00
parent 4d57dfa233
commit c4370815f2
9 changed files with 14 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ export function drawMaze() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let y = 0; y < maze.length; y++) {
for (let x = 0; y < maze.length; x++) {
for (let x = 0; x < maze[y].length; x++) {
if (maze[y][x] === 1) ctx.fillStyle = "#333";
else if (maze[y][x] === 2) ctx.fillStyle = "gold";
else ctx.fillStyle = "#eee";