X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTitan.js;h=e9b0594f96a877ef67d1357306ae58fc791dcad4;hp=aadc3e7057750a7ad1ef94c7fc1dcbf5427ed9b2;hb=0fb43db7c2858201e8410670b90f95ad8b138964;hpb=1186fba725f3da468f8834a9b44d58993a7d86d4 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;