added an array to store ids

This commit is contained in:
AUnicornWithNoLife 2021-04-11 17:31:07 +01:00
parent b89baae053
commit 7586b59ce1

View File

@ -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)