add: base backend interaction
This commit is contained in:
parent
83bfb13590
commit
630f59055a
@ -62,6 +62,13 @@ class TicTacToe
|
|||||||
return -1;
|
return -1;
|
||||||
targetCase = findSquare(x, this.rectsize * 3 * findPlace(x, this) + this.gap, this) + findSquare(y, this.rectsize * 3 * findPlace(y, this) + this.gap, this) * 3;
|
targetCase = findSquare(x, this.rectsize * 3 * findPlace(x, this) + this.gap, this) + findSquare(y, this.rectsize * 3 * findPlace(y, this) + this.gap, this) * 3;
|
||||||
console.log("TargetMorpion :" + targetMorpion + " targetCase :" + targetCase);
|
console.log("TargetMorpion :" + targetMorpion + " targetCase :" + targetCase);
|
||||||
|
|
||||||
|
|
||||||
|
// if (sendCase(targetCase, targetMorpion)) // si la case est disponible
|
||||||
|
// putCase(targetCase, targetMorpion); // print the case
|
||||||
|
// else
|
||||||
|
// return ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawSuperMorpion()
|
DrawSuperMorpion()
|
||||||
|
Loading…
Reference in New Issue
Block a user