projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bario
[vchess.git]
/
client
/
src
/
variants
/
Royalrace.js
diff --git
a/client/src/variants/Royalrace.js
b/client/src/variants/Royalrace.js
index
39ee02a
..
5d5992c
100644
(file)
--- a/
client/src/variants/Royalrace.js
+++ b/
client/src/variants/Royalrace.js
@@
-3,11
+3,8
@@
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
export class RoyalraceRules extends ChessRules {
import { randInt, shuffle } from "@/utils/alea";
export class RoyalraceRules extends ChessRules {
- static get HasFlags() {
- return false;
- }
- static get Has
Castle
() {
+ static get Has
Flags
() {
return false;
}
return false;
}
@@
-23,6
+20,10
@@
export class RoyalraceRules extends ChessRules {
return { x: 11, y: 11 };
}
return { x: 11, y: 11 };
}
+ getPpath(b) {
+ return (b[1] == V.KNIGHT ? "Enpassant/" : "") + b;
+ }
+
static GenRandInitFen(randomness) {
if (randomness == 0)
return "92/92/92/92/92/92/92/92/92/qrbnp1PNBRQ/krbnp1PNBRK w 0";
static GenRandInitFen(randomness) {
if (randomness == 0)
return "92/92/92/92/92/92/92/92/92/qrbnp1PNBRQ/krbnp1PNBRK w 0";
@@
-219,4
+220,5
@@
export class RoyalraceRules extends ChessRules {
V.CoordsToSquare(move.end)
);
}
V.CoordsToSquare(move.end)
);
}
+
};
};