projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Almost added TitanChess + EvolutionChess
[vchess.git]
/
client
/
src
/
variants
/
Teleport.js
diff --git
a/client/src/variants/Teleport.js
b/client/src/variants/Teleport.js
index
eadaf13
..
52c7fd6
100644
(file)
--- a/
client/src/variants/Teleport.js
+++ b/
client/src/variants/Teleport.js
@@
-2,6
+2,7
@@
import { ChessRules, Move, PiPo } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class TeleportRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class TeleportRules extends ChessRules {
+
hoverHighlight(x, y) {
// Testing move validity results in an infinite update loop.
// TODO: find a way to test validity anyway.
hoverHighlight(x, y) {
// Testing move validity results in an infinite update loop.
// TODO: find a way to test validity anyway.
@@
-319,4
+320,5
@@
export class TeleportRules extends ChessRules {
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
move.appear[0].p != V.PAWN ? move.appear[0].p.toUpperCase() : "";
return piece + "@" + V.CoordsToSquare(move.end);
}
+
};
};