{"ScriptPreparationCode":null,"TestCases":[{"Name":"the","Code":"const freq = (string) =\u003E [...string].reduce((acc, char) =\u003E {\r\n return {...acc, [char]: string.split(char).length - 1};\r\n}, {});\r\n\r\nfreq(\u0022rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1\u0022);","IsDeferred":false},{"Name":"a","Code":"const evalFen = (fen) =\u003E {\r\n return (\r\n (fen.split(\u0022R\u0022).length - 1) * 5 \u002B\r\n (fen.split(/[BN]/g).length - 1) * 3 \u002B\r\n (fen.split(\u0022Q\u0022).length - 1) * 9 \u002B\r\n fen.split(\u0022P\u0022).length -\r\n 1 -\r\n ((fen.split(\u0022r\u0022).length - 1) * 5 \u002B\r\n (fen.split(/[bn]/g).length - 1) * 3 \u002B\r\n (fen.split(\u0022q\u0022).length - 1) * 9 \u002B\r\n fen.split(\u0022p\u0022).length -\r\n 1)\r\n );\r\n};\r\n\r\nevalFen(\u0022rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1\u0022);","IsDeferred":false}]}