projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Football
[vchess.git]
/
client
/
src
/
variants
/
Mesmer.js
diff --git
a/client/src/variants/Mesmer.js
b/client/src/variants/Mesmer.js
index
ec40b48
..
c522e73
100644
(file)
--- a/
client/src/variants/Mesmer.js
+++ b/
client/src/variants/Mesmer.js
@@
-36,8
+36,8
@@
export class MesmerRules extends ChessRules {
);
}
);
}
- static GenRandInitFen(
randomnes
s) {
- const antikingFen = Antiking2Rules.GenRandInitFen(
randomnes
s);
+ static GenRandInitFen(
option
s) {
+ const antikingFen = Antiking2Rules.GenRandInitFen(
option
s);
return antikingFen.replace('a', 'M').replace('A', 'm') + " -";
}
return antikingFen.replace('a', 'M').replace('A', 'm') + " -";
}
@@
-113,7
+113,7
@@
export class MesmerRules extends ChessRules {
piece == V.KING
// No castling with enemy king (...yes, should eat it but...)
? super.getSlideNJumpMoves(
piece == V.KING
// No castling with enemy king (...yes, should eat it but...)
? super.getSlideNJumpMoves(
- [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
"oneStep"
)
+ [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
1
)
: super.getPotentialMovesFrom([x, y]);
return moves;
}
: super.getPotentialMovesFrom([x, y]);
return moves;
}