From d14080602b79932e0442ec560a4487cb1f17b5b6 Mon Sep 17 00:00:00 2001 From: Kirill Live Date: Thu, 14 Nov 2024 16:57:02 +0300 Subject: [PATCH] Update fifteen_puzzle.js --- fifteen_puzzle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fifteen_puzzle.js b/fifteen_puzzle.js index 72b813d..4557575 100644 --- a/fifteen_puzzle.js +++ b/fifteen_puzzle.js @@ -75,7 +75,7 @@ function move_slot(s) { }check_slots(); } function check_slots(){ - var check=1; + let check=1; for(var y=0;y<=p.grid[1];y++){ for(var x=0;x<=p.grid[0];x++){ if(m[y][x]==0||check==m[y][x]){check++}else{break;}