added an array to store ids
This commit is contained in:
parent
b89baae053
commit
7586b59ce1
15
src/code.js
15
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)
|
||||
|
Loading…
Reference in New Issue
Block a user