projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished problems implementation. TODO: specify state for Crazyhouse,Grand. Improve...
[vchess.git]
/
public
/
javascripts
/
variants
/
Grand.js
diff --git
a/public/javascripts/variants/Grand.js
b/public/javascripts/variants/Grand.js
index
f5ae065
..
276acbc
100644
(file)
--- a/
public/javascripts/variants/Grand.js
+++ b/
public/javascripts/variants/Grand.js
@@
-18,6
+18,10
@@
class GrandRules extends ChessRules
static get MARSHALL() { return 'm'; } //rook+knight
static get CARDINAL() { return 'c'; } //bishop+knight
static get MARSHALL() { return 'm'; } //rook+knight
static get CARDINAL() { return 'c'; } //bishop+knight
+ static get PIECES() {
+ return ChessRules.PIECES.concat([V.MARSHALL,V.CARDINAL]);
+ }
+
// En-passant after 2-sq or 3-sq jumps
getEpSquare(move)
{
// En-passant after 2-sq or 3-sq jumps
getEpSquare(move)
{
@@
-271,10
+275,9
@@
class GrandRules extends ChessRules
pieces[c][knight2Pos] = 'n';
pieces[c][rook2Pos] = 'r';
}
pieces[c][knight2Pos] = 'n';
pieces[c][rook2Pos] = 'r';
}
-
let fen =
pieces["b"].join("") +
+
return
pieces["b"].join("") +
"/pppppppppp/10/10/10/10/10/10/PPPPPPPPPP/" +
pieces["w"].join("").toUpperCase() +
"/pppppppppp/10/10/10/10/10/10/PPPPPPPPPP/" +
pieces["w"].join("").toUpperCase() +
- " 1111";
- return fen;
+ " 1111 w";
}
}
}
}