added var to control if predict should be used
this will be controllable by user in future
This commit is contained in:
parent
43cbeb78ca
commit
844bd0b2cd
@ -48,9 +48,12 @@ function move(id)
|
|||||||
|
|
||||||
resetPredict();
|
resetPredict();
|
||||||
|
|
||||||
var pre = calculate(ptm);
|
if (dopredict)
|
||||||
|
{
|
||||||
|
var pre = calculate(ptm);
|
||||||
|
|
||||||
board[pre[0]][pre[1]][1].parentElement.classList.add('predict');
|
board[pre[0]][pre[1]][1].parentElement.classList.add('predict');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function win()
|
function win()
|
||||||
|
@ -6,7 +6,8 @@ var ptm;
|
|||||||
var tabloid;
|
var tabloid;
|
||||||
var gamemode;
|
var gamemode;
|
||||||
var root;
|
var root;
|
||||||
var themesel
|
var themesel;
|
||||||
|
var dopredict;
|
||||||
|
|
||||||
function load()
|
function load()
|
||||||
{
|
{
|
||||||
@ -65,6 +66,8 @@ function load()
|
|||||||
themesel = document.getElementById('theme-sel');
|
themesel = document.getElementById('theme-sel');
|
||||||
|
|
||||||
root = document.documentElement;
|
root = document.documentElement;
|
||||||
|
|
||||||
|
dopredict = true;
|
||||||
|
|
||||||
info['go'].innerHTML = "X's Go";
|
info['go'].innerHTML = "X's Go";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user