projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Chakart when landing piece on invisible queen + reserve pieces ordering
[vchess.git]
/
client
/
src
/
variants
/
Royalrace.js
diff --git
a/client/src/variants/Royalrace.js
b/client/src/variants/Royalrace.js
index
9b6575a
..
21a62c8
100644
(file)
--- a/
client/src/variants/Royalrace.js
+++ b/
client/src/variants/Royalrace.js
@@
-7,10
+7,6
@@
export class RoyalraceRules extends ChessRules {
return false;
}
return false;
}
- static get HasCastle() {
- return false;
- }
-
static get HasEnpassant() {
return false;
}
static get HasEnpassant() {
return false;
}
@@
-25,7
+21,7
@@
export class RoyalraceRules extends ChessRules {
static GenRandInitFen(randomness) {
if (randomness == 0)
static GenRandInitFen(randomness) {
if (randomness == 0)
- return "
11/11/11/11/11/11/11/11/11
/qrbnp1PNBRQ/krbnp1PNBRK w 0";
+ return "
92/92/92/92/92/92/92/92/92
/qrbnp1PNBRQ/krbnp1PNBRK w 0";
let pieces = { w: new Array(10), b: new Array(10) };
// Shuffle pieces on first and second rank
let pieces = { w: new Array(10), b: new Array(10) };
// Shuffle pieces on first and second rank
@@
-96,7
+92,7
@@
export class RoyalraceRules extends ChessRules {
const whiteFen = pieces["w"].join("").toUpperCase();
const blackFen = pieces["b"].join("");
return (
const whiteFen = pieces["w"].join("").toUpperCase();
const blackFen = pieces["b"].join("");
return (
- "
11/11/11/11/11/11/11/11/11
/" +
+ "
92/92/92/92/92/92/92/92/92
/" +
blackFen.substr(5).split("").reverse().join("") +
"1" +
whiteFen.substr(5).split("").join("") +
blackFen.substr(5).split("").reverse().join("") +
"1" +
whiteFen.substr(5).split("").join("") +