Disservin / chess-library

C++ chess library
https://disservin.github.io/chess-library/
MIT License
62 stars 21 forks source link

Writing pgns #96

Open trevor-vincent opened 2 months ago

trevor-vincent commented 2 months ago

Hi!

Awesome library! Really enjoying the speed.

I could use some functionality to write out pgns, but I could only find an example for reading them. Is there an easy way to write out pgns that I'm missing?

Thanks!

Disservin commented 2 months ago

There isn’t though a pgn writer isn’t much effort. I have one in my other program which uses this lib see https://github.com/Disservin/fast-chess/blob/master/src/pgn/pgn_builder.cpp

trevor-vincent commented 2 months ago

Awesome, thanks! I'll check it out.