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 2, 2024
1 parent 71abb75 commit 58ebe81
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 @@ -39,7 +39,7 @@ function stir_slots(){
freeslot=[a[0],a[1]]
}
for(let y=0;y<=p.grid[1];y++){
for(var x=0;x<=p.grid[0];x++){
for(let x=0;x<=p.grid[0];x++){
if(m[y][x]){
let e=document.getElementById("slot"+m[y][x])
e.style.left=(x*size[0])+"px";
Expand Down

0 comments on commit 58ebe81

Please sign in to comment.