projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Chakart beta :)
[vchess.git]
/
client
/
src
/
variants
/
Teleport.js
diff --git
a/client/src/variants/Teleport.js
b/client/src/variants/Teleport.js
index
93648c4
..
7704184
100644
(file)
--- 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) {
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);
}
return (this.subTurn == 2 && this.board[x][y] == V.EMPTY);
}