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 20, 2024
1 parent 73f120f commit fc46802
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 @@ -57,7 +57,7 @@ function move_slot(s) {
e.style.top =((y+h)*size[1])+"px";
m[y][x]=k;k=j;
}
for(let y=0;y<p.grid[1]+1;y++){
let (let y=0;y<p.grid[1]+1;y++){
for(let x=0;x<p.grid[0]+1;x++){
if(m[y][x]==s){
a=[y,x];k=0;
Expand Down

0 comments on commit fc46802

Please sign in to comment.