Chakart beta :)
[vchess.git] / client / src / variants / Teleport.js
index 93648c4..7704184 100644 (file)
@@ -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);
   }