projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change castle flags. Eightpieces still not OK, but almost
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
b45d915
..
c364b81
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-19,7
+19,8
@@
export const VariantRules = class ShatranjRules extends ChessRules {
}
static GenRandInitFen(randomness) {
}
static GenRandInitFen(randomness) {
- return ChessRules.GenRandInitFen(randomness).replace("w 1111 -", "w");
+ // Remove castle flags and en-passant indication
+ return ChessRules.GenRandInitFen(randomness).slice(0, -7);
}
getPotentialPawnMoves([x, y]) {
}
getPotentialPawnMoves([x, y]) {