processMove: function(move, data) {
if (!data) data = {};
const moveCol = this.vr.turn;
processMove: function(move, data) {
if (!data) data = {};
const moveCol = this.vr.turn;
const origMovescount = this.game.moves.length;
let addTime = 0; //for live games
if (moveCol == this.game.mycolor && !data.receiveMyMove) {
const origMovescount = this.game.moves.length;
let addTime = 0; //for live games
if (moveCol == this.game.mycolor && !data.receiveMyMove) {
this.opponentGotMove = false;
this.send("newmove", {data: sendMove});
// If the opponent doesn't reply gotmove soon enough, re-send move:
this.opponentGotMove = false;
this.send("newmove", {data: sendMove});
// If the opponent doesn't reply gotmove soon enough, re-send move:
// The board might have been hidden:
if (boardDiv.style.visibility == "hidden")
boardDiv.style.visibility = "visible";
// The board might have been hidden:
if (boardDiv.style.visibility == "hidden")
boardDiv.style.visibility = "visible";