Update code.js
This commit is contained in:
parent
a8147bfb58
commit
6d76a336c5
@ -6,6 +6,7 @@ function move(id)
|
||||
}
|
||||
|
||||
var charater = "";
|
||||
var optm = ptm;
|
||||
|
||||
if (ptm == 1)
|
||||
{
|
||||
@ -21,7 +22,7 @@ function move(id)
|
||||
}
|
||||
|
||||
board[ids[id][0]][ids[id][1]][1].innerHTML = charater;
|
||||
board[ids[id][0]][ids[id][1]][0] = ptm;
|
||||
board[ids[id][0]][ids[id][1]][0] = optm;
|
||||
|
||||
var winner = win();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user