projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to clarify installation instructions a little
[vchess.git]
/
client
/
src
/
variants
/
Allmate.js
diff --git
a/client/src/variants/Allmate.js
b/client/src/variants/Allmate.js
index
86409c2
..
9c43a46
100644
(file)
--- a/
client/src/variants/Allmate.js
+++ b/
client/src/variants/Allmate.js
@@
-11,8
+11,8
@@
export class AllmateRules extends ChessRules {
return [];
}
return [];
}
- static GenRandInitFen(
randomnes
s) {
- return ChessRules.GenRandInitFen(
randomnes
s).slice(0, -2);
+ static GenRandInitFen(
option
s) {
+ return ChessRules.GenRandInitFen(
option
s).slice(0, -2);
}
getPotentialMovesFrom([x, y]) {
}
getPotentialMovesFrom([x, y]) {
@@
-69,10
+69,7
@@
export class AllmateRules extends ChessRules {
case V.KING:
// Do not allow castling to escape from check
oppMoves = super.getSlideNJumpMoves(
case V.KING:
// Do not allow castling to escape from check
oppMoves = super.getSlideNJumpMoves(
- [i, j],
- V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
- "oneStep"
- );
+ [i, j], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), 1);
break;
}
for (let om of oppMoves) {
break;
}
for (let om of oppMoves) {