projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Spartan, Avalam + Emergo pieces
[vchess.git]
/
client
/
src
/
variants
/
Grasshopper.js
diff --git
a/client/src/variants/Grasshopper.js
b/client/src/variants/Grasshopper.js
index
5069e23
..
90411d1
100644
(file)
--- a/
client/src/variants/Grasshopper.js
+++ b/
client/src/variants/Grasshopper.js
@@
-3,6
+3,7
@@
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
export class GrasshopperRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class GrasshopperRules extends ChessRules {
+
static get HasEnpassant() {
return false;
}
static get HasEnpassant() {
return false;
}
@@
-11,10
+12,7
@@
export class GrasshopperRules extends ChessRules {
return Object.assign(
{},
ChessRules.PawnSpecs,
return Object.assign(
{},
ChessRules.PawnSpecs,
- {
- twoSquares: false,
- promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER])
- }
+ { promotions: ChessRules.PawnSpecs.promotions.concat([V.GRASSHOPPER]) }
);
}
);
}
@@
-111,4
+109,5
@@
export class GrasshopperRules extends ChessRules {
"/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/"
);
}
"/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/"
);
}
+
};
};