563fd00b90df9447e11f5c4fc6b0535c6c3cf543
1 import { ChessRules
} from "@/base_rules";
3 export class PawnmassacreRules
extends ChessRules
{
4 static get HasFlags() {
8 static GenRandInitFen(randomness
) {
10 ChessRules
.GenRandIntFen(randomness
)
11 // Remove castle flags
12 .slice(0, -6).concat("-")
13 .replace("PPPPPPPP", "pppppppp")
14 // Next replacement is OK because only acts on first occurrence
15 .replace("pppppppp", "PPPPPPPP")