Files
NowChessSystems/modules/ui/chess_game.json
T
shahdlala66 3e1e79ebee feat: I/O json export import with 100% coverage
- Full FEN parser tests
- Json exporter with all move types covered
- CastleKingside branch coverage

Co-Authored-By: Claude Opus 4.6
2026-04-12 15:18:42 +02:00

203 lines
3.7 KiB
JSON

{
"metadata": {
"event": "Game",
"players": {
"white": "White Player",
"black": "Black Player"
},
"date": "2026-04-07",
"result": "*"
},
"gameState": {
"board": [
{
"square": "d1",
"color": "White",
"piece": "Queen"
},
{
"square": "f1",
"color": "White",
"piece": "Bishop"
},
{
"square": "c7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "g2",
"color": "White",
"piece": "Pawn"
},
{
"square": "f2",
"color": "White",
"piece": "Pawn"
},
{
"square": "b1",
"color": "White",
"piece": "Knight"
},
{
"square": "e2",
"color": "White",
"piece": "Pawn"
},
{
"square": "f7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "d8",
"color": "Black",
"piece": "Queen"
},
{
"square": "a2",
"color": "White",
"piece": "Pawn"
},
{
"square": "f3",
"color": "White",
"piece": "Knight"
},
{
"square": "g8",
"color": "Black",
"piece": "Knight"
},
{
"square": "e7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "c8",
"color": "Black",
"piece": "Bishop"
},
{
"square": "h2",
"color": "White",
"piece": "Pawn"
},
{
"square": "d2",
"color": "White",
"piece": "Pawn"
},
{
"square": "g7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "a1",
"color": "White",
"piece": "Rook"
},
{
"square": "h7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "b8",
"color": "Black",
"piece": "Knight"
},
{
"square": "c2",
"color": "White",
"piece": "Pawn"
},
{
"square": "a8",
"color": "Black",
"piece": "Rook"
},
{
"square": "f8",
"color": "Black",
"piece": "Bishop"
},
{
"square": "c1",
"color": "White",
"piece": "Bishop"
},
{
"square": "b7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "a7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "e1",
"color": "White",
"piece": "King"
},
{
"square": "d7",
"color": "Black",
"piece": "Pawn"
},
{
"square": "b2",
"color": "White",
"piece": "Pawn"
},
{
"square": "h8",
"color": "Black",
"piece": "Rook"
},
{
"square": "e8",
"color": "Black",
"piece": "King"
},
{
"square": "h1",
"color": "White",
"piece": "Rook"
}
],
"turn": "Black",
"castlingRights": {
"whiteKingSide": true,
"whiteQueenSide": true,
"blackKingSide": true,
"blackQueenSide": true
},
"enPassantSquare": null,
"halfMoveClock": 1
},
"moveHistory": "[Event \"?\"]\n[White \"?\"]\n[Black \"?\"]\n[Result \"*\"]\n\n1. Nf3 *",
"moves": [
{
"from": "g1",
"to": "f3",
"type": {
"type": "normal",
"isCapture": false,
"promotionPiece": null
}
}
],
"capturedPieces": {
"byWhite": [],
"byBlack": [
"Knight"
]
},
"timestamp": "2026-04-07T12:53:26.346013008Z[UTC]"
}