X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTeleport.js;h=7704184f1f22099235cbf82782633d70ecb44003;hb=596e24d030f94682a31df74799c13eb792a63cdf;hp=93648c483b9147a4a3af42743265b443a223ce7c;hpb=ff0150d1eb0ce3778310e67bb4ce87d0666a37d7;p=vchess.git diff --git a/client/src/variants/Teleport.js b/client/src/variants/Teleport.js index 93648c48..7704184f 100644 --- a/client/src/variants/Teleport.js +++ b/client/src/variants/Teleport.js @@ -3,7 +3,8 @@ import { randInt } from "@/utils/alea"; export class TeleportRules extends ChessRules { hoverHighlight(x, y) { - // TODO: only highlight if the move is legal + // Testing move validity results in an infinite update loop. + // TODO: find a way to test validity anyway. return (this.subTurn == 2 && this.board[x][y] == V.EMPTY); }