this.settings.highlight &&
["all","highlight"].includes(V.ShowMoves)
);
+ const showCheck = (
+ this.settings.highlight &&
+ ["all","highlight","byrow"].includes(V.ShowMoves)
+ );
const orientation = !V.CanFlip ? "w" : this.orientation;
// Ensure that squares colors do not change when board is flipped
const lightSquareMod = (sizeX + sizeY) % 2;
"in-shadow": inShadow(ci, cj),
"highlight-light": inHighlight(ci, cj) && lightSquare,
"highlight-dark": inHighlight(ci, cj) && !lightSquare,
- "incheck-light": showLight && lightSquare && incheckSq[ci][cj],
- "incheck-dark": showLight && !lightSquare && incheckSq[ci][cj]
+ "incheck-light": showCheck && lightSquare && incheckSq[ci][cj],
+ "incheck-dark": showCheck && !lightSquare && incheckSq[ci][cj]
},
attrs: {
id: getSquareId({ x: ci, y: cj })
// Force a delay between move is shown and clicked
// (otherwise a "double-click" bug might occur)
if (Date.now() - this.clickTime < 200) return;
- this.play(m);
this.choices = [];
+ this.play(m);
};
const onClick =
this.mobileBrowser