From 7586b59ce1eac5beada480b864c4d98d2f77695a Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Sun, 11 Apr 2021 17:31:07 +0100 Subject: [PATCH] added an array to store ids --- src/code.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/code.js b/src/code.js index 1704026..0b512e2 100644 --- a/src/code.js +++ b/src/code.js @@ -17,6 +17,21 @@ var board = ] ]; +var ids = +{ + '00': [0, 0], + '01': [0, 1], + '02': [0, 2], + + '10': [1, 0], + '11': [1, 1], + '12': [1, 2], + + '20': [2, 0], + '21': [2, 1], + '22': [2, 2] +} + var ptm = 1; function move(id)