import { ChessRules } from "@/base_rules";
export class ShatranjRules extends ChessRules {
+
static get HasFlags() {
return false;
}
- static get HasCastle() {
+ static get HasEnpassant() {
return false;
}
- static get HasEnpassant() {
- return false;
+ static get Monochrome() {
+ return true;
+ }
+
+ static get Notoodark() {
+ return true;
}
static get PawnSpecs() {
);
}
+ getPpath(b) {
+ if (b[1] == 'b') return "Shatranj/" + b;
+ return b;
+ }
+
static get ElephantSteps() {
return [
[-2, -2],
k: 1000
};
}
+
};