projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes, draw lines on board, add 7 variants
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
00b1456
..
d8e4460
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-5,12
+5,12
@@
export class ShatranjRules extends ChessRules {
return false;
}
return false;
}
- static get Has
Castle
() {
+ static get Has
Enpassant
() {
return false;
}
return false;
}
- static get
HasEnpassant
() {
- return
fals
e;
+ static get
Monochrome
() {
+ return
tru
e;
}
static get PawnSpecs() {
}
static get PawnSpecs() {
@@
-24,6
+24,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],