lila/ui/analyse
Thibault Duplessis 8326fee1d3 tweak analysis movelist perf 2015-10-01 14:12:06 +02:00
..
src tweak analysis movelist perf 2015-10-01 14:12:06 +02:00
README.md document analysis data structures 2015-02-12 20:53:40 +01:00
gulpfile.js upgrade JS vendors 2015-04-19 10:44:30 +02:00
package.json upgrade chessground 2015-09-30 14:07:30 +02:00

README.md

Tree structure:

[{
  "ply": 1,
  "san": "e4",
  "comments": [],
  "variations": []
}, {
  "ply": 2,
  "san": "d6",
  "comments": [],
  "variations": []
}, {
  "ply": 3,
  "san": "Nc3",
  "comments": [],
  "variations": [
    [{
      "ply": 3,
      "san": "Nf3",
      "comments": [],
      "variations": []
    }, {
      "ply": 4,
      "san": "Bg4",
      "comments": [],
      "variations": []
    }, {
      "ply": 5,
      "san": "Be2",
      "comments": [],
      "variations": [
        [{
          "ply": 5,
          "san": "Nc3",
          "comments": [],
          "variations": []
        }]
      ]
    }]
  ]
}, {
  "ply": 4,
  "san": "Nc6",
  "comments": [],
  "variations": []
},
...
]

Path structure:

[{
  "ply": 3,
  "variation": 1
}, {
  "ply": 4,
  "variation": null
}]

Here, the user is on the fourth ply, on the first variation of the third ply.