X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FGrand.js;h=14c0cc968a7b9b53017764dde2806d8d9b80ae14;hp=b88410c9a6629cfc9666ba770c648d06c51e54b8;hb=e50a802531b99829c533f22ecd21e359e7e1e049;hpb=204b0bb5dc8b5f2760fcbf60cc23deb4552f4305 diff --git a/client/src/variants/Grand.js b/client/src/variants/Grand.js index b88410c9..14c0cc96 100644 --- a/client/src/variants/Grand.js +++ b/client/src/variants/Grand.js @@ -55,7 +55,8 @@ export class GrandRules extends ChessRules { setOtherVariables(fen) { super.setOtherVariables(fen); - const captured = V.ParseFen(fen).captured.split("").map(parseInt); + const captured = + V.ParseFen(fen).captured.split("").map(x => parseInt(x, 10)); // Initialize captured pieces' counts from FEN this.captured = { w: {