obeys where things are placed

This commit is contained in:
AUnicornWithNoLife 2021-04-11 21:08:31 +01:00
parent 42c619e5aa
commit 3e8f15e669

View File

@ -41,6 +41,11 @@ var ptm = 1;
function move(id)
{
if (board[ids[id][0]][ids[id][1]][0] != 0)
{
return;
}
var charater = "";
if (ptm == 1)
@ -57,4 +62,5 @@ function move(id)
}
board[ids[id][0]][ids[id][1]][1].innerHTML = charater;
board[ids[id][0]][ids[id][1]][0] = charater;
}