X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGrand.js;h=e92896b8bf5aecae04bc058a680f124426cc2b63;hp=0809a65dc075d3adceae3b86595049637c0ee646;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/variants/Grand.js b/client/src/variants/Grand.js index 0809a65d..e92896b8 100644 --- a/client/src/variants/Grand.js +++ b/client/src/variants/Grand.js @@ -328,9 +328,11 @@ export class GrandRules extends ChessRules { static GenRandInitFen(randomness) { if (randomness == 0) { - // No castling in the official initial setup - return "r8r/1nbqkmcbn1/pppppppppp/91/91/91/91/PPPPPPPPPP/1NBQKMCBN1/R8R " + - "w 0 zzzz - 00000000000000"; + return ( + "r8r/1nbqkmcbn1/pppppppppp/91/91/91/91/PPPPPPPPPP/1NBQKMCBN1/R8R " + + // No castling in the official initial setup + "w 0 zzzz - 00000000000000" + ); } let pieces = { w: new Array(10), b: new Array(10) }; @@ -378,7 +380,8 @@ export class GrandRules extends ChessRules { let cardinalPos = positions[randIndex]; positions.splice(randIndex, 1); - // Rooks and king positions are now fixed, because of the ordering rook-king-rook + // Rooks and king positions are now fixed, + // because of the ordering rook-king-rook let rook1Pos = positions[0]; let kingPos = positions[1]; let rook2Pos = positions[2];