Pleco
Pleco copied to clipboard
PGN Parser
I feel like this would be a useful thing for a chess library to have. At the bear minimum, we should be able to parse a PGN file and turn it into a Board
.
I'm not too great at parsing text/files, so if anyone wants to help with this, I would gladfully mentor.
Have you thought of using one of existing implementations?
@sjaustirni That's actually a good idea, I'll look into that! If I can successfully gather all the information the Board
requires from their structures, this could be very useful.
I would recommend against implementing a PGN parser, unless you have some specific purpose in mind. Normally you can use a GUI to analyze PGN files (or EPD test suites or whatever) and it will send the relevant commands to the engine.
I would like to take a shot at continuing your work in pgn.rs
. I have given your tag parsing a read and am confident I can pick up where you left off with the parsing of the algebraic movetext into PGNMoves
.
I have written a bunch of lexers/parsers, so will enjoy this :)
Feel free to watch my progress which will be developed on my branch here: https://github.com/sfleischman105/Pleco/compare/master...MackEdweise:pgn-parsing?expand=1
Hey, sorry about ghosting. I burnt out a bit. I am back on GitHub and may continue this, but things are a little up in the air as I have been between jobs, etc.