+r5k1/1R5p/3N4/4pP2/1p4P1/2p5/1rP1PKP1/8 w - - 0 1
+
Simultaneous games: view Game + Simultaneous, using component (One)Game
Storage: just key ID => IDs of actual games (in indexedDB)
In Hall challenge: acceptation on sender side (who launch the game when ready --> left click [which just delete if nobody registered, with confirm box])
}
static GenRandInitFen(randomness) {
- return (
- ChessRules.GenRandIntFen(randomness)
+ const bFen =
+ ChessRules.GenRandInitFen(randomness)
// Remove castle flags
- .slice(0, -6).concat("-")
+ .slice(0, -6).concat("-");
+ const splitIdx = bFen.indexOf(' ');
+ return (
+ bFen.substr(0, splitIdx)
.replace("PPPPPPPP", "pppppppp")
// Next replacement is OK because only acts on first occurrence
.replace("pppppppp", "PPPPPPPP")
+ .split("").reverse().join("")
+ .concat(bFen.substr(splitIdx))
);
}
};