From 7194d19ff71e36df0e8ce35e333b8ee3d8d8f1ae Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 8 Feb 2021 22:00:06 +0100
Subject: [PATCH] Fix Alapo GenRandInitFen()

---
 client/src/variants/Alapo.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/client/src/variants/Alapo.js b/client/src/variants/Alapo.js
index b3c466e6..3037954e 100644
--- a/client/src/variants/Alapo.js
+++ b/client/src/variants/Alapo.js
@@ -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"
     );
-- 
2.44.0