From a751e79b2965b3a565fc8ca68047b5a203bb8e13 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Sun, 11 Apr 2021 17:16:14 +0100 Subject: [PATCH] Update code.js --- src/code.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/code.js b/src/code.js index 316cc89..ca4f667 100644 --- a/src/code.js +++ b/src/code.js @@ -1,13 +1,26 @@ -board = +var board = [ [0, 0, 0], [0, 0, 0], [0, 0, 0] ]; -ptm = 1; +var ptm = 1; function move(id) { + var charater = ""; + if (ptm === 1) + { + charater = "X" + } + else if (ptm === 2) + { + charater = "O" + } + else + { + + } } \ No newline at end of file