From 6d76a336c5bf6c678593bbd3ea89790124f6bbbb Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Tue, 13 Apr 2021 22:05:11 +0100 Subject: [PATCH] Update code.js --- src/code.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/code.js b/src/code.js index 7b49934..d40a1f4 100644 --- a/src/code.js +++ b/src/code.js @@ -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();