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
/
Monocolor.js
diff --git
a/client/src/variants/Monocolor.js
b/client/src/variants/Monocolor.js
index
1e26369
..
1478f48
100644
(file)
--- a/
client/src/variants/Monocolor.js
+++ b/
client/src/variants/Monocolor.js
@@
-156,9
+156,9
@@
export class MonocolorRules extends ChessRules {
return "1/2";
}
return "1/2";
}
- static GenRandInitFen(
randomnes
s) {
+ static GenRandInitFen(
option
s) {
// Remove the en-passant + castle part of the FEN
// Remove the en-passant + castle part of the FEN
- let fen = ChessRules.GenRandInitFen(
randomnes
s).slice(0, -6);
+ let fen = ChessRules.GenRandInitFen(
option
s).slice(0, -6);
// Replace kings with queens
fen = fen.replace("k", "q").replace("K", "Q");
// Move pawns up:
// Replace kings with queens
fen = fen.replace("k", "q").replace("K", "Q");
// Move pawns up: