From: Benjamin Auder Date: Mon, 8 Feb 2021 21:00:06 +0000 (+0100) Subject: Fix Alapo GenRandInitFen() X-Git-Url: https://git.auder.net/js/img/doc/html/Rlogo.svg?a=commitdiff_plain;h=7194d19ff71e36df0e8ce35e333b8ee3d8d8f1ae;p=vchess.git Fix Alapo GenRandInitFen() --- 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" );