projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Some fixes + first draft of Chakart (just thoughts for now)
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
00b1456
..
7d76b83
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-5,10
+5,6
@@
export class ShatranjRules extends ChessRules {
return false;
}
- static get HasCastle() {
- return false;
- }
-
static get HasEnpassant() {
return false;
}
@@
-24,6
+20,11
@@
export class ShatranjRules extends ChessRules {
);
}
+ getPpath(b) {
+ if (b[1] == 'b') return "Shatranj/" + b;
+ return b;
+ }
+
static get ElephantSteps() {
return [
[-2, -2],