projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hamilton: no postPlay/Undo
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
00b1456
..
0569f71
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-1,16
+1,21
@@
import { ChessRules } from "@/base_rules";
export class ShatranjRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class ShatranjRules extends ChessRules {
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
- static get Has
Castle
() {
+ static get Has
Enpassant
() {
return false;
}
return false;
}
- static get HasEnpassant() {
- return false;
+ static get Monochrome() {
+ return true;
+ }
+
+ static get Notoodark() {
+ return true;
}
static get PawnSpecs() {
}
static get PawnSpecs() {
@@
-24,6
+29,11
@@
export class ShatranjRules extends ChessRules {
);
}
);
}
+ getPpath(b) {
+ if (b[1] == 'b') return "Shatranj/" + b;
+ return b;
+ }
+
static get ElephantSteps() {
return [
[-2, -2],
static get ElephantSteps() {
return [
[-2, -2],
@@
-142,4
+152,5
@@
export class ShatranjRules extends ChessRules {
k: 1000
};
}
k: 1000
};
}
+
};
};