Complete PGN Parsing in Swift – Tags, Moves, Comments & More #372
NSStudent
started this conversation in
Show and tell
Replies: 1 comment
-
Hi @NSStudent, this is very cool. Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I just wanted to share that I’ve been working with FischerCore, a Swift library I’ve developed to encapsulate the core logic of chess, and I’ve recently used it successfully to parse all parts of a PGN file, including moves, tags, comments, and annotations.
For those unfamiliar, PGN (Portable Game Notation) is the standard format for storing chess games (see Wikipedia definition).
The parser is built using Point-Free’s swift-parsing and has been tested with multiple real-world games. If you’re working on a chess engine, game viewer, or any chess-related tool, this approach might be useful to you.
You can check out the repository here: 👉 https://github.com/NSStudent/fischer-core
I’m open to suggestions or collaboration. Hope someone finds it useful!
Beta Was this translation helpful? Give feedback.
All reactions