From 85288600815e2952c6cbd6799749e4c4eb8d2bb1 Mon Sep 17 00:00:00 2001 From: EllAchE <26192612+EllAchE@users.noreply.github.com> Date: Sat, 4 Nov 2023 01:46:04 -0700 Subject: [PATCH] clean up some old tests and validate existing metrics --- badhistory.json | 1923 ----------------------- historiesShort.json | 588 +++---- historiestst.json | 2616 -------------------------------- history.json | 199 --- src/metrics/captures.ts | 40 +- tests/enPassant.test.ts | 2 +- tests/historyGenerator.test.ts | 4 +- tests/metrics.test.ts | 28 +- tests/queensidecastle.test.ts | 2 +- tests/shortPgn.test.ts | 4 +- 10 files changed, 339 insertions(+), 5067 deletions(-) delete mode 100644 badhistory.json delete mode 100644 historiestst.json delete mode 100644 history.json diff --git a/badhistory.json b/badhistory.json deleted file mode 100644 index 987ad45..0000000 --- a/badhistory.json +++ /dev/null @@ -1,1923 +0,0 @@ -[ - [ - { - "color": "w", - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "originalString": "e6" - }, - { - "color": "w", - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "originalString": "d4" - }, - { - "color": "b", - "from": "b7", - "to": "b6", - "flags": "n", - "piece": "p", - "originalString": "b6" - }, - { - "color": "w", - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "originalString": "a3" - }, - { - "color": "b", - "from": "c8", - "to": "b7", - "flags": "n", - "piece": "b", - "originalString": "Bb7" - }, - { - "color": "w", - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "originalString": "Nc3" - }, - { - "color": "b", - "from": "g8", - "to": "h6", - "flags": "n", - "piece": "n", - "originalString": "Nh6" - }, - { - "color": "w", - "captured": "n", - "from": "c1", - "to": "h6", - "flags": "c", - "piece": "b", - "originalString": "Bxh6" - }, - { - "color": "b", - "captured": "b", - "from": "g7", - "to": "h6", - "flags": "c", - "piece": "p", - "originalString": "gxh6" - }, - { - "color": "w", - "from": "f1", - "to": "e2", - "flags": "n", - "piece": "b", - "originalString": "Be2" - }, - { - "color": "b", - "from": "d8", - "to": "g5", - "flags": "n", - "piece": "q", - "originalString": "Qg5" - }, - { - "color": "w", - "from": "e2", - "to": "g4", - "flags": "n", - "piece": "b", - "originalString": "Bg4" - }, - { - "color": "b", - "from": "h6", - "to": "h5", - "flags": "n", - "piece": "p", - "originalString": "h5" - }, - { - "color": "w", - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "originalString": "Nf3" - }, - { - "color": "b", - "from": "g5", - "to": "g6", - "flags": "n", - "piece": "q", - "originalString": "Qg6" - }, - { - "color": "w", - "from": "f3", - "to": "h4", - "flags": "n", - "piece": "n", - "originalString": "Nh4" - }, - { - "color": "b", - "from": "g6", - "to": "g5", - "flags": "n", - "piece": "q", - "originalString": "Qg5" - }, - { - "color": "w", - "captured": "p", - "from": "g4", - "to": "h5", - "flags": "c", - "piece": "b", - "originalString": "Bxh5" - }, - { - "color": "b", - "captured": "n", - "from": "g5", - "to": "h4", - "flags": "c", - "piece": "q", - "originalString": "Qxh4" - }, - { - "color": "w", - "from": "d1", - "to": "f3", - "flags": "n", - "piece": "q", - "originalString": "Qf3" - }, - { - "color": "b", - "from": "e8", - "to": "d8", - "flags": "n", - "piece": "k", - "originalString": "Kd8" - }, - { - "color": "w", - "captured": "p", - "from": "f3", - "to": "f7", - "flags": "c", - "piece": "q", - "originalString": "Qxf7" - }, - { - "color": "b", - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "originalString": "Nc6" - }, - { - "color": "w", - "from": "f7", - "to": "e8", - "flags": "n", - "piece": "q", - "originalString": "Qe8#" - } - ], - [ - { - "color": "w", - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "originalString": "d4" - }, - { - "color": "b", - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "originalString": "d5" - }, - { - "color": "w", - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "originalString": "Nf3" - }, - { - "color": "b", - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "originalString": "Nf6" - }, - { - "color": "w", - "from": "e2", - "to": "e3", - "flags": "n", - "piece": "p", - "originalString": "e3" - }, - { - "color": "b", - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "originalString": "Bf5" - }, - { - "color": "w", - "from": "f3", - "to": "h4", - "flags": "n", - "piece": "n", - "originalString": "Nh4" - }, - { - "color": "b", - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "b", - "originalString": "Bg6" - }, - { - "color": "w", - "captured": "b", - "from": "h4", - "to": "g6", - "flags": "c", - "piece": "n", - "originalString": "Nxg6" - }, - { - "color": "b", - "captured": "n", - "from": "h7", - "to": "g6", - "flags": "c", - "piece": "p", - "originalString": "hxg6" - }, - { - "color": "w", - "from": "b1", - "to": "d2", - "flags": "n", - "piece": "n", - "originalString": "Nd2" - }, - { - "color": "b", - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "originalString": "e6" - }, - { - "color": "w", - "from": "f1", - "to": "d3", - "flags": "n", - "piece": "b", - "originalString": "Bd3" - }, - { - "color": "b", - "from": "f8", - "to": "d6", - "flags": "n", - "piece": "b", - "originalString": "Bd6" - }, - { - "color": "w", - "from": "e3", - "to": "e4", - "flags": "n", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "captured": "p", - "from": "d5", - "to": "e4", - "flags": "c", - "piece": "p", - "originalString": "dxe4" - }, - { - "color": "w", - "captured": "p", - "from": "d2", - "to": "e4", - "flags": "c", - "piece": "n", - "originalString": "Nxe4" - }, - { - "color": "b", - "captured": "p", - "from": "h8", - "to": "h2", - "flags": "c", - "piece": "r", - "originalString": "Rxh2" - }, - { - "color": "w", - "from": "e1", - "to": "e2", - "flags": "n", - "piece": "k", - "originalString": "Ke2" - }, - { - "color": "b", - "captured": "r", - "from": "h2", - "to": "h1", - "flags": "c", - "piece": "r", - "originalString": "Rxh1" - }, - { - "color": "w", - "captured": "r", - "from": "d1", - "to": "h1", - "flags": "c", - "piece": "q", - "originalString": "Qxh1" - }, - { - "color": "b", - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "originalString": "Nc6" - }, - { - "color": "w", - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "originalString": "Bg5" - }, - { - "color": "b", - "from": "e8", - "to": "e7", - "flags": "n", - "piece": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "from": "h1", - "to": "h7", - "flags": "n", - "piece": "q", - "originalString": "Qh7" - }, - { - "color": "b", - "captured": "p", - "from": "c6", - "to": "d4", - "flags": "c", - "piece": "n", - "originalString": "Nxd4+" - }, - { - "color": "w", - "from": "e2", - "to": "d2", - "flags": "n", - "piece": "k", - "originalString": "Kd2" - }, - { - "color": "b", - "from": "d8", - "to": "e8", - "flags": "n", - "piece": "q", - "originalString": "Qe8" - }, - { - "color": "w", - "captured": "p", - "from": "h7", - "to": "g7", - "flags": "c", - "piece": "q", - "originalString": "Qxg7" - }, - { - "color": "b", - "from": "e8", - "to": "h8", - "flags": "n", - "piece": "q", - "originalString": "Qh8" - }, - { - "color": "w", - "captured": "n", - "from": "g5", - "to": "f6", - "flags": "c", - "piece": "b", - "originalString": "Bxf6+" - }, - { - "color": "b", - "from": "e7", - "to": "d7", - "flags": "n", - "piece": "k", - "originalString": "Kd7" - }, - { - "color": "w", - "captured": "q", - "from": "g7", - "to": "h8", - "flags": "c", - "piece": "q", - "originalString": "Qxh8" - }, - { - "color": "b", - "captured": "q", - "from": "a8", - "to": "h8", - "flags": "c", - "piece": "r", - "originalString": "Rxh8" - }, - { - "color": "w", - "captured": "r", - "from": "f6", - "to": "h8", - "flags": "c", - "piece": "b", - "originalString": "Bxh8" - } - ], - [ - { - "color": "w", - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "e7", - "to": "e5", - "flags": "b", - "piece": "p", - "originalString": "e5" - }, - { - "color": "w", - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "originalString": "Nf3" - }, - { - "color": "b", - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "originalString": "Nc6" - }, - { - "color": "w", - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "originalString": "Bc4" - }, - { - "color": "b", - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "originalString": "Nf6" - }, - { - "color": "w", - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "originalString": "Nc3" - }, - { - "color": "b", - "from": "f8", - "to": "c5", - "flags": "n", - "piece": "b", - "originalString": "Bc5" - }, - { - "color": "w", - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "originalString": "a3" - }, - { - "color": "b", - "captured": "p", - "from": "c5", - "to": "f2", - "flags": "c", - "piece": "b", - "originalString": "Bxf2+" - }, - { - "color": "w", - "captured": "b", - "from": "e1", - "to": "f2", - "flags": "c", - "piece": "k", - "originalString": "Kxf2" - }, - { - "color": "b", - "from": "c6", - "to": "d4", - "flags": "n", - "piece": "n", - "originalString": "Nd4" - }, - { - "color": "w", - "from": "d2", - "to": "d3", - "flags": "n", - "piece": "p", - "originalString": "d3" - }, - { - "color": "b", - "from": "f6", - "to": "g4", - "flags": "n", - "piece": "n", - "originalString": "Ng4+" - }, - { - "color": "w", - "from": "f2", - "to": "f1", - "flags": "n", - "piece": "k", - "originalString": "Kf1" - }, - { - "color": "b", - "from": "d8", - "to": "f6", - "flags": "n", - "piece": "q", - "originalString": "Qf6" - }, - { - "color": "w", - "from": "h2", - "to": "h3", - "flags": "n", - "piece": "p", - "originalString": "h3" - }, - { - "color": "b", - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "originalString": "d5" - }, - { - "color": "w", - "captured": "p", - "from": "c3", - "to": "d5", - "flags": "c", - "piece": "n", - "originalString": "Nxd5" - }, - { - "color": "b", - "from": "f6", - "to": "e6", - "flags": "n", - "piece": "q", - "originalString": "Qe6" - }, - { - "color": "w", - "captured": "p", - "from": "d5", - "to": "c7", - "flags": "c", - "piece": "n", - "originalString": "Nxc7+" - } - ], - [ - { - "color": "w", - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "c7", - "to": "c6", - "flags": "n", - "piece": "p", - "originalString": "c6" - }, - { - "color": "w", - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "originalString": "Nc3" - }, - { - "color": "b", - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "originalString": "d5" - }, - { - "color": "w", - "from": "d1", - "to": "f3", - "flags": "n", - "piece": "q", - "originalString": "Qf3" - }, - { - "color": "b", - "captured": "p", - "from": "d5", - "to": "e4", - "flags": "c", - "piece": "p", - "originalString": "dxe4" - }, - { - "color": "w", - "captured": "p", - "from": "c3", - "to": "e4", - "flags": "c", - "piece": "n", - "originalString": "Nxe4" - }, - { - "color": "b", - "from": "b8", - "to": "d7", - "flags": "n", - "piece": "n", - "originalString": "Nd7" - }, - { - "color": "w", - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "originalString": "Bc4" - }, - { - "color": "b", - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "originalString": "Ngf6" - }, - { - "color": "w", - "captured": "n", - "from": "e4", - "to": "f6", - "flags": "c", - "piece": "n", - "originalString": "Nxf6+" - }, - { - "color": "b", - "captured": "n", - "from": "d7", - "to": "f6", - "flags": "c", - "piece": "n", - "originalString": "Nxf6" - }, - { - "color": "w", - "from": "f3", - "to": "g3", - "flags": "n", - "piece": "q", - "originalString": "Qg3" - }, - { - "color": "b", - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "originalString": "Bf5" - }, - { - "color": "w", - "from": "d2", - "to": "d3", - "flags": "n", - "piece": "p", - "originalString": "d3" - }, - { - "color": "b", - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "b", - "originalString": "Bg6" - }, - { - "color": "w", - "from": "g1", - "to": "e2", - "flags": "n", - "piece": "n", - "originalString": "Ne2" - }, - { - "color": "b", - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "originalString": "e6" - }, - { - "color": "w", - "from": "c1", - "to": "f4", - "flags": "n", - "piece": "b", - "originalString": "Bf4" - }, - { - "color": "b", - "from": "f6", - "to": "h5", - "flags": "n", - "piece": "n", - "originalString": "Nh5" - }, - { - "color": "w", - "from": "g3", - "to": "f3", - "flags": "n", - "piece": "q", - "originalString": "Qf3" - }, - { - "color": "b", - "captured": "b", - "from": "h5", - "to": "f4", - "flags": "c", - "piece": "n", - "originalString": "Nxf4" - }, - { - "color": "w", - "captured": "n", - "from": "e2", - "to": "f4", - "flags": "c", - "piece": "n", - "originalString": "Nxf4" - }, - { - "color": "b", - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "b", - "originalString": "Be7" - }, - { - "color": "w", - "captured": "p", - "from": "c4", - "to": "e6", - "flags": "c", - "piece": "b", - "originalString": "Bxe6" - }, - { - "color": "b", - "captured": "b", - "from": "f7", - "to": "e6", - "flags": "c", - "piece": "p", - "originalString": "fxe6" - }, - { - "color": "w", - "captured": "p", - "from": "f4", - "to": "e6", - "flags": "c", - "piece": "n", - "originalString": "Nxe6" - }, - { - "color": "b", - "from": "d8", - "to": "a5", - "flags": "n", - "piece": "q", - "originalString": "Qa5+" - }, - { - "color": "w", - "from": "c2", - "to": "c3", - "flags": "n", - "piece": "p", - "originalString": "c3" - }, - { - "color": "b", - "from": "a5", - "to": "e5", - "flags": "n", - "piece": "q", - "originalString": "Qe5+" - }, - { - "color": "w", - "from": "f3", - "to": "e3", - "flags": "n", - "piece": "q", - "originalString": "Qe3" - }, - { - "color": "b", - "captured": "q", - "from": "e5", - "to": "e3", - "flags": "c", - "piece": "q", - "originalString": "Qxe3+" - }, - { - "color": "w", - "captured": "q", - "from": "f2", - "to": "e3", - "flags": "c", - "piece": "p", - "originalString": "fxe3" - }, - { - "color": "b", - "from": "e8", - "to": "d7", - "flags": "n", - "piece": "k", - "originalString": "Kd7" - }, - { - "color": "w", - "from": "e6", - "to": "f4", - "flags": "n", - "piece": "n", - "originalString": "Nf4" - }, - { - "color": "b", - "from": "e7", - "to": "d6", - "flags": "n", - "piece": "b", - "originalString": "Bd6" - }, - { - "color": "w", - "captured": "b", - "from": "f4", - "to": "g6", - "flags": "c", - "piece": "n", - "originalString": "Nxg6" - }, - { - "color": "b", - "captured": "n", - "from": "h7", - "to": "g6", - "flags": "c", - "piece": "p", - "originalString": "hxg6" - }, - { - "color": "w", - "from": "h2", - "to": "h3", - "flags": "n", - "piece": "p", - "originalString": "h3" - }, - { - "color": "b", - "from": "d6", - "to": "g3", - "flags": "n", - "piece": "b", - "originalString": "Bg3+" - }, - { - "color": "w", - "from": "e1", - "to": "d2", - "flags": "n", - "piece": "k", - "originalString": "Kd2" - }, - { - "color": "b", - "from": "a8", - "to": "f8", - "flags": "n", - "piece": "r", - "originalString": "Raf8" - }, - { - "color": "w", - "from": "h1", - "to": "f1", - "flags": "n", - "piece": "r", - "originalString": "Rhf1" - }, - { - "color": "b", - "from": "d7", - "to": "e7", - "flags": "n", - "piece": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "from": "d3", - "to": "d4", - "flags": "n", - "piece": "p", - "originalString": "d4" - }, - { - "color": "b", - "captured": "r", - "from": "f8", - "to": "f1", - "flags": "c", - "piece": "r", - "originalString": "Rxf1" - }, - { - "color": "w", - "captured": "r", - "from": "a1", - "to": "f1", - "flags": "c", - "piece": "r", - "originalString": "Rxf1" - }, - { - "color": "b", - "from": "h8", - "to": "f8", - "flags": "n", - "piece": "r", - "originalString": "Rf8" - }, - { - "color": "w", - "captured": "r", - "from": "f1", - "to": "f8", - "flags": "c", - "piece": "r", - "originalString": "Rxf8" - }, - { - "color": "b", - "captured": "r", - "from": "e7", - "to": "f8", - "flags": "c", - "piece": "k", - "originalString": "Kxf8" - }, - { - "color": "w", - "from": "e3", - "to": "e4", - "flags": "n", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "from": "d2", - "to": "e3", - "flags": "n", - "piece": "k", - "originalString": "Ke3" - }, - { - "color": "b", - "from": "g6", - "to": "g5", - "flags": "n", - "piece": "p", - "originalString": "g5" - }, - { - "color": "w", - "from": "e3", - "to": "f3", - "flags": "n", - "piece": "k", - "originalString": "Kf3" - }, - { - "color": "b", - "from": "g3", - "to": "e1", - "flags": "n", - "piece": "b", - "originalString": "Be1" - }, - { - "color": "w", - "from": "f3", - "to": "g4", - "flags": "n", - "piece": "k", - "originalString": "Kg4" - }, - { - "color": "b", - "from": "e1", - "to": "d2", - "flags": "n", - "piece": "b", - "originalString": "Bd2" - }, - { - "color": "w", - "from": "g4", - "to": "f5", - "flags": "n", - "piece": "k", - "originalString": "Kf5" - }, - { - "color": "b", - "from": "d2", - "to": "c1", - "flags": "n", - "piece": "b", - "originalString": "Bc1" - }, - { - "color": "w", - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "k", - "originalString": "Kg6" - }, - { - "color": "b", - "from": "e7", - "to": "f8", - "flags": "n", - "piece": "k", - "originalString": "Kf8" - }, - { - "color": "w", - "from": "e4", - "to": "e5", - "flags": "n", - "piece": "p", - "originalString": "e5" - }, - { - "color": "b", - "captured": "p", - "from": "c1", - "to": "b2", - "flags": "c", - "piece": "b", - "originalString": "Bxb2" - }, - { - "color": "w", - "captured": "p", - "from": "g6", - "to": "g5", - "flags": "c", - "piece": "k", - "originalString": "Kxg5" - }, - { - "color": "b", - "captured": "p", - "from": "b2", - "to": "c3", - "flags": "c", - "piece": "b", - "originalString": "Bxc3" - }, - { - "color": "w", - "from": "h3", - "to": "h4", - "flags": "n", - "piece": "p", - "originalString": "h4" - }, - { - "color": "b", - "captured": "p", - "from": "c3", - "to": "d4", - "flags": "c", - "piece": "b", - "originalString": "Bxd4" - }, - { - "color": "w", - "from": "h4", - "to": "h5", - "flags": "n", - "piece": "p", - "originalString": "h5" - }, - { - "color": "b", - "captured": "p", - "from": "d4", - "to": "e5", - "flags": "c", - "piece": "b", - "originalString": "Bxe5" - }, - { - "color": "w", - "from": "g2", - "to": "g4", - "flags": "b", - "piece": "p", - "originalString": "g4" - }, - { - "color": "b", - "from": "e5", - "to": "b2", - "flags": "n", - "piece": "b", - "originalString": "Bb2" - }, - { - "color": "w", - "from": "g5", - "to": "f5", - "flags": "n", - "piece": "k", - "originalString": "Kf5" - }, - { - "color": "b", - "from": "f8", - "to": "f7", - "flags": "n", - "piece": "k", - "originalString": "Kf7" - }, - { - "color": "w", - "from": "g4", - "to": "g5", - "flags": "n", - "piece": "p", - "originalString": "g5" - }, - { - "color": "b", - "from": "b2", - "to": "c1", - "flags": "n", - "piece": "b", - "originalString": "Bc1" - }, - { - "color": "w", - "from": "g5", - "to": "g6", - "flags": "n", - "piece": "p", - "originalString": "g6+" - }, - { - "color": "b", - "from": "f7", - "to": "e7", - "flags": "n", - "piece": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "from": "f5", - "to": "e5", - "flags": "n", - "piece": "k", - "originalString": "Ke5" - }, - { - "color": "b", - "from": "b7", - "to": "b5", - "flags": "b", - "piece": "p", - "originalString": "b5" - }, - { - "color": "w", - "from": "e5", - "to": "d4", - "flags": "n", - "piece": "k", - "originalString": "Kd4" - }, - { - "color": "b", - "from": "e7", - "to": "d6", - "flags": "n", - "piece": "k", - "originalString": "Kd6" - }, - { - "color": "w", - "from": "d4", - "to": "c3", - "flags": "n", - "piece": "k", - "originalString": "Kc3" - }, - { - "color": "b", - "from": "c6", - "to": "c5", - "flags": "n", - "piece": "p", - "originalString": "c5" - }, - { - "color": "w", - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "originalString": "a3" - }, - { - "color": "b", - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "originalString": "Bg5" - }, - { - "color": "w", - "from": "a3", - "to": "a4", - "flags": "n", - "piece": "p", - "originalString": "a4" - }, - { - "color": "b", - "captured": "p", - "from": "b5", - "to": "a4", - "flags": "c", - "piece": "p", - "originalString": "bxa4" - }, - { - "color": "w", - "from": "c3", - "to": "b2", - "flags": "n", - "piece": "k", - "originalString": "Kb2" - }, - { - "color": "b", - "from": "d6", - "to": "d5", - "flags": "n", - "piece": "k", - "originalString": "Kd5" - }, - { - "color": "w", - "from": "b2", - "to": "a3", - "flags": "n", - "piece": "k", - "originalString": "Ka3" - }, - { - "color": "b", - "from": "d5", - "to": "d4", - "flags": "n", - "piece": "k", - "originalString": "Kd4" - }, - { - "color": "w", - "captured": "p", - "from": "a3", - "to": "a4", - "flags": "c", - "piece": "k", - "originalString": "Kxa4" - }, - { - "color": "b", - "from": "c5", - "to": "c4", - "flags": "n", - "piece": "p", - "originalString": "c4" - } - ], - [ - { - "color": "w", - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "originalString": "e6" - }, - { - "color": "w", - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "originalString": "Bc4" - }, - { - "color": "b", - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "originalString": "d5" - }, - { - "color": "w", - "captured": "p", - "from": "e4", - "to": "d5", - "flags": "c", - "piece": "p", - "originalString": "exd5" - }, - { - "color": "b", - "captured": "p", - "from": "e6", - "to": "d5", - "flags": "c", - "piece": "p", - "originalString": "exd5" - }, - { - "color": "w", - "from": "c4", - "to": "b3", - "flags": "n", - "piece": "b", - "originalString": "Bb3" - }, - { - "color": "b", - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "originalString": "Nf6" - }, - { - "color": "w", - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "originalString": "d4" - }, - { - "color": "b", - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "b", - "originalString": "Be7" - }, - { - "color": "w", - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "originalString": "Nf3" - }, - { - "color": "b", - "from": "e8", - "to": "g8", - "flags": "k", - "piece": "k", - "originalString": "O-O" - }, - { - "color": "w", - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "originalString": "Bg5" - }, - { - "color": "b", - "from": "h7", - "to": "h6", - "flags": "n", - "piece": "p", - "originalString": "h6" - }, - { - "color": "w", - "captured": "n", - "from": "g5", - "to": "f6", - "flags": "c", - "piece": "b", - "originalString": "Bxf6" - }, - { - "color": "b", - "captured": "b", - "from": "e7", - "to": "f6", - "flags": "c", - "piece": "b", - "originalString": "Bxf6" - }, - { - "color": "w", - "from": "e1", - "to": "g1", - "flags": "k", - "piece": "k", - "originalString": "O-O" - }, - { - "color": "b", - "from": "c7", - "to": "c6", - "flags": "n", - "piece": "p", - "originalString": "c6" - }, - { - "color": "w", - "from": "f1", - "to": "e1", - "flags": "n", - "piece": "r", - "originalString": "Re1" - }, - { - "color": "b", - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "originalString": "Bf5" - }, - { - "color": "w", - "from": "c2", - "to": "c4", - "flags": "b", - "piece": "p", - "originalString": "c4?!" - }, - { - "color": "b", - "captured": "p", - "from": "d5", - "to": "c4", - "flags": "c", - "piece": "p", - "originalString": "dxc4" - }, - { - "color": "w", - "captured": "p", - "from": "b3", - "to": "c4", - "flags": "c", - "piece": "b", - "originalString": "Bxc4" - }, - { - "color": "b", - "from": "b8", - "to": "d7", - "flags": "n", - "piece": "n", - "originalString": "Nd7?!" - }, - { - "color": "w", - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "originalString": "Nc3" - }, - { - "color": "b", - "from": "d7", - "to": "b6", - "flags": "n", - "piece": "n", - "originalString": "Nb6" - }, - { - "color": "w", - "from": "b2", - "to": "b3", - "flags": "n", - "piece": "p", - "originalString": "b3?!" - }, - { - "color": "b", - "captured": "b", - "from": "b6", - "to": "c4", - "flags": "c", - "piece": "n", - "originalString": "Nxc4" - }, - { - "color": "w", - "captured": "n", - "from": "b3", - "to": "c4", - "flags": "c", - "piece": "p", - "originalString": "bxc4" - }, - { - "color": "b", - "from": "d8", - "to": "a5", - "flags": "n", - "piece": "q", - "originalString": "Qa5" - }, - { - "color": "w", - "from": "a1", - "to": "c1", - "flags": "n", - "piece": "r", - "originalString": "Rc1" - }, - { - "color": "b", - "from": "a8", - "to": "d8", - "flags": "n", - "piece": "r", - "originalString": "Rad8" - }, - { - "color": "w", - "from": "d4", - "to": "d5", - "flags": "n", - "piece": "p", - "originalString": "d5??" - }, - { - "color": "b", - "captured": "n", - "from": "f6", - "to": "c3", - "flags": "c", - "piece": "b", - "originalString": "Bxc3" - }, - { - "color": "w", - "from": "e1", - "to": "e5", - "flags": "n", - "piece": "r", - "originalString": "Re5?" - }, - { - "color": "b", - "captured": "r", - "from": "c3", - "to": "e5", - "flags": "c", - "piece": "b", - "originalString": "Bxe5" - }, - { - "color": "w", - "captured": "b", - "from": "f3", - "to": "e5", - "flags": "c", - "piece": "n", - "originalString": "Nxe5" - }, - { - "color": "b", - "captured": "p", - "from": "c6", - "to": "d5", - "flags": "c", - "piece": "p", - "originalString": "cxd5" - }, - { - "color": "w", - "from": "d1", - "to": "e1", - "flags": "n", - "piece": "q", - "originalString": "Qe1?" - }, - { - "color": "b", - "from": "f5", - "to": "e6", - "flags": "n", - "piece": "b", - "originalString": "Be6??" - }, - { - "color": "w", - "from": "c1", - "to": "d1", - "flags": "n", - "piece": "r", - "originalString": "Rd1??" - }, - { - "color": "b", - "captured": "p", - "from": "d5", - "to": "c4", - "flags": "c", - "piece": "p", - "originalString": "dxc4" - }, - { - "color": "w", - "captured": "r", - "from": "d1", - "to": "d8", - "flags": "c", - "piece": "r", - "originalString": "Rxd8?!" - }, - { - "color": "b", - "captured": "r", - "from": "f8", - "to": "d8", - "flags": "c", - "piece": "r", - "originalString": "Rxd8?!" - }, - { - "color": "w", - "from": "e1", - "to": "c3", - "flags": "n", - "piece": "q", - "originalString": "Qc3?!" - }, - { - "color": "b", - "captured": "q", - "from": "a5", - "to": "c3", - "flags": "c", - "piece": "q", - "originalString": "Qxc3?!" - }, - { - "color": "w", - "from": "g2", - "to": "g3", - "flags": "n", - "piece": "p", - "originalString": "g3" - }, - { - "color": "b", - "from": "d8", - "to": "d1", - "flags": "n", - "piece": "r", - "originalString": "Rd1+?!" - }, - { - "color": "w", - "from": "g1", - "to": "g2", - "flags": "n", - "piece": "k", - "originalString": "Kg2" - }, - { - "color": "b", - "from": "c3", - "to": "e1", - "flags": "n", - "piece": "q", - "originalString": "Qe1?!" - }, - { - "color": "w", - "from": "g2", - "to": "f3", - "flags": "n", - "piece": "k", - "originalString": "Kf3" - }, - { - "color": "b", - "captured": "n", - "from": "e1", - "to": "e5", - "flags": "c", - "piece": "q", - "originalString": "Qxe5" - }, - { - "color": "w", - "from": "f3", - "to": "g2", - "flags": "n", - "piece": "k", - "originalString": "Kg2" - }, - { - "color": "b", - "from": "e6", - "to": "d5", - "flags": "n", - "piece": "b", - "originalString": "Bd5+?!" - }, - { - "color": "w", - "from": "g2", - "to": "h3", - "flags": "n", - "piece": "k", - "originalString": "Kh3" - }, - { - "color": "b", - "from": "e5", - "to": "h5", - "flags": "n", - "piece": "q", - "originalString": "Qh5#" - } - ] -] \ No newline at end of file diff --git a/historiesShort.json b/historiesShort.json index 6b5a95c..aca27d3 100644 --- a/historiesShort.json +++ b/historiesShort.json @@ -8,7 +8,7 @@ "to": "e4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e4" }, { @@ -19,7 +19,7 @@ "to": "e6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "e6" }, { @@ -30,7 +30,7 @@ "to": "d4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d4" }, { @@ -41,7 +41,7 @@ "to": "b6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pb", + "uas": "pb", "originalString": "b6" }, { @@ -52,7 +52,7 @@ "to": "a3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PA", + "uas": "PA", "originalString": "a3" }, { @@ -63,7 +63,7 @@ "to": "b7", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bb7" }, { @@ -74,7 +74,7 @@ "to": "c3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nc3" }, { @@ -85,7 +85,7 @@ "to": "h6", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Nh6" }, { @@ -96,9 +96,9 @@ "to": "h6", "flags": "c", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bxh6", - "capture": { "type": "n", "unambiguousSymbol": "ng" } + "capture": { "type": "n", "uas": "ng" } }, { "color": "b", @@ -108,9 +108,9 @@ "to": "h6", "flags": "c", "piece": "p", - "unambiguousSymbol": "pg", + "uas": "pg", "originalString": "gxh6", - "capture": { "type": "b", "unambiguousSymbol": "pg" } + "capture": { "type": "b", "uas": "BC" } }, { "color": "w", @@ -120,7 +120,7 @@ "to": "e2", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Be2" }, { @@ -131,7 +131,7 @@ "to": "g5", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qg5" }, { @@ -142,7 +142,7 @@ "to": "g4", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bg4" }, { @@ -153,7 +153,7 @@ "to": "h5", "flags": "n", "piece": "p", - "unambiguousSymbol": "pg", + "uas": "pg", "originalString": "h5" }, { @@ -164,7 +164,7 @@ "to": "f3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nf3" }, { @@ -175,7 +175,7 @@ "to": "g6", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qg6" }, { @@ -186,7 +186,7 @@ "to": "h4", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nh4" }, { @@ -197,7 +197,7 @@ "to": "g5", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qg5" }, { @@ -208,9 +208,9 @@ "to": "h5", "flags": "c", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bxh5", - "capture": { "type": "p", "unambiguousSymbol": "pg" } + "capture": { "type": "p", "uas": "pg" } }, { "color": "b", @@ -220,9 +220,9 @@ "to": "h4", "flags": "c", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qxh4", - "capture": { "type": "n", "unambiguousSymbol": "NG" } + "capture": { "type": "n", "uas": "NG" } }, { "color": "w", @@ -232,7 +232,7 @@ "to": "f3", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qf3" }, { @@ -243,7 +243,7 @@ "to": "d8", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd8" }, { @@ -254,9 +254,9 @@ "to": "f7", "flags": "c", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qxf7", - "capture": { "type": "p", "unambiguousSymbol": "pf" } + "capture": { "type": "p", "uas": "pf" } }, { "color": "b", @@ -266,7 +266,7 @@ "to": "c6", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nc6" }, { @@ -277,7 +277,7 @@ "to": "e8", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qe8#" } ], @@ -290,7 +290,7 @@ "to": "d4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d4" }, { @@ -301,7 +301,7 @@ "to": "d5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "d5" }, { @@ -312,7 +312,7 @@ "to": "f3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nf3" }, { @@ -323,7 +323,7 @@ "to": "f6", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Nf6" }, { @@ -334,7 +334,7 @@ "to": "e3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e3" }, { @@ -345,7 +345,7 @@ "to": "f5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bf5" }, { @@ -356,7 +356,7 @@ "to": "h4", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nh4" }, { @@ -367,7 +367,7 @@ "to": "g6", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bg6" }, { @@ -378,9 +378,9 @@ "to": "g6", "flags": "c", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nxg6", - "capture": { "type": "b", "unambiguousSymbol": "bc" } + "capture": { "type": "b", "uas": "bc" } }, { "color": "b", @@ -390,9 +390,9 @@ "to": "g6", "flags": "c", "piece": "p", - "unambiguousSymbol": "ph", + "uas": "ph", "originalString": "hxg6", - "capture": { "type": "n", "unambiguousSymbol": "ph" } + "capture": { "type": "n", "uas": "ph" } }, { "color": "w", @@ -402,7 +402,7 @@ "to": "d2", "flags": "n", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nd2" }, { @@ -413,7 +413,7 @@ "to": "e6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "e6" }, { @@ -424,7 +424,7 @@ "to": "d3", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bd3" }, { @@ -435,7 +435,7 @@ "to": "d6", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bd6" }, { @@ -446,7 +446,7 @@ "to": "e4", "flags": "n", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e4" }, { @@ -457,9 +457,9 @@ "to": "e4", "flags": "c", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "dxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } + "capture": { "type": "p", "uas": "pd" } }, { "color": "w", @@ -469,9 +469,9 @@ "to": "e4", "flags": "c", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } + "capture": { "type": "p", "uas": "pd" } }, { "color": "b", @@ -481,9 +481,9 @@ "to": "h2", "flags": "c", "piece": "r", - "unambiguousSymbol": "rh", + "uas": "rh", "originalString": "Rxh2", - "capture": { "type": "p", "unambiguousSymbol": "PH" } + "capture": { "type": "p", "uas": "PH" } }, { "color": "w", @@ -493,7 +493,7 @@ "to": "e2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Ke2" }, { @@ -504,9 +504,9 @@ "to": "h1", "flags": "c", "piece": "r", - "unambiguousSymbol": "rh", + "uas": "rh", "originalString": "Rxh1", - "capture": { "type": "r", "unambiguousSymbol": "RH" } + "capture": { "type": "r", "uas": "RH" } }, { "color": "w", @@ -516,9 +516,9 @@ "to": "h1", "flags": "c", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qxh1", - "capture": { "type": "r", "unambiguousSymbol": "rh" } + "capture": { "type": "r", "uas": "rh" } }, { "color": "b", @@ -528,7 +528,7 @@ "to": "c6", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nc6" }, { @@ -539,7 +539,7 @@ "to": "g5", "flags": "n", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bg5" }, { @@ -550,7 +550,7 @@ "to": "e7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Ke7" }, { @@ -561,7 +561,7 @@ "to": "h7", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qh7" }, { @@ -572,9 +572,9 @@ "to": "d4", "flags": "c", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nxd4+", - "capture": { "type": "p", "unambiguousSymbol": "PD" } + "capture": { "type": "p", "uas": "PD" } }, { "color": "w", @@ -584,7 +584,7 @@ "to": "d2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kd2" }, { @@ -595,7 +595,7 @@ "to": "e8", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qe8" }, { @@ -606,9 +606,9 @@ "to": "g7", "flags": "c", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qxg7", - "capture": { "type": "p", "unambiguousSymbol": "pg" } + "capture": { "type": "p", "uas": "pg" } }, { "color": "b", @@ -618,7 +618,7 @@ "to": "h8", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qh8" }, { @@ -629,9 +629,9 @@ "to": "f6", "flags": "c", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bxf6+", - "capture": { "type": "n", "unambiguousSymbol": "ng" } + "capture": { "type": "n", "uas": "ng" } }, { "color": "b", @@ -641,7 +641,7 @@ "to": "d7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd7" }, { @@ -652,9 +652,9 @@ "to": "h8", "flags": "c", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qxh8", - "capture": { "type": "q", "unambiguousSymbol": "q" } + "capture": { "type": "q", "uas": "q" } }, { "color": "b", @@ -664,9 +664,9 @@ "to": "h8", "flags": "c", "piece": "r", - "unambiguousSymbol": "ra", + "uas": "ra", "originalString": "Rxh8", - "capture": { "type": "q", "unambiguousSymbol": "Q" } + "capture": { "type": "q", "uas": "Q" } }, { "color": "w", @@ -676,9 +676,9 @@ "to": "h8", "flags": "c", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bxh8", - "capture": { "type": "r", "unambiguousSymbol": "ra" } + "capture": { "type": "r", "uas": "ra" } } ], [ @@ -690,7 +690,7 @@ "to": "e4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e4" }, { @@ -701,7 +701,7 @@ "to": "e5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "e5" }, { @@ -712,7 +712,7 @@ "to": "f3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nf3" }, { @@ -723,7 +723,7 @@ "to": "c6", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nc6" }, { @@ -734,7 +734,7 @@ "to": "c4", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bc4" }, { @@ -745,7 +745,7 @@ "to": "f6", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Nf6" }, { @@ -756,7 +756,7 @@ "to": "c3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nc3" }, { @@ -767,7 +767,7 @@ "to": "c5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bc5" }, { @@ -778,7 +778,7 @@ "to": "a3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PA", + "uas": "PA", "originalString": "a3" }, { @@ -789,9 +789,9 @@ "to": "f2", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxf2+", - "capture": { "type": "p", "unambiguousSymbol": "PF" } + "capture": { "type": "p", "uas": "PF" } }, { "color": "w", @@ -801,9 +801,9 @@ "to": "f2", "flags": "c", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kxf2", - "capture": { "type": "b", "unambiguousSymbol": "bf" } + "capture": { "type": "b", "uas": "bf" } }, { "color": "b", @@ -813,7 +813,7 @@ "to": "d4", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nd4" }, { @@ -824,7 +824,7 @@ "to": "d3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d3" }, { @@ -835,7 +835,7 @@ "to": "g4", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Ng4+" }, { @@ -846,7 +846,7 @@ "to": "f1", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kf1" }, { @@ -857,7 +857,7 @@ "to": "f6", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qf6" }, { @@ -868,7 +868,7 @@ "to": "h3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PH", + "uas": "PH", "originalString": "h3" }, { @@ -879,7 +879,7 @@ "to": "d5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "d5" }, { @@ -890,9 +890,9 @@ "to": "d5", "flags": "c", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nxd5", - "capture": { "type": "p", "unambiguousSymbol": "pd" } + "capture": { "type": "p", "uas": "pd" } }, { "color": "b", @@ -902,7 +902,7 @@ "to": "e6", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qe6" }, { @@ -913,9 +913,9 @@ "to": "c7", "flags": "c", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nxc7+", - "capture": { "type": "p", "unambiguousSymbol": "pc" } + "capture": { "type": "p", "uas": "pc" } } ], [ @@ -927,7 +927,7 @@ "to": "e4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e4" }, { @@ -938,7 +938,7 @@ "to": "c6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "c6" }, { @@ -949,7 +949,7 @@ "to": "c3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nc3" }, { @@ -960,7 +960,7 @@ "to": "d5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "d5" }, { @@ -971,7 +971,7 @@ "to": "f3", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qf3" }, { @@ -982,9 +982,9 @@ "to": "e4", "flags": "c", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "dxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } + "capture": { "type": "p", "uas": "pd" } }, { "color": "w", @@ -994,9 +994,9 @@ "to": "e4", "flags": "c", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } + "capture": { "type": "p", "uas": "pd" } }, { "color": "b", @@ -1006,7 +1006,7 @@ "to": "d7", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nd7" }, { @@ -1017,7 +1017,7 @@ "to": "c4", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bc4" }, { @@ -1028,7 +1028,7 @@ "to": "f6", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Ngf6" }, { @@ -1039,9 +1039,9 @@ "to": "f6", "flags": "c", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nxf6+", - "capture": { "type": "n", "unambiguousSymbol": "ng" } + "capture": { "type": "n", "uas": "ng" } }, { "color": "b", @@ -1051,9 +1051,9 @@ "to": "f6", "flags": "c", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nxf6", - "capture": { "type": "n", "unambiguousSymbol": "pg" } + "capture": { "type": "n", "uas": "pg" } }, { "color": "w", @@ -1063,7 +1063,7 @@ "to": "g3", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qg3" }, { @@ -1074,7 +1074,7 @@ "to": "f5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bf5" }, { @@ -1085,7 +1085,7 @@ "to": "d3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d3" }, { @@ -1096,7 +1096,7 @@ "to": "g6", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bg6" }, { @@ -1107,7 +1107,7 @@ "to": "e2", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Ne2" }, { @@ -1118,7 +1118,7 @@ "to": "e6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "e6" }, { @@ -1129,7 +1129,7 @@ "to": "f4", "flags": "n", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bf4" }, { @@ -1140,7 +1140,7 @@ "to": "h5", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nh5" }, { @@ -1151,7 +1151,7 @@ "to": "f3", "flags": "n", "piece": "q", - "unambiguousSymbol": "pb", + "uas": "pb", "originalString": "Qf3" }, { @@ -1162,9 +1162,9 @@ "to": "f4", "flags": "c", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nxf4", - "capture": { "type": "b", "unambiguousSymbol": "BC" } + "capture": { "type": "b", "uas": "BC" } }, { "color": "w", @@ -1174,9 +1174,9 @@ "to": "f4", "flags": "c", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nxf4", - "capture": { "type": "n", "unambiguousSymbol": "nb" } + "capture": { "type": "n", "uas": "nb" } }, { "color": "b", @@ -1186,7 +1186,7 @@ "to": "e7", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Be7" }, { @@ -1197,9 +1197,9 @@ "to": "e6", "flags": "c", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bxe6", - "capture": { "type": "p", "unambiguousSymbol": "pe" } + "capture": { "type": "p", "uas": "pe" } }, { "color": "b", @@ -1209,9 +1209,9 @@ "to": "e6", "flags": "c", "piece": "p", - "unambiguousSymbol": "pf", + "uas": "pf", "originalString": "fxe6", - "capture": { "type": "b", "unambiguousSymbol": "pf" } + "capture": { "type": "b", "uas": "pf" } }, { "color": "w", @@ -1221,9 +1221,9 @@ "to": "e6", "flags": "c", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nxe6", - "capture": { "type": "p", "unambiguousSymbol": "pf" } + "capture": { "type": "p", "uas": "pf" } }, { "color": "b", @@ -1233,7 +1233,7 @@ "to": "a5", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qa5+" }, { @@ -1244,7 +1244,7 @@ "to": "c3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PC", + "uas": "PC", "originalString": "c3" }, { @@ -1255,7 +1255,7 @@ "to": "e5", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qe5+" }, { @@ -1266,7 +1266,7 @@ "to": "e3", "flags": "n", "piece": "q", - "unambiguousSymbol": "pb", + "uas": "pb", "originalString": "Qe3" }, { @@ -1277,9 +1277,9 @@ "to": "e3", "flags": "c", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qxe3+", - "capture": { "type": "q", "unambiguousSymbol": "pb" } + "capture": { "type": "q", "uas": "pb" } }, { "color": "w", @@ -1289,9 +1289,9 @@ "to": "e3", "flags": "c", "piece": "p", - "unambiguousSymbol": "PF", + "uas": "PF", "originalString": "fxe3", - "capture": { "type": "q", "unambiguousSymbol": "PF" } + "capture": { "type": "q", "uas": "PF" } }, { "color": "b", @@ -1301,7 +1301,7 @@ "to": "d7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd7" }, { @@ -1312,7 +1312,7 @@ "to": "f4", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nf4" }, { @@ -1323,7 +1323,7 @@ "to": "d6", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bd6" }, { @@ -1334,9 +1334,9 @@ "to": "g6", "flags": "c", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nxg6", - "capture": { "type": "b", "unambiguousSymbol": "bc" } + "capture": { "type": "b", "uas": "bc" } }, { "color": "b", @@ -1346,9 +1346,9 @@ "to": "g6", "flags": "c", "piece": "p", - "unambiguousSymbol": "ph", + "uas": "ph", "originalString": "hxg6", - "capture": { "type": "n", "unambiguousSymbol": "ph" } + "capture": { "type": "n", "uas": "ph" } }, { "color": "w", @@ -1358,7 +1358,7 @@ "to": "h3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PH", + "uas": "PH", "originalString": "h3" }, { @@ -1369,7 +1369,7 @@ "to": "g3", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bg3+" }, { @@ -1380,7 +1380,7 @@ "to": "d2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kd2" }, { @@ -1391,7 +1391,7 @@ "to": "f8", "flags": "n", "piece": "r", - "unambiguousSymbol": "ra", + "uas": "ra", "originalString": "Raf8" }, { @@ -1402,7 +1402,7 @@ "to": "f1", "flags": "n", "piece": "r", - "unambiguousSymbol": "RH", + "uas": "RH", "originalString": "Rhf1" }, { @@ -1413,7 +1413,7 @@ "to": "e7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Ke7" }, { @@ -1424,7 +1424,7 @@ "to": "d4", "flags": "n", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d4" }, { @@ -1435,9 +1435,9 @@ "to": "f1", "flags": "c", "piece": "r", - "unambiguousSymbol": "ra", + "uas": "ra", "originalString": "Rxf1", - "capture": { "type": "r", "unambiguousSymbol": "RH" } + "capture": { "type": "r", "uas": "RH" } }, { "color": "w", @@ -1447,9 +1447,9 @@ "to": "f1", "flags": "c", "piece": "r", - "unambiguousSymbol": "RA", + "uas": "RA", "originalString": "Rxf1", - "capture": { "type": "r", "unambiguousSymbol": "ra" } + "capture": { "type": "r", "uas": "ra" } }, { "color": "b", @@ -1459,7 +1459,7 @@ "to": "f8", "flags": "n", "piece": "r", - "unambiguousSymbol": "rh", + "uas": "rh", "originalString": "Rf8" }, { @@ -1470,9 +1470,9 @@ "to": "f8", "flags": "c", "piece": "r", - "unambiguousSymbol": "RA", + "uas": "RA", "originalString": "Rxf8", - "capture": { "type": "r", "unambiguousSymbol": "rh" } + "capture": { "type": "r", "uas": "rh" } }, { "color": "b", @@ -1482,9 +1482,9 @@ "to": "f8", "flags": "c", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kxf8", - "capture": { "type": "r", "unambiguousSymbol": "RA" } + "capture": { "type": "r", "uas": "RA" } }, { "color": "w", @@ -1494,7 +1494,7 @@ "to": "e4", "flags": "n", "piece": "p", - "unambiguousSymbol": "PF", + "uas": "PF", "originalString": "e4" }, { @@ -1505,7 +1505,7 @@ "to": "e7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Ke7" }, { @@ -1516,7 +1516,7 @@ "to": "e3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Ke3" }, { @@ -1527,7 +1527,7 @@ "to": "g5", "flags": "n", "piece": "p", - "unambiguousSymbol": "ph", + "uas": "ph", "originalString": "g5" }, { @@ -1538,7 +1538,7 @@ "to": "f3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kf3" }, { @@ -1549,7 +1549,7 @@ "to": "e1", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Be1" }, { @@ -1560,7 +1560,7 @@ "to": "g4", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kg4" }, { @@ -1571,7 +1571,7 @@ "to": "d2", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bd2" }, { @@ -1582,7 +1582,7 @@ "to": "f5", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kf5" }, { @@ -1593,7 +1593,7 @@ "to": "c1", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bc1" }, { @@ -1604,7 +1604,7 @@ "to": "g6", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kg6" }, { @@ -1615,7 +1615,7 @@ "to": "f8", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kf8" }, { @@ -1626,7 +1626,7 @@ "to": "e5", "flags": "n", "piece": "p", - "unambiguousSymbol": "PF", + "uas": "PF", "originalString": "e5" }, { @@ -1637,9 +1637,9 @@ "to": "b2", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxb2", - "capture": { "type": "p", "unambiguousSymbol": "PB" } + "capture": { "type": "p", "uas": "PB" } }, { "color": "w", @@ -1649,9 +1649,9 @@ "to": "g5", "flags": "c", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kxg5", - "capture": { "type": "p", "unambiguousSymbol": "ph" } + "capture": { "type": "p", "uas": "ph" } }, { "color": "b", @@ -1661,9 +1661,9 @@ "to": "c3", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxc3", - "capture": { "type": "p", "unambiguousSymbol": "PC" } + "capture": { "type": "p", "uas": "PC" } }, { "color": "w", @@ -1673,7 +1673,7 @@ "to": "h4", "flags": "n", "piece": "p", - "unambiguousSymbol": "PH", + "uas": "PH", "originalString": "h4" }, { @@ -1684,9 +1684,9 @@ "to": "d4", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxd4", - "capture": { "type": "p", "unambiguousSymbol": "PD" } + "capture": { "type": "p", "uas": "PD" } }, { "color": "w", @@ -1696,7 +1696,7 @@ "to": "h5", "flags": "n", "piece": "p", - "unambiguousSymbol": "PH", + "uas": "PH", "originalString": "h5" }, { @@ -1707,9 +1707,9 @@ "to": "e5", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxe5", - "capture": { "type": "p", "unambiguousSymbol": "PF" } + "capture": { "type": "p", "uas": "PF" } }, { "color": "w", @@ -1719,7 +1719,7 @@ "to": "g4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PG", + "uas": "PG", "originalString": "g4" }, { @@ -1730,7 +1730,7 @@ "to": "b2", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bb2" }, { @@ -1741,7 +1741,7 @@ "to": "f5", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kf5" }, { @@ -1752,7 +1752,7 @@ "to": "f7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kf7" }, { @@ -1763,7 +1763,7 @@ "to": "g5", "flags": "n", "piece": "p", - "unambiguousSymbol": "PG", + "uas": "PG", "originalString": "g5" }, { @@ -1774,7 +1774,7 @@ "to": "c1", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bc1" }, { @@ -1785,7 +1785,7 @@ "to": "g6", "flags": "n", "piece": "p", - "unambiguousSymbol": "PG", + "uas": "PG", "originalString": "g6+" }, { @@ -1796,7 +1796,7 @@ "to": "e7", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Ke7" }, { @@ -1807,7 +1807,7 @@ "to": "e5", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Ke5" }, { @@ -1818,7 +1818,7 @@ "to": "b5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pb", + "uas": "pb", "originalString": "b5" }, { @@ -1829,7 +1829,7 @@ "to": "d4", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kd4" }, { @@ -1840,7 +1840,7 @@ "to": "d6", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd6" }, { @@ -1851,7 +1851,7 @@ "to": "c3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kc3" }, { @@ -1862,7 +1862,7 @@ "to": "c5", "flags": "n", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "c5" }, { @@ -1873,7 +1873,7 @@ "to": "a3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PA", + "uas": "PA", "originalString": "a3" }, { @@ -1884,7 +1884,7 @@ "to": "g5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bg5" }, { @@ -1895,7 +1895,7 @@ "to": "a4", "flags": "n", "piece": "p", - "unambiguousSymbol": "PA", + "uas": "PA", "originalString": "a4" }, { @@ -1906,9 +1906,9 @@ "to": "a4", "flags": "c", "piece": "p", - "unambiguousSymbol": "pb", + "uas": "pb", "originalString": "bxa4", - "capture": { "type": "p", "unambiguousSymbol": "pb" } + "capture": { "type": "p", "uas": "pb" } }, { "color": "w", @@ -1918,7 +1918,7 @@ "to": "b2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kb2" }, { @@ -1929,7 +1929,7 @@ "to": "d5", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd5" }, { @@ -1940,7 +1940,7 @@ "to": "a3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Ka3" }, { @@ -1951,7 +1951,7 @@ "to": "d4", "flags": "n", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "Kd4" }, { @@ -1962,9 +1962,9 @@ "to": "a4", "flags": "c", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kxa4", - "capture": { "type": "p", "unambiguousSymbol": "pb" } + "capture": { "type": "p", "uas": "pb" } }, { "color": "b", @@ -1974,7 +1974,7 @@ "to": "c4", "flags": "n", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "c4" } ], @@ -1987,7 +1987,7 @@ "to": "e4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "e4" }, { @@ -1998,7 +1998,7 @@ "to": "e6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "e6" }, { @@ -2009,7 +2009,7 @@ "to": "c4", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bc4" }, { @@ -2020,7 +2020,7 @@ "to": "d5", "flags": "b", "piece": "p", - "unambiguousSymbol": "pd", + "uas": "pd", "originalString": "d5" }, { @@ -2031,9 +2031,9 @@ "to": "d5", "flags": "c", "piece": "p", - "unambiguousSymbol": "PE", + "uas": "PE", "originalString": "exd5", - "capture": { "type": "p", "unambiguousSymbol": "PE" } + "capture": { "type": "p", "uas": "PE" } }, { "color": "b", @@ -2043,9 +2043,9 @@ "to": "d5", "flags": "c", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "exd5", - "capture": { "type": "p", "unambiguousSymbol": "pe" } + "capture": { "type": "p", "uas": "pe" } }, { "color": "w", @@ -2055,7 +2055,7 @@ "to": "b3", "flags": "n", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bb3" }, { @@ -2066,7 +2066,7 @@ "to": "f6", "flags": "n", "piece": "n", - "unambiguousSymbol": "ng", + "uas": "ng", "originalString": "Nf6" }, { @@ -2077,7 +2077,7 @@ "to": "d4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d4" }, { @@ -2088,7 +2088,7 @@ "to": "e7", "flags": "n", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Be7" }, { @@ -2099,7 +2099,7 @@ "to": "f3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nf3" }, { @@ -2110,7 +2110,7 @@ "to": "g8", "flags": "k", "piece": "k", - "unambiguousSymbol": "k", + "uas": "k", "originalString": "O-O" }, { @@ -2121,7 +2121,7 @@ "to": "g5", "flags": "n", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bg5" }, { @@ -2132,7 +2132,7 @@ "to": "h6", "flags": "n", "piece": "p", - "unambiguousSymbol": "ph", + "uas": "ph", "originalString": "h6" }, { @@ -2143,9 +2143,9 @@ "to": "f6", "flags": "c", "piece": "b", - "unambiguousSymbol": "BC", + "uas": "BC", "originalString": "Bxf6", - "capture": { "type": "n", "unambiguousSymbol": "ng" } + "capture": { "type": "n", "uas": "ng" } }, { "color": "b", @@ -2155,9 +2155,9 @@ "to": "f6", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxf6", - "capture": { "type": "b", "unambiguousSymbol": "BC" } + "capture": { "type": "b", "uas": "BC" } }, { "color": "w", @@ -2167,7 +2167,7 @@ "to": "g1", "flags": "k", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "O-O" }, { @@ -2178,7 +2178,7 @@ "to": "c6", "flags": "n", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "c6" }, { @@ -2189,7 +2189,7 @@ "to": "e1", "flags": "n", "piece": "r", - "unambiguousSymbol": "RH", + "uas": "RH", "originalString": "Re1" }, { @@ -2200,7 +2200,7 @@ "to": "f5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bf5" }, { @@ -2211,7 +2211,7 @@ "to": "c4", "flags": "b", "piece": "p", - "unambiguousSymbol": "PC", + "uas": "PC", "originalString": "c4?!" }, { @@ -2222,9 +2222,9 @@ "to": "c4", "flags": "c", "piece": "p", - "unambiguousSymbol": "pe", + "uas": "pe", "originalString": "dxc4", - "capture": { "type": "p", "unambiguousSymbol": "pe" } + "capture": { "type": "p", "uas": "pe" } }, { "color": "w", @@ -2234,9 +2234,9 @@ "to": "c4", "flags": "c", "piece": "b", - "unambiguousSymbol": "BF", + "uas": "BF", "originalString": "Bxc4", - "capture": { "type": "p", "unambiguousSymbol": "pe" } + "capture": { "type": "p", "uas": "pe" } }, { "color": "b", @@ -2246,7 +2246,7 @@ "to": "d7", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nd7?!" }, { @@ -2257,7 +2257,7 @@ "to": "c3", "flags": "n", "piece": "n", - "unambiguousSymbol": "NB", + "uas": "NB", "originalString": "Nc3" }, { @@ -2268,7 +2268,7 @@ "to": "b6", "flags": "n", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nb6" }, { @@ -2279,7 +2279,7 @@ "to": "b3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PB", + "uas": "PB", "originalString": "b3?!" }, { @@ -2290,9 +2290,9 @@ "to": "c4", "flags": "c", "piece": "n", - "unambiguousSymbol": "nb", + "uas": "nb", "originalString": "Nxc4", - "capture": { "type": "b", "unambiguousSymbol": "BF" } + "capture": { "type": "b", "uas": "BF" } }, { "color": "w", @@ -2302,9 +2302,9 @@ "to": "c4", "flags": "c", "piece": "p", - "unambiguousSymbol": "PB", + "uas": "PB", "originalString": "bxc4", - "capture": { "type": "n", "unambiguousSymbol": "PB" } + "capture": { "type": "n", "uas": "PB" } }, { "color": "b", @@ -2314,7 +2314,7 @@ "to": "a5", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qa5" }, { @@ -2325,7 +2325,7 @@ "to": "c1", "flags": "n", "piece": "r", - "unambiguousSymbol": "RA", + "uas": "RA", "originalString": "Rc1" }, { @@ -2336,7 +2336,7 @@ "to": "d8", "flags": "n", "piece": "r", - "unambiguousSymbol": "ra", + "uas": "ra", "originalString": "Rad8" }, { @@ -2347,7 +2347,7 @@ "to": "d5", "flags": "n", "piece": "p", - "unambiguousSymbol": "PD", + "uas": "PD", "originalString": "d5??" }, { @@ -2358,9 +2358,9 @@ "to": "c3", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxc3", - "capture": { "type": "n", "unambiguousSymbol": "NB" } + "capture": { "type": "n", "uas": "NB" } }, { "color": "w", @@ -2370,7 +2370,7 @@ "to": "e5", "flags": "n", "piece": "r", - "unambiguousSymbol": "RH", + "uas": "RH", "originalString": "Re5?" }, { @@ -2381,9 +2381,9 @@ "to": "e5", "flags": "c", "piece": "b", - "unambiguousSymbol": "bf", + "uas": "bf", "originalString": "Bxe5", - "capture": { "type": "r", "unambiguousSymbol": "RH" } + "capture": { "type": "r", "uas": "RH" } }, { "color": "w", @@ -2393,9 +2393,9 @@ "to": "e5", "flags": "c", "piece": "n", - "unambiguousSymbol": "NG", + "uas": "NG", "originalString": "Nxe5", - "capture": { "type": "b", "unambiguousSymbol": "bf" } + "capture": { "type": "b", "uas": "bf" } }, { "color": "b", @@ -2405,9 +2405,9 @@ "to": "d5", "flags": "c", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "cxd5", - "capture": { "type": "p", "unambiguousSymbol": "pc" } + "capture": { "type": "p", "uas": "pc" } }, { "color": "w", @@ -2417,7 +2417,7 @@ "to": "e1", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qe1?" }, { @@ -2428,7 +2428,7 @@ "to": "e6", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Be6??" }, { @@ -2439,7 +2439,7 @@ "to": "d1", "flags": "n", "piece": "r", - "unambiguousSymbol": "RA", + "uas": "RA", "originalString": "Rd1??" }, { @@ -2450,9 +2450,9 @@ "to": "c4", "flags": "c", "piece": "p", - "unambiguousSymbol": "pc", + "uas": "pc", "originalString": "dxc4", - "capture": { "type": "p", "unambiguousSymbol": "pc" } + "capture": { "type": "p", "uas": "pc" } }, { "color": "w", @@ -2462,9 +2462,9 @@ "to": "d8", "flags": "c", "piece": "r", - "unambiguousSymbol": "RA", + "uas": "RA", "originalString": "Rxd8?!", - "capture": { "type": "r", "unambiguousSymbol": "ra" } + "capture": { "type": "r", "uas": "ra" } }, { "color": "b", @@ -2474,9 +2474,9 @@ "to": "d8", "flags": "c", "piece": "r", - "unambiguousSymbol": "rh", + "uas": "rh", "originalString": "Rxd8?!", - "capture": { "type": "r", "unambiguousSymbol": "RA" } + "capture": { "type": "r", "uas": "RA" } }, { "color": "w", @@ -2486,7 +2486,7 @@ "to": "c3", "flags": "n", "piece": "q", - "unambiguousSymbol": "Q", + "uas": "Q", "originalString": "Qc3?!" }, { @@ -2497,9 +2497,9 @@ "to": "c3", "flags": "c", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qxc3?!", - "capture": { "type": "q", "unambiguousSymbol": "Q" } + "capture": { "type": "q", "uas": "Q" } }, { "color": "w", @@ -2509,7 +2509,7 @@ "to": "g3", "flags": "n", "piece": "p", - "unambiguousSymbol": "PG", + "uas": "PG", "originalString": "g3" }, { @@ -2520,7 +2520,7 @@ "to": "d1", "flags": "n", "piece": "r", - "unambiguousSymbol": "rh", + "uas": "rh", "originalString": "Rd1+?!" }, { @@ -2531,7 +2531,7 @@ "to": "g2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kg2" }, { @@ -2542,7 +2542,7 @@ "to": "e1", "flags": "n", "piece": "q", - "unambiguousSymbol": "q", + "uas": "q", "originalString": "Qe1?!" }, { @@ -2553,7 +2553,7 @@ "to": "f3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kf3" }, { @@ -2564,9 +2564,9 @@ "to": "e5", "flags": "c", "piece": "q", - "unambiguousSymbol": "PH", + "uas": "PH", "originalString": "Qxe5", - "capture": { "type": "n", "unambiguousSymbol": "NG" } + "capture": { "type": "n", "uas": "NG" } }, { "color": "w", @@ -2576,7 +2576,7 @@ "to": "g2", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kg2" }, { @@ -2587,7 +2587,7 @@ "to": "d5", "flags": "n", "piece": "b", - "unambiguousSymbol": "bc", + "uas": "bc", "originalString": "Bd5+?!" }, { @@ -2598,7 +2598,7 @@ "to": "h3", "flags": "n", "piece": "k", - "unambiguousSymbol": "K", + "uas": "K", "originalString": "Kh3" }, { @@ -2609,7 +2609,7 @@ "to": "h5", "flags": "n", "piece": "q", - "unambiguousSymbol": "PF", + "uas": "PF", "originalString": "Qh5#" } ] diff --git a/historiestst.json b/historiestst.json deleted file mode 100644 index 8cc3ace..0000000 --- a/historiestst.json +++ /dev/null @@ -1,2616 +0,0 @@ -[ - [ - { - "color": "w", - "fromIndex": 100, - "toIndex": 68, - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 36, - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "e6" - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 67, - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d4" - }, - { - "color": "b", - "fromIndex": 17, - "toIndex": 33, - "from": "b7", - "to": "b6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pb", - "originalString": "b6" - }, - { - "color": "w", - "fromIndex": 96, - "toIndex": 80, - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PA", - "originalString": "a3" - }, - { - "color": "b", - "fromIndex": 2, - "toIndex": 17, - "from": "c8", - "to": "b7", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bb7" - }, - { - "color": "w", - "fromIndex": 113, - "toIndex": 82, - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nc3" - }, - { - "color": "b", - "fromIndex": 6, - "toIndex": 39, - "from": "g8", - "to": "h6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Nh6" - }, - { - "color": "w", - "fromIndex": 114, - "toIndex": 39, - "from": "c1", - "to": "h6", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bxh6", - "capture": { "type": "n", "unambiguousSymbol": "ng" } - }, - { - "color": "b", - "fromIndex": 22, - "toIndex": 39, - "from": "g7", - "to": "h6", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pg", - "originalString": "gxh6", - "capture": { "type": "b", "unambiguousSymbol": "BC" } - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 100, - "from": "f1", - "to": "e2", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Be2" - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 54, - "from": "d8", - "to": "g5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qg5" - }, - { - "color": "w", - "fromIndex": 100, - "toIndex": 70, - "from": "e2", - "to": "g4", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bg4" - }, - { - "color": "b", - "fromIndex": 39, - "toIndex": 55, - "from": "h6", - "to": "h5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pg", - "originalString": "h5" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 85, - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nf3" - }, - { - "color": "b", - "fromIndex": 54, - "toIndex": 38, - "from": "g5", - "to": "g6", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qg6" - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 71, - "from": "f3", - "to": "h4", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nh4" - }, - { - "color": "b", - "fromIndex": 38, - "toIndex": 54, - "from": "g6", - "to": "g5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qg5" - }, - { - "color": "w", - "fromIndex": 70, - "toIndex": 55, - "from": "g4", - "to": "h5", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bxh5", - "capture": { "type": "p", "unambiguousSymbol": "pg" } - }, - { - "color": "b", - "fromIndex": 54, - "toIndex": 71, - "from": "g5", - "to": "h4", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qxh4", - "capture": { "type": "n", "unambiguousSymbol": "NG" } - }, - { - "color": "w", - "fromIndex": 115, - "toIndex": 85, - "from": "d1", - "to": "f3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qf3" - }, - { - "color": "b", - "fromIndex": 4, - "toIndex": 3, - "from": "e8", - "to": "d8", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd8" - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 21, - "from": "f3", - "to": "f7", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qxf7", - "capture": { "type": "p", "unambiguousSymbol": "pf" } - }, - { - "color": "b", - "fromIndex": 1, - "toIndex": 34, - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nc6" - }, - { - "color": "w", - "fromIndex": 21, - "toIndex": 4, - "from": "f7", - "to": "e8", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qe8#" - } - ], - [ - { - "color": "w", - "fromIndex": 99, - "toIndex": 67, - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d4" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 51, - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "d5" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 85, - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nf3" - }, - { - "color": "b", - "fromIndex": 6, - "toIndex": 37, - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Nf6" - }, - { - "color": "w", - "fromIndex": 100, - "toIndex": 84, - "from": "e2", - "to": "e3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e3" - }, - { - "color": "b", - "fromIndex": 2, - "toIndex": 53, - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bf5" - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 71, - "from": "f3", - "to": "h4", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nh4" - }, - { - "color": "b", - "fromIndex": 53, - "toIndex": 38, - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bg6" - }, - { - "color": "w", - "fromIndex": 71, - "toIndex": 38, - "from": "h4", - "to": "g6", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nxg6", - "capture": { "type": "b", "unambiguousSymbol": "bc" } - }, - { - "color": "b", - "fromIndex": 23, - "toIndex": 38, - "from": "h7", - "to": "g6", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "ph", - "originalString": "hxg6", - "capture": { "type": "n", "unambiguousSymbol": "NG" } - }, - { - "color": "w", - "fromIndex": 113, - "toIndex": 99, - "from": "b1", - "to": "d2", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nd2" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 36, - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "e6" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 83, - "from": "f1", - "to": "d3", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bd3" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 35, - "from": "f8", - "to": "d6", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bd6" - }, - { - "color": "w", - "fromIndex": 84, - "toIndex": 68, - "from": "e3", - "to": "e4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 51, - "toIndex": 68, - "from": "d5", - "to": "e4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "dxe4", - "capture": { "type": "p", "unambiguousSymbol": "PE" } - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 68, - "from": "d2", - "to": "e4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } - }, - { - "color": "b", - "fromIndex": 7, - "toIndex": 103, - "from": "h8", - "to": "h2", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "rh", - "originalString": "Rxh2", - "capture": { "type": "p", "unambiguousSymbol": "PH" } - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 100, - "from": "e1", - "to": "e2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Ke2" - }, - { - "color": "b", - "fromIndex": 103, - "toIndex": 119, - "from": "h2", - "to": "h1", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "rh", - "originalString": "Rxh1", - "capture": { "type": "r", "unambiguousSymbol": "RH" } - }, - { - "color": "w", - "fromIndex": 115, - "toIndex": 119, - "from": "d1", - "to": "h1", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qxh1", - "capture": { "type": "r", "unambiguousSymbol": "rh" } - }, - { - "color": "b", - "fromIndex": 1, - "toIndex": 34, - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nc6" - }, - { - "color": "w", - "fromIndex": 114, - "toIndex": 54, - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bg5" - }, - { - "color": "b", - "fromIndex": 4, - "toIndex": 20, - "from": "e8", - "to": "e7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "fromIndex": 119, - "toIndex": 23, - "from": "h1", - "to": "h7", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qh7" - }, - { - "color": "b", - "fromIndex": 34, - "toIndex": 67, - "from": "c6", - "to": "d4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nxd4+", - "capture": { "type": "p", "unambiguousSymbol": "PD" } - }, - { - "color": "w", - "fromIndex": 100, - "toIndex": 99, - "from": "e2", - "to": "d2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kd2" - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 4, - "from": "d8", - "to": "e8", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qe8" - }, - { - "color": "w", - "fromIndex": 23, - "toIndex": 22, - "from": "h7", - "to": "g7", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qxg7", - "capture": { "type": "p", "unambiguousSymbol": "pg" } - }, - { - "color": "b", - "fromIndex": 4, - "toIndex": 7, - "from": "e8", - "to": "h8", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qh8" - }, - { - "color": "w", - "fromIndex": 54, - "toIndex": 37, - "from": "g5", - "to": "f6", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bxf6+", - "capture": { "type": "n", "unambiguousSymbol": "ng" } - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 19, - "from": "e7", - "to": "d7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd7" - }, - { - "color": "w", - "fromIndex": 22, - "toIndex": 7, - "from": "g7", - "to": "h8", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qxh8", - "capture": { "type": "q", "unambiguousSymbol": "q" } - }, - { - "color": "b", - "fromIndex": 0, - "toIndex": 7, - "from": "a8", - "to": "h8", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "ra", - "originalString": "Rxh8", - "capture": { "type": "q", "unambiguousSymbol": "Q" } - }, - { - "color": "w", - "fromIndex": 37, - "toIndex": 7, - "from": "f6", - "to": "h8", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bxh8", - "capture": { "type": "r", "unambiguousSymbol": "ra" } - } - ], - [ - { - "color": "w", - "fromIndex": 100, - "toIndex": 68, - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 52, - "from": "e7", - "to": "e5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "e5" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 85, - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nf3" - }, - { - "color": "b", - "fromIndex": 1, - "toIndex": 34, - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nc6" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 66, - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bc4" - }, - { - "color": "b", - "fromIndex": 6, - "toIndex": 37, - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Nf6" - }, - { - "color": "w", - "fromIndex": 113, - "toIndex": 82, - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nc3" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 50, - "from": "f8", - "to": "c5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bc5" - }, - { - "color": "w", - "fromIndex": 96, - "toIndex": 80, - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PA", - "originalString": "a3" - }, - { - "color": "b", - "fromIndex": 50, - "toIndex": 101, - "from": "c5", - "to": "f2", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxf2+", - "capture": { "type": "p", "unambiguousSymbol": "PF" } - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 101, - "from": "e1", - "to": "f2", - "flags": "c", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kxf2", - "capture": { "type": "b", "unambiguousSymbol": "bf" } - }, - { - "color": "b", - "fromIndex": 34, - "toIndex": 67, - "from": "c6", - "to": "d4", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nd4" - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 83, - "from": "d2", - "to": "d3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d3" - }, - { - "color": "b", - "fromIndex": 37, - "toIndex": 70, - "from": "f6", - "to": "g4", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Ng4+" - }, - { - "color": "w", - "fromIndex": 101, - "toIndex": 117, - "from": "f2", - "to": "f1", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kf1" - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 37, - "from": "d8", - "to": "f6", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qf6" - }, - { - "color": "w", - "fromIndex": 103, - "toIndex": 87, - "from": "h2", - "to": "h3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PH", - "originalString": "h3" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 51, - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "d5" - }, - { - "color": "w", - "fromIndex": 82, - "toIndex": 51, - "from": "c3", - "to": "d5", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nxd5", - "capture": { "type": "p", "unambiguousSymbol": "pd" } - }, - { - "color": "b", - "fromIndex": 37, - "toIndex": 36, - "from": "f6", - "to": "e6", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qe6" - }, - { - "color": "w", - "fromIndex": 51, - "toIndex": 18, - "from": "d5", - "to": "c7", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nxc7+", - "capture": { "type": "p", "unambiguousSymbol": "pc" } - } - ], - [ - { - "color": "w", - "fromIndex": 100, - "toIndex": 68, - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 18, - "toIndex": 34, - "from": "c7", - "to": "c6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "c6" - }, - { - "color": "w", - "fromIndex": 113, - "toIndex": 82, - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nc3" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 51, - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "d5" - }, - { - "color": "w", - "fromIndex": 115, - "toIndex": 85, - "from": "d1", - "to": "f3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qf3" - }, - { - "color": "b", - "fromIndex": 51, - "toIndex": 68, - "from": "d5", - "to": "e4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "dxe4", - "capture": { "type": "p", "unambiguousSymbol": "PE" } - }, - { - "color": "w", - "fromIndex": 82, - "toIndex": 68, - "from": "c3", - "to": "e4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nxe4", - "capture": { "type": "p", "unambiguousSymbol": "pd" } - }, - { - "color": "b", - "fromIndex": 1, - "toIndex": 19, - "from": "b8", - "to": "d7", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nd7" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 66, - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bc4" - }, - { - "color": "b", - "fromIndex": 6, - "toIndex": 37, - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Ngf6" - }, - { - "color": "w", - "fromIndex": 68, - "toIndex": 37, - "from": "e4", - "to": "f6", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nxf6+", - "capture": { "type": "n", "unambiguousSymbol": "ng" } - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 37, - "from": "d7", - "to": "f6", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nxf6", - "capture": { "type": "n", "unambiguousSymbol": "NB" } - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 86, - "from": "f3", - "to": "g3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qg3" - }, - { - "color": "b", - "fromIndex": 2, - "toIndex": 53, - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bf5" - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 83, - "from": "d2", - "to": "d3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d3" - }, - { - "color": "b", - "fromIndex": 53, - "toIndex": 38, - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bg6" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 100, - "from": "g1", - "to": "e2", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Ne2" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 36, - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "e6" - }, - { - "color": "w", - "fromIndex": 114, - "toIndex": 69, - "from": "c1", - "to": "f4", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bf4" - }, - { - "color": "b", - "fromIndex": 37, - "toIndex": 55, - "from": "f6", - "to": "h5", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nh5" - }, - { - "color": "w", - "fromIndex": 86, - "toIndex": 85, - "from": "g3", - "to": "f3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qf3" - }, - { - "color": "b", - "fromIndex": 55, - "toIndex": 69, - "from": "h5", - "to": "f4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nxf4", - "capture": { "type": "b", "unambiguousSymbol": "BC" } - }, - { - "color": "w", - "fromIndex": 100, - "toIndex": 69, - "from": "e2", - "to": "f4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nxf4", - "capture": { "type": "n", "unambiguousSymbol": "nb" } - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 20, - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Be7" - }, - { - "color": "w", - "fromIndex": 66, - "toIndex": 36, - "from": "c4", - "to": "e6", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bxe6", - "capture": { "type": "p", "unambiguousSymbol": "pe" } - }, - { - "color": "b", - "fromIndex": 21, - "toIndex": 36, - "from": "f7", - "to": "e6", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pf", - "originalString": "fxe6", - "capture": { "type": "b", "unambiguousSymbol": "BF" } - }, - { - "color": "w", - "fromIndex": 69, - "toIndex": 36, - "from": "f4", - "to": "e6", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nxe6", - "capture": { "type": "p", "unambiguousSymbol": "pf" } - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 48, - "from": "d8", - "to": "a5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qa5+" - }, - { - "color": "w", - "fromIndex": 98, - "toIndex": 82, - "from": "c2", - "to": "c3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PC", - "originalString": "c3" - }, - { - "color": "b", - "fromIndex": 48, - "toIndex": 52, - "from": "a5", - "to": "e5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qe5+" - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 84, - "from": "f3", - "to": "e3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qe3" - }, - { - "color": "b", - "fromIndex": 52, - "toIndex": 84, - "from": "e5", - "to": "e3", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qxe3+", - "capture": { "type": "q", "unambiguousSymbol": "Q" } - }, - { - "color": "w", - "fromIndex": 101, - "toIndex": 84, - "from": "f2", - "to": "e3", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "PF", - "originalString": "fxe3", - "capture": { "type": "q", "unambiguousSymbol": "q" } - }, - { - "color": "b", - "fromIndex": 4, - "toIndex": 19, - "from": "e8", - "to": "d7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd7" - }, - { - "color": "w", - "fromIndex": 36, - "toIndex": 69, - "from": "e6", - "to": "f4", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nf4" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 35, - "from": "e7", - "to": "d6", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bd6" - }, - { - "color": "w", - "fromIndex": 69, - "toIndex": 38, - "from": "f4", - "to": "g6", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nxg6", - "capture": { "type": "b", "unambiguousSymbol": "bc" } - }, - { - "color": "b", - "fromIndex": 23, - "toIndex": 38, - "from": "h7", - "to": "g6", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "ph", - "originalString": "hxg6", - "capture": { "type": "n", "unambiguousSymbol": "NG" } - }, - { - "color": "w", - "fromIndex": 103, - "toIndex": 87, - "from": "h2", - "to": "h3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PH", - "originalString": "h3" - }, - { - "color": "b", - "fromIndex": 35, - "toIndex": 86, - "from": "d6", - "to": "g3", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bg3+" - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 99, - "from": "e1", - "to": "d2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kd2" - }, - { - "color": "b", - "fromIndex": 0, - "toIndex": 5, - "from": "a8", - "to": "f8", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "ra", - "originalString": "Raf8" - }, - { - "color": "w", - "fromIndex": 119, - "toIndex": 117, - "from": "h1", - "to": "f1", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "RH", - "originalString": "Rhf1" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 20, - "from": "d7", - "to": "e7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "fromIndex": 83, - "toIndex": 67, - "from": "d3", - "to": "d4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d4" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 117, - "from": "f8", - "to": "f1", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "ra", - "originalString": "Rxf1", - "capture": { "type": "r", "unambiguousSymbol": "RH" } - }, - { - "color": "w", - "fromIndex": 112, - "toIndex": 117, - "from": "a1", - "to": "f1", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "RA", - "originalString": "Rxf1", - "capture": { "type": "r", "unambiguousSymbol": "ra" } - }, - { - "color": "b", - "fromIndex": 7, - "toIndex": 5, - "from": "h8", - "to": "f8", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "rh", - "originalString": "Rf8" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 5, - "from": "f1", - "to": "f8", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "RA", - "originalString": "Rxf8", - "capture": { "type": "r", "unambiguousSymbol": "rh" } - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 5, - "from": "e7", - "to": "f8", - "flags": "c", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kxf8", - "capture": { "type": "r", "unambiguousSymbol": "RA" } - }, - { - "color": "w", - "fromIndex": 84, - "toIndex": 68, - "from": "e3", - "to": "e4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PF", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 20, - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 84, - "from": "d2", - "to": "e3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Ke3" - }, - { - "color": "b", - "fromIndex": 38, - "toIndex": 54, - "from": "g6", - "to": "g5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "ph", - "originalString": "g5" - }, - { - "color": "w", - "fromIndex": 84, - "toIndex": 85, - "from": "e3", - "to": "f3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kf3" - }, - { - "color": "b", - "fromIndex": 86, - "toIndex": 116, - "from": "g3", - "to": "e1", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Be1" - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 70, - "from": "f3", - "to": "g4", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kg4" - }, - { - "color": "b", - "fromIndex": 116, - "toIndex": 99, - "from": "e1", - "to": "d2", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bd2" - }, - { - "color": "w", - "fromIndex": 70, - "toIndex": 53, - "from": "g4", - "to": "f5", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kf5" - }, - { - "color": "b", - "fromIndex": 99, - "toIndex": 114, - "from": "d2", - "to": "c1", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bc1" - }, - { - "color": "w", - "fromIndex": 53, - "toIndex": 38, - "from": "f5", - "to": "g6", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kg6" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 5, - "from": "e7", - "to": "f8", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kf8" - }, - { - "color": "w", - "fromIndex": 68, - "toIndex": 52, - "from": "e4", - "to": "e5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PF", - "originalString": "e5" - }, - { - "color": "b", - "fromIndex": 114, - "toIndex": 97, - "from": "c1", - "to": "b2", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxb2", - "capture": { "type": "p", "unambiguousSymbol": "PB" } - }, - { - "color": "w", - "fromIndex": 38, - "toIndex": 54, - "from": "g6", - "to": "g5", - "flags": "c", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kxg5", - "capture": { "type": "p", "unambiguousSymbol": "ph" } - }, - { - "color": "b", - "fromIndex": 97, - "toIndex": 82, - "from": "b2", - "to": "c3", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxc3", - "capture": { "type": "p", "unambiguousSymbol": "PC" } - }, - { - "color": "w", - "fromIndex": 87, - "toIndex": 71, - "from": "h3", - "to": "h4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PH", - "originalString": "h4" - }, - { - "color": "b", - "fromIndex": 82, - "toIndex": 67, - "from": "c3", - "to": "d4", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxd4", - "capture": { "type": "p", "unambiguousSymbol": "PD" } - }, - { - "color": "w", - "fromIndex": 71, - "toIndex": 55, - "from": "h4", - "to": "h5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PH", - "originalString": "h5" - }, - { - "color": "b", - "fromIndex": 67, - "toIndex": 52, - "from": "d4", - "to": "e5", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxe5", - "capture": { "type": "p", "unambiguousSymbol": "PF" } - }, - { - "color": "w", - "fromIndex": 102, - "toIndex": 70, - "from": "g2", - "to": "g4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PG", - "originalString": "g4" - }, - { - "color": "b", - "fromIndex": 52, - "toIndex": 97, - "from": "e5", - "to": "b2", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bb2" - }, - { - "color": "w", - "fromIndex": 54, - "toIndex": 53, - "from": "g5", - "to": "f5", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kf5" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 21, - "from": "f8", - "to": "f7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kf7" - }, - { - "color": "w", - "fromIndex": 70, - "toIndex": 54, - "from": "g4", - "to": "g5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PG", - "originalString": "g5" - }, - { - "color": "b", - "fromIndex": 97, - "toIndex": 114, - "from": "b2", - "to": "c1", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bc1" - }, - { - "color": "w", - "fromIndex": 54, - "toIndex": 38, - "from": "g5", - "to": "g6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PG", - "originalString": "g6+" - }, - { - "color": "b", - "fromIndex": 21, - "toIndex": 20, - "from": "f7", - "to": "e7", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Ke7" - }, - { - "color": "w", - "fromIndex": 53, - "toIndex": 52, - "from": "f5", - "to": "e5", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Ke5" - }, - { - "color": "b", - "fromIndex": 17, - "toIndex": 49, - "from": "b7", - "to": "b5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pb", - "originalString": "b5" - }, - { - "color": "w", - "fromIndex": 52, - "toIndex": 67, - "from": "e5", - "to": "d4", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kd4" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 35, - "from": "e7", - "to": "d6", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd6" - }, - { - "color": "w", - "fromIndex": 67, - "toIndex": 82, - "from": "d4", - "to": "c3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kc3" - }, - { - "color": "b", - "fromIndex": 34, - "toIndex": 50, - "from": "c6", - "to": "c5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "c5" - }, - { - "color": "w", - "fromIndex": 96, - "toIndex": 80, - "from": "a2", - "to": "a3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PA", - "originalString": "a3" - }, - { - "color": "b", - "fromIndex": 114, - "toIndex": 54, - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bg5" - }, - { - "color": "w", - "fromIndex": 80, - "toIndex": 64, - "from": "a3", - "to": "a4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PA", - "originalString": "a4" - }, - { - "color": "b", - "fromIndex": 49, - "toIndex": 64, - "from": "b5", - "to": "a4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pb", - "originalString": "bxa4", - "capture": { "type": "p", "unambiguousSymbol": "PA" } - }, - { - "color": "w", - "fromIndex": 82, - "toIndex": 97, - "from": "c3", - "to": "b2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kb2" - }, - { - "color": "b", - "fromIndex": 35, - "toIndex": 51, - "from": "d6", - "to": "d5", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd5" - }, - { - "color": "w", - "fromIndex": 97, - "toIndex": 80, - "from": "b2", - "to": "a3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Ka3" - }, - { - "color": "b", - "fromIndex": 51, - "toIndex": 67, - "from": "d5", - "to": "d4", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "Kd4" - }, - { - "color": "w", - "fromIndex": 80, - "toIndex": 64, - "from": "a3", - "to": "a4", - "flags": "c", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kxa4", - "capture": { "type": "p", "unambiguousSymbol": "pb" } - }, - { - "color": "b", - "fromIndex": 50, - "toIndex": 66, - "from": "c5", - "to": "c4", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "c4" - } - ], - [ - { - "color": "w", - "fromIndex": 100, - "toIndex": 68, - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "e4" - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 36, - "from": "e7", - "to": "e6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "e6" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 66, - "from": "f1", - "to": "c4", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bc4" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 51, - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "pd", - "originalString": "d5" - }, - { - "color": "w", - "fromIndex": 68, - "toIndex": 51, - "from": "e4", - "to": "d5", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "PE", - "originalString": "exd5", - "capture": { "type": "p", "unambiguousSymbol": "pd" } - }, - { - "color": "b", - "fromIndex": 36, - "toIndex": 51, - "from": "e6", - "to": "d5", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "exd5", - "capture": { "type": "p", "unambiguousSymbol": "PE" } - }, - { - "color": "w", - "fromIndex": 66, - "toIndex": 81, - "from": "c4", - "to": "b3", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bb3" - }, - { - "color": "b", - "fromIndex": 6, - "toIndex": 37, - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "ng", - "originalString": "Nf6" - }, - { - "color": "w", - "fromIndex": 99, - "toIndex": 67, - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d4" - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 20, - "from": "f8", - "to": "e7", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Be7" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 85, - "from": "g1", - "to": "f3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nf3" - }, - { - "color": "b", - "fromIndex": 4, - "toIndex": 6, - "from": "e8", - "to": "g8", - "flags": "k", - "piece": "k", - "unambiguousSymbol": "k", - "originalString": "O-O" - }, - { - "color": "w", - "fromIndex": 114, - "toIndex": 54, - "from": "c1", - "to": "g5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bg5" - }, - { - "color": "b", - "fromIndex": 23, - "toIndex": 39, - "from": "h7", - "to": "h6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "ph", - "originalString": "h6" - }, - { - "color": "w", - "fromIndex": 54, - "toIndex": 37, - "from": "g5", - "to": "f6", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BC", - "originalString": "Bxf6", - "capture": { "type": "n", "unambiguousSymbol": "ng" } - }, - { - "color": "b", - "fromIndex": 20, - "toIndex": 37, - "from": "e7", - "to": "f6", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxf6", - "capture": { "type": "b", "unambiguousSymbol": "BC" } - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 118, - "from": "e1", - "to": "g1", - "flags": "k", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "O-O" - }, - { - "color": "b", - "fromIndex": 18, - "toIndex": 34, - "from": "c7", - "to": "c6", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "c6" - }, - { - "color": "w", - "fromIndex": 117, - "toIndex": 116, - "from": "f1", - "to": "e1", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "RH", - "originalString": "Re1" - }, - { - "color": "b", - "fromIndex": 2, - "toIndex": 53, - "from": "c8", - "to": "f5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bf5" - }, - { - "color": "w", - "fromIndex": 98, - "toIndex": 66, - "from": "c2", - "to": "c4", - "flags": "b", - "piece": "p", - "unambiguousSymbol": "PC", - "originalString": "c4?!" - }, - { - "color": "b", - "fromIndex": 51, - "toIndex": 66, - "from": "d5", - "to": "c4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pe", - "originalString": "dxc4", - "capture": { "type": "p", "unambiguousSymbol": "PC" } - }, - { - "color": "w", - "fromIndex": 81, - "toIndex": 66, - "from": "b3", - "to": "c4", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "BF", - "originalString": "Bxc4", - "capture": { "type": "p", "unambiguousSymbol": "pe" } - }, - { - "color": "b", - "fromIndex": 1, - "toIndex": 19, - "from": "b8", - "to": "d7", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nd7?!" - }, - { - "color": "w", - "fromIndex": 113, - "toIndex": 82, - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "NB", - "originalString": "Nc3" - }, - { - "color": "b", - "fromIndex": 19, - "toIndex": 33, - "from": "d7", - "to": "b6", - "flags": "n", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nb6" - }, - { - "color": "w", - "fromIndex": 97, - "toIndex": 81, - "from": "b2", - "to": "b3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PB", - "originalString": "b3?!" - }, - { - "color": "b", - "fromIndex": 33, - "toIndex": 66, - "from": "b6", - "to": "c4", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "nb", - "originalString": "Nxc4", - "capture": { "type": "b", "unambiguousSymbol": "BF" } - }, - { - "color": "w", - "fromIndex": 81, - "toIndex": 66, - "from": "b3", - "to": "c4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "PB", - "originalString": "bxc4", - "capture": { "type": "n", "unambiguousSymbol": "nb" } - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 48, - "from": "d8", - "to": "a5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qa5" - }, - { - "color": "w", - "fromIndex": 112, - "toIndex": 114, - "from": "a1", - "to": "c1", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "RA", - "originalString": "Rc1" - }, - { - "color": "b", - "fromIndex": 0, - "toIndex": 3, - "from": "a8", - "to": "d8", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "ra", - "originalString": "Rad8" - }, - { - "color": "w", - "fromIndex": 67, - "toIndex": 51, - "from": "d4", - "to": "d5", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PD", - "originalString": "d5??" - }, - { - "color": "b", - "fromIndex": 37, - "toIndex": 82, - "from": "f6", - "to": "c3", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxc3", - "capture": { "type": "n", "unambiguousSymbol": "NB" } - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 52, - "from": "e1", - "to": "e5", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "RH", - "originalString": "Re5?" - }, - { - "color": "b", - "fromIndex": 82, - "toIndex": 52, - "from": "c3", - "to": "e5", - "flags": "c", - "piece": "b", - "unambiguousSymbol": "bf", - "originalString": "Bxe5", - "capture": { "type": "r", "unambiguousSymbol": "RH" } - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 52, - "from": "f3", - "to": "e5", - "flags": "c", - "piece": "n", - "unambiguousSymbol": "NG", - "originalString": "Nxe5", - "capture": { "type": "b", "unambiguousSymbol": "bf" } - }, - { - "color": "b", - "fromIndex": 34, - "toIndex": 51, - "from": "c6", - "to": "d5", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "cxd5", - "capture": { "type": "p", "unambiguousSymbol": "PD" } - }, - { - "color": "w", - "fromIndex": 115, - "toIndex": 116, - "from": "d1", - "to": "e1", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qe1?" - }, - { - "color": "b", - "fromIndex": 53, - "toIndex": 36, - "from": "f5", - "to": "e6", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Be6??" - }, - { - "color": "w", - "fromIndex": 114, - "toIndex": 115, - "from": "c1", - "to": "d1", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "RA", - "originalString": "Rd1??" - }, - { - "color": "b", - "fromIndex": 51, - "toIndex": 66, - "from": "d5", - "to": "c4", - "flags": "c", - "piece": "p", - "unambiguousSymbol": "pc", - "originalString": "dxc4", - "capture": { "type": "p", "unambiguousSymbol": "PB" } - }, - { - "color": "w", - "fromIndex": 115, - "toIndex": 3, - "from": "d1", - "to": "d8", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "RA", - "originalString": "Rxd8?!", - "capture": { "type": "r", "unambiguousSymbol": "ra" } - }, - { - "color": "b", - "fromIndex": 5, - "toIndex": 3, - "from": "f8", - "to": "d8", - "flags": "c", - "piece": "r", - "unambiguousSymbol": "rh", - "originalString": "Rxd8?!", - "capture": { "type": "r", "unambiguousSymbol": "RA" } - }, - { - "color": "w", - "fromIndex": 116, - "toIndex": 82, - "from": "e1", - "to": "c3", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "Q", - "originalString": "Qc3?!" - }, - { - "color": "b", - "fromIndex": 48, - "toIndex": 82, - "from": "a5", - "to": "c3", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qxc3?!", - "capture": { "type": "q", "unambiguousSymbol": "Q" } - }, - { - "color": "w", - "fromIndex": 102, - "toIndex": 86, - "from": "g2", - "to": "g3", - "flags": "n", - "piece": "p", - "unambiguousSymbol": "PG", - "originalString": "g3" - }, - { - "color": "b", - "fromIndex": 3, - "toIndex": 115, - "from": "d8", - "to": "d1", - "flags": "n", - "piece": "r", - "unambiguousSymbol": "rh", - "originalString": "Rd1+?!" - }, - { - "color": "w", - "fromIndex": 118, - "toIndex": 102, - "from": "g1", - "to": "g2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kg2" - }, - { - "color": "b", - "fromIndex": 82, - "toIndex": 116, - "from": "c3", - "to": "e1", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qe1?!" - }, - { - "color": "w", - "fromIndex": 102, - "toIndex": 85, - "from": "g2", - "to": "f3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kf3" - }, - { - "color": "b", - "fromIndex": 116, - "toIndex": 52, - "from": "e1", - "to": "e5", - "flags": "c", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qxe5", - "capture": { "type": "n", "unambiguousSymbol": "NG" } - }, - { - "color": "w", - "fromIndex": 85, - "toIndex": 102, - "from": "f3", - "to": "g2", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kg2" - }, - { - "color": "b", - "fromIndex": 36, - "toIndex": 51, - "from": "e6", - "to": "d5", - "flags": "n", - "piece": "b", - "unambiguousSymbol": "bc", - "originalString": "Bd5+?!" - }, - { - "color": "w", - "fromIndex": 102, - "toIndex": 87, - "from": "g2", - "to": "h3", - "flags": "n", - "piece": "k", - "unambiguousSymbol": "K", - "originalString": "Kh3" - }, - { - "color": "b", - "fromIndex": 52, - "toIndex": 55, - "from": "e5", - "to": "h5", - "flags": "n", - "piece": "q", - "unambiguousSymbol": "q", - "originalString": "Qh5#" - } - ] -] diff --git a/history.json b/history.json deleted file mode 100644 index a17b702..0000000 --- a/history.json +++ /dev/null @@ -1,199 +0,0 @@ -[ - { - "color": "w", - "from": "e2", - "to": "e4", - "flags": "b", - "piece": "p", - "originalString": "e4" - }, - { - "color": "b", - "from": "e7", - "to": "e5", - "flags": "b", - "piece": "p", - "originalString": "e5" - }, - { - "color": "w", - "from": "d2", - "to": "d4", - "flags": "b", - "piece": "p", - "originalString": "d4" - }, - { - "color": "b", - "captured": "p", - "from": "e5", - "to": "d4", - "flags": "c", - "piece": "p", - "originalString": "exd4" - }, - { - "color": "w", - "captured": "p", - "from": "d1", - "to": "d4", - "flags": "c", - "piece": "q", - "originalString": "Qxd4" - }, - { - "color": "b", - "from": "b8", - "to": "c6", - "flags": "n", - "piece": "n", - "originalString": "Nc6" - }, - { - "color": "w", - "from": "d4", - "to": "a4", - "flags": "n", - "piece": "q", - "originalString": "Qa4" - }, - { - "color": "b", - "from": "g8", - "to": "f6", - "flags": "n", - "piece": "n", - "originalString": "Nf6" - }, - { - "color": "w", - "from": "b1", - "to": "c3", - "flags": "n", - "piece": "n", - "originalString": "Nc3" - }, - { - "color": "b", - "from": "d7", - "to": "d5", - "flags": "b", - "piece": "p", - "originalString": "d5" - }, - { - "color": "w", - "captured": "p", - "from": "e4", - "to": "d5", - "flags": "c", - "piece": "p", - "originalString": "exd5" - }, - { - "color": "b", - "from": "d8", - "to": "e7", - "flags": "n", - "piece": "q", - "originalString": "Qe7+" - }, - { - "color": "w", - "from": "e1", - "to": "d1", - "flags": "n", - "piece": "k", - "originalString": "Kd1" - }, - { - "color": "b", - "from": "c8", - "to": "g4", - "flags": "n", - "piece": "b", - "originalString": "Bg4+" - }, - { - "color": "w", - "from": "d1", - "to": "d2", - "flags": "n", - "piece": "k", - "originalString": "Kd2" - }, - { - "color": "b", - "captured": "p", - "from": "f6", - "to": "d5", - "flags": "c", - "piece": "n", - "originalString": "Nxd5" - }, - { - "color": "w", - "from": "c3", - "to": "b5", - "flags": "n", - "piece": "n", - "originalString": "Nb5" - }, - { - "color": "b", - "from": "c6", - "to": "b4", - "flags": "n", - "piece": "n", - "originalString": "Ncb4" - }, - { - "color": "w", - "from": "c2", - "to": "c3", - "flags": "n", - "piece": "p", - "originalString": "c3" - }, - { - "color": "b", - "from": "e8", - "to": "c8", - "flags": "q", - "piece": "k", - "originalString": "O-O-O" - }, - { - "color": "w", - "from": "f2", - "to": "f3", - "flags": "n", - "piece": "p", - "originalString": "f3" - }, - { - "color": "b", - "from": "e7", - "to": "e3", - "flags": "n", - "piece": "q", - "originalString": "Qe3+" - }, - { - "color": "w", - "from": "d2", - "to": "d1", - "flags": "n", - "piece": "k", - "originalString": "Kd1" - }, - { - "color": "b", - "captured": "p", - "from": "d5", - "to": "c3", - "flags": "c", - "piece": "n", - "originalString": "Nxc3#" - } -] \ No newline at end of file diff --git a/src/metrics/captures.ts b/src/metrics/captures.ts index 9263c87..4e2c56d 100644 --- a/src/metrics/captures.ts +++ b/src/metrics/captures.ts @@ -1,5 +1,5 @@ import { Piece, PrettyMove, UAPSymbol } from '../../cjsmin/src/chess'; -import { BoardMap, UAPMap } from '../types'; +import { UAPMap } from '../types'; import { createUAPMap } from '../utils'; import { Metric } from './metric'; @@ -129,13 +129,13 @@ export class KDRatioMetric implements Metric { processGame(game: { move: PrettyMove; board: Piece[] }[]) { // @ts-ignore initialize with no capture let previousMove: PrettyMove = {}; - for (const { move } of game) { + for (const { move, board } of game) { if (move.capture) { this.KDAssistsMap[move.uas].kills++; this.KDAssistsMap[move.capture.uas].deaths++; if (previousMove.capture && move.to === previousMove.to) { - this.KDAssistsMap[move.to][move.uas].revengeKills++; + this.KDAssistsMap[move.uas].revengeKills++; } previousMove = move; } @@ -203,6 +203,8 @@ export class MateAndAssistMetric implements Metric { const lastMove = game[game.length - 1].move; + console.log(this.mateAndAssistMap); + console.log(lastMove.uas); // increment the mate count of the mating piece this.mateAndAssistMap[lastMove.uas].mates++; // increment the mated (death) count of the mated king @@ -235,19 +237,19 @@ export class MateAndAssistMetric implements Metric { } // Not sure what's different from KD Ratio here except for revenge kills, so moving that and will deprecated -export function trackCaptures(boardMap: BoardMap, moves: PrettyMove[]) { - let lastMove: PrettyMove; - let i = 0; - for (const move of moves) { - if (move.capture) { - boardMap[move.to][move.uas].captures++; - boardMap[move.to][move.capture.uas].captured++; - // revenge kills - if (lastMove.capture && move.to === lastMove.to) { - boardMap[move.to][move.uas].revengeKills++; - } - } - lastMove = move; - i++; - } -} +// export function trackCaptures(boardMap: BoardMap, moves: PrettyMove[]) { +// let lastMove: PrettyMove; +// let i = 0; +// for (const move of moves) { +// if (move.capture) { +// boardMap[move.to][move.uas].captures++; +// boardMap[move.to][move.capture.uas].captured++; +// // revenge kills +// if (lastMove.capture && move.to === lastMove.to) { +// boardMap[move.to][move.uas].revengeKills++; +// } +// } +// lastMove = move; +// i++; +// } +// } diff --git a/tests/enPassant.test.ts b/tests/enPassant.test.ts index 8ce74a8..3412919 100644 --- a/tests/enPassant.test.ts +++ b/tests/enPassant.test.ts @@ -3,7 +3,7 @@ import { Chess } from '../cjsmin/src/chess'; const pgnEP = `1. d2d4 f7f5 2. b2b3 e7e6 3. c1b2 d7d5 4. g1f3 f8d6 5. e2e3 g8f6 6. b1d2 e8g8 7. c2c4 c7c6 8. f1d3 b8d7 9. e1g1 f6e4 10. a1c1 g7g5 11. h2h3 d8e8 12. d3e4 d5e4 13. f3g5 e8g6 14. h3h4 h7h6 15. g5h3 d7f6 16. f2f4 e4f3 17. d2f3 f6g4 18. d1e2 d6g3 19. h3f4 g6g7 20. d4d5 g7f7 21. d5e6 c8e6 22. f3e5 g4e5 23. b2e5 g8h7 24. h4h5 f8g8 25. e2f3 g3f4 26. e5f4 g8g4 27. g2g3 a8g8 28. c1c2 b7b5 29. c4b5 e6d5 30. f3d1 f7h5 31. c2h2 g4g3+ 32. f4g3 g8g3+ 33. g1f2 h5h2+ 34. f2e1 g3g2 35. d1d3 d5e4 36. d3d7+ h7g6 37. b5c6 g2e2+ 38. e1d1 e2a2 0-1`; -xdescribe('Game history for en passant move should show valid captured piece', () => { +describe('Game history for en passant move should show valid captured piece', () => { const chess = new Chess(); it('should return the correct captured piece', () => { const game = [ diff --git a/tests/historyGenerator.test.ts b/tests/historyGenerator.test.ts index 34cae70..433b362 100644 --- a/tests/historyGenerator.test.ts +++ b/tests/historyGenerator.test.ts @@ -3,7 +3,7 @@ import { Chess } from '../cjsmin/src/chess'; /** * @beta - this test was generated partially with chatGPT so might be an invalid PGN */ -xdescribe('Chess', () => { +describe('Chess', () => { describe('historyGenerator', () => { it('should generate the correct move history for a given PGN string', () => { const chess = new Chess(); @@ -14,8 +14,6 @@ xdescribe('Chess', () => { const expectedMoves = moveString.split(' ').filter((_, i) => i % 3 !== 0); expectedMoves.pop(); // remove the result from the end of the array for (const { move, board } of gen) { - // console.log(board); - console.log(move); // validate that the piece that was moved is of the same type as the destination square expect(move.piece).toEqual(board[move.toIndex].type); expect(move.uas).toEqual(board[move.toIndex].uas); diff --git a/tests/metrics.test.ts b/tests/metrics.test.ts index 01ecefd..cd20f89 100644 --- a/tests/metrics.test.ts +++ b/tests/metrics.test.ts @@ -29,7 +29,7 @@ export function gameHistoryToPgn(gameHistory): string { describe('All Tests', () => { const cjsmin = new Chess(); - xdescribe('gets black and white kill streaks', () => { + describe('gets black and white kill streaks', () => { const killStreakMetric = new KillStreakMetric(); it('should return the correct kill streaks', () => { @@ -53,7 +53,7 @@ describe('All Tests', () => { }); }); - xdescribe('tracks kills, deaths and revenge kills by square', () => { + describe('tracks kills, deaths and revenge kills by square', () => { it('should return the correct kill streaks', () => {}); }); @@ -124,6 +124,7 @@ describe('All Tests', () => { to: 'e4', piece: 'P', flags: 'b', + uas: 'PE', }, { originalString: 'e5', @@ -132,6 +133,7 @@ describe('All Tests', () => { to: 'e5', piece: 'p', flags: 'n', + uas: 'pe', }, { originalString: 'Qh5', @@ -148,6 +150,7 @@ describe('All Tests', () => { to: 'c6', piece: 'n', flags: 'n', + uas: 'ng', }, { originalString: 'Qxf7#', @@ -157,6 +160,7 @@ describe('All Tests', () => { piece: 'Q', captured: 'p', flags: 't', + uas: 'Q', }, ].map((move) => { return { @@ -216,6 +220,7 @@ describe('All Tests', () => { piece: 'Q', captured: 'p', flags: 't', + uas: 'Q', }, { originalString: 'Kd8', @@ -224,6 +229,7 @@ describe('All Tests', () => { to: 'd8', piece: 'k', flags: 'n', + uas: 'k', }, { originalString: 'Qf8#', @@ -233,8 +239,14 @@ describe('All Tests', () => { piece: 'Q', captured: 'k', flags: 't', + uas: 'Q', }, - ]; + ].map((move) => { + return { + move: move as any, // cast to match type checks in the processGame handler + board: [], + }; + }); mateAndAssistMetric.processGame(moves); @@ -246,8 +258,8 @@ describe('All Tests', () => { }); }); - xdescribe('getMoveDistanceSingleGame', () => { - xit('should return the correct max distance and piece for a game', async () => { + describe('getMoveDistanceSingleGame', () => { + it('should return the correct max distance and piece for a game', async () => { const game = '1. e4 e5 2. Qh5 Nc6 3. Bc4 Nf6 4. Qxf7#'; const result = await getMoveDistanceSingleGame({ @@ -259,7 +271,7 @@ describe('All Tests', () => { expect(result.maxDistance).toEqual(6); }); - xit('should return 2 distance for a game with one move', async () => { + it('should return 2 distance for a game with one move', async () => { const game = '1. e4 e5'; const result = await getMoveDistanceSingleGame({ @@ -290,7 +302,7 @@ describe('All Tests', () => { }); // game being tested: https://www.chess.com/analysis/game/pgn/4uURW4rJaa?tab=analysis - xdescribe('getKillDeathRatios', () => { + describe('getKillDeathRatios', () => { // this could be a beforeAll const kdrMetric = new KDRatioMetric(); @@ -330,7 +342,7 @@ describe('All Tests', () => { }); }); - xdescribe('getGameWithMostMoves', () => { + describe('getGameWithMostMoves', () => { it('should return the correct number of moves made', async () => { const game = [ { diff --git a/tests/queensidecastle.test.ts b/tests/queensidecastle.test.ts index 82af376..a0442e8 100644 --- a/tests/queensidecastle.test.ts +++ b/tests/queensidecastle.test.ts @@ -1,6 +1,6 @@ import { Chess } from '../cjsmin/src/chess'; -xdescribe('Queenside castling is detected', () => { +describe('Queenside castling is detected', () => { const chess = new Chess(); chess.loadPgn( '1. e4 e5 2. d4 exd4 3. Qxd4 Nc6 4. Qa4 Nf6 5. Nc3 d5 6. exd5 Qe7+ 7. Kd1 Bg4+ 8. Kd2 Nxd5 9. Nb5 Ncb4 10. c3 O-O-O 11. f3 Qe3+ 12. Kd1 Nxc3# 0-1' diff --git a/tests/shortPgn.test.ts b/tests/shortPgn.test.ts index 95a0689..fdf7284 100644 --- a/tests/shortPgn.test.ts +++ b/tests/shortPgn.test.ts @@ -1,6 +1,6 @@ import { getHistoriesFromFilePath } from '../src/gameHistory'; -xdescribe('Using modified cjsmin returns expected results', () => { +describe('Using modified cjsmin returns expected results', () => { it('should not throw an error', async () => { const histShort = JSON.parse( require('fs').readFileSync('historiesShort.json').toString().trim() @@ -12,8 +12,6 @@ xdescribe('Using modified cjsmin returns expected results', () => { histories.push(history); } - // require('fs').writeFileSync('historiestst.json', JSON.stringify(histories)); - expect(histShort[0]).toEqual(histories[0]); });