Skip to content

Commit

Permalink
Update fifteen_puzzle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirilllive authored Nov 22, 2024
1 parent fc46802 commit f110a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fifteen_puzzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function move_slot(s) {
}
function check_slots(){
let check=1;
for(var y=0;y<=p.grid[1];y++){
for(let 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;}
}
Expand Down

0 comments on commit f110a86

Please sign in to comment.