projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bario, write rules
[vchess.git]
/
client
/
src
/
variants
/
Madhouse.js
diff --git
a/client/src/variants/Madhouse.js
b/client/src/variants/Madhouse.js
index
c157437
..
5f90904
100644
(file)
--- a/
client/src/variants/Madhouse.js
+++ b/
client/src/variants/Madhouse.js
@@
-2,6
+2,7
@@
import { ChessRules, Move, PiPo } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class MadhouseRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class MadhouseRules 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.
@@
-254,4
+255,5
@@
export class MadhouseRules 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);
}
+
};
};