projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Xiangqi + a few cosmetics
[vchess.git]
/
client
/
src
/
variants
/
Fullcavalry.js
diff --git
a/client/src/variants/Fullcavalry.js
b/client/src/variants/Fullcavalry.js
index
0eb53f1
..
c211aa8
100644
(file)
--- a/
client/src/variants/Fullcavalry.js
+++ b/
client/src/variants/Fullcavalry.js
@@
-91,7
+91,7
@@
export class FullcavalryRules extends ChessRules {
static GenRandInitFen(randomness) {
if (randomness == 0)
// Deterministic:
static GenRandInitFen(randomness) {
if (randomness == 0)
// Deterministic:
- return "e
fbqkbnm/pppppppp/8/8/8/8/PPPPPPPP/ED
BQKBNM w 0 ahah -";
+ return "e
nbqkbnm/pppppppp/8/8/8/8/PPPPPPPP/EN
BQKBNM w 0 ahah -";
const baseFen = ChessRules.GenRandInitFen(randomness);
// Replace rooks by lancers with expected orientation:
const baseFen = ChessRules.GenRandInitFen(randomness);
// Replace rooks by lancers with expected orientation:
@@
-328,7
+328,7
@@
export class FullcavalryRules extends ChessRules {
filterValid(moves) {
// At move 1, forbid captures (in case of...):
filterValid(moves) {
// At move 1, forbid captures (in case of...):
- if (this.movesCount >= 2) return
moves
;
+ if (this.movesCount >= 2) return
super.filterValid(moves)
;
return moves.filter(m => m.vanish.length == 1);
}
return moves.filter(m => m.vanish.length == 1);
}