projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Several small improvements + integrate options + first working draft of Cwda
[vchess.git]
/
client
/
src
/
variants
/
Hypnotic.js
diff --git
a/client/src/variants/Hypnotic.js
b/client/src/variants/Hypnotic.js
index
a429c7c
..
3b67843
100644
(file)
--- a/
client/src/variants/Hypnotic.js
+++ b/
client/src/variants/Hypnotic.js
@@
-23,8
+23,8
@@
export class HypnoticRules extends ChessRules {
);
}
);
}
- static GenRandInitFen(
randomnes
s) {
- return ChessRules.GenRandInitFen(
randomnes
s) + " -";
+ static GenRandInitFen(
option
s) {
+ return ChessRules.GenRandInitFen(
option
s) + " -";
}
setOtherVariables(fen) {
}
setOtherVariables(fen) {
@@
-69,7
+69,7
@@
export class HypnoticRules extends ChessRules {
this.getPiece(x, y) == V.KING
// No castling with enemy king (...yes, should eat it but...)
? super.getSlideNJumpMoves(
this.getPiece(x, y) == 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;
}