From 1cc661be2de08fe6ccc2b5cb2f80ee99a1bdefcc Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Sun, 11 Apr 2021 17:42:02 +0100 Subject: [PATCH] adjusted ids --- src/code.js | 20 +++++++++++--------- src/index.html | 18 +++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/code.js b/src/code.js index c9df44f..0db1692 100644 --- a/src/code.js +++ b/src/code.js @@ -1,19 +1,19 @@ var board = [ [ - [0, document.getElementById("00")], - [0, document.getElementById("01")], - [0, document.getElementById("02")] + [0, document.getElementById("id00")], + [0, document.getElementById("id01")], + [0, document.getElementById("id02")] ], [ - [0, document.getElementById("10")], - [0, document.getElementById("11")], - [0, document.getElementById("12")] + [0, document.getElementById("id10")], + [0, document.getElementById("id11")], + [0, document.getElementById("id12")] ], [ - [0, document.getElementById("20")], - [0, document.getElementById("21")], - [0, document.getElementById("22")] + [0, document.getElementById("id20")], + [0, document.getElementById("id21")], + [0, document.getElementById("id22")] ] ]; @@ -36,6 +36,8 @@ var ptm = 1; function move(id) { + console.log(board[ids[id] [0]] [ids[id] [1]]); + var charater = ""; if (ptm === 1) diff --git a/src/index.html b/src/index.html index 5eee61c..b345742 100644 --- a/src/index.html +++ b/src/index.html @@ -14,19 +14,19 @@ - - - + + + - - - + + + - - - + + +