X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTitan.js;h=e9b0594f96a877ef67d1357306ae58fc791dcad4;hb=0fb43db7c2858201e8410670b90f95ad8b138964;hp=aadc3e7057750a7ad1ef94c7fc1dcbf5427ed9b2;hpb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;p=vchess.git diff --git a/client/src/variants/Titan.js b/client/src/variants/Titan.js index aadc3e70..e9b0594f 100644 --- a/client/src/variants/Titan.js +++ b/client/src/variants/Titan.js @@ -185,6 +185,14 @@ export class TitanRules extends ChessRules { return moves; } + hoverHighlight(x, y) { + const c = this.turn; + return ( + this.movesCount <= 3 && + ((c == 'w' && x == 7) || (c == 'b' && x == 0)) + ); + } + // Special case of move 1 = choose squares, knight first, then bishop doClick(square) { if (this.movesCount >= 4) return null;