X-Git-Url: https://git.auder.net/images/pieces/%22%20%20V.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGrasshopper.js;h=82caa9f43819702d533d9e47606f6c9ec9929eab;hb=11589e7c4bb1b69473588d133db8b6d1d37b8fee;hp=416f63256a078ab5c7dd217ca09eb6729b6bf145;hpb=b83a675a3066c67cc7843ae27ad8aeffd15b0976;p=vchess.git diff --git a/client/src/variants/Grasshopper.js b/client/src/variants/Grasshopper.js index 416f6325..82caa9f4 100644 --- a/client/src/variants/Grasshopper.js +++ b/client/src/variants/Grasshopper.js @@ -139,7 +139,7 @@ export const VariantRules = class GrasshopperRules extends ChessRules { static GenRandInitFen(randomness) { return ChessRules.GenRandInitFen(randomness) - .replace("w 0 1111 -", "w 0 1111") + .slice(0, -2) .replace( "/pppppppp/8/8/8/8/PPPPPPPP/", "/gggggggg/pppppppp/8/8/PPPPPPPP/GGGGGGGG/"