kokopu
Version:
A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.
52 lines (51 loc) • 1.42 kB
JSON
{
"event": "Game with variations and sub-variations",
"mainVariation": {
"comment": "I'm the main variation header comment.",
"nodes": [
"e4",
{
"notation": "e5",
"variations": [
[ "c6" ],
[
"c5",
{
"notation": "Nc3",
"variations": [
[ "Nf3", "d6" ]
]
}
]
]
},
{
"notation": "Nf3",
"variations": [
[]
]
},
"Nc6",
{
"notation": "Bc4",
"variations": [
[
"Bb5",
{
"notation": "a6",
"variations": [
[ "Nf6" ]
]
},
{
"notation": "Ba4",
"variations": [
[ "Bxc6", "dxc6" ]
]
}
]
]
}
]
}
}