+ const fen = baseFen.replace("rnbqkbnr/pppppppp", "4k3/8");
+ const fenParts = fen.split(" ");
+ let others = JSON.parse(fenParts[3]);
+ others["flags"] = others["flags"].substr(0, 2) + "88";
+ return fenParts.slice(0, 3).join(" ") + " " + JSON.stringify(others);