Fix Alapo GenRandInitFen()
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 8 Feb 2021 21:00:06 +0000 (22:00 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 8 Feb 2021 21:00:06 +0000 (22:00 +0100)
client/src/variants/Alapo.js

index b3c466e..3037954 100644 (file)
@@ -115,11 +115,12 @@ export class AlapoRules extends ChessRules {
       pieces[c][bishop2Pos] = "b";
       pieces[c][rook2Pos] = "r";
     }
+
     return (
       pieces["b"].join("") + "/" +
-      pieces["b"].map(p => piece2pawn[p]).join() +
-      "/8/8/8/8/" +
-      pieces["w"].map(p => piece2pawn[p].toUpperCase()).join() + "/" +
+      pieces["b"].map(p => piece2pawn[p]).join("") +
+      "/6/6/" +
+      pieces["w"].map(p => piece2pawn[p].toUpperCase()).join("") + "/" +
       pieces["w"].join("").toUpperCase() +
       " w 0"
     );