https://github.com/assios/pgn-to-json
Converts a pgn chess game to json.
https://github.com/assios/pgn-to-json
Last synced: over 1 year ago
JSON representation
Converts a pgn chess game to json.
- Host: GitHub
- URL: https://github.com/assios/pgn-to-json
- Owner: Assios
- Created: 2015-12-07T00:53:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-18T15:16:49.000Z (over 10 years ago)
- Last Synced: 2025-01-24T19:36:35.877Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pgn-to-json
Converts a pgn chess game to json.
# Usage
Just pass in the .pgn files you want to convert as args. One .pgn file may contain many games. If you want to convert the pgn files "games.pgn" and "magnus-carlsen-vs-sipke-ernst.pgn", run:
```
python pgn_to_json.py games magnus-carlsen-vs-sipke-ernst
```