Pleco icon indicating copy to clipboard operation
Pleco copied to clipboard

PGN Parser

Open sfleischman105 opened this issue 7 years ago • 6 comments

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.

sfleischman105 avatar Dec 31 '17 01:12 sfleischman105

Have you thought of using one of existing implementations?

sjaustirni avatar Jan 14 '18 10:01 sjaustirni

@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.

sfleischman105 avatar Jan 16 '18 06:01 sfleischman105

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.

odomobo avatar Jul 02 '18 22:07 odomobo

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 :)

ghost avatar Nov 01 '20 06:11 ghost

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

ghost avatar Nov 07 '20 08:11 ghost

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.

comp-phys-marc avatar Dec 22 '21 06:12 comp-phys-marc