- static GenRandInitFen(randomness) {
- const sFen = ChessRules.GenRandInitFen(Math.max(randomness, 1));
- return "3mm3/8/" + sFen.substring(18, 50);
+ static GenRandInitFen(options) {
+ const baseFen = ChessRules.GenRandInitFen(
+ { randomness: (options.random ? 1 : 0) });
+ return "3mm3/8/" + baseFen.substring(18, 50);