Page 1 of 1

PGN 2 SquareSquare converter

PostPosted: 23 Apr 2011, 12:41
by BitSet
Hi,
I'd like to rewrite my evaluation and use GLEM. I'll need to convert games in PGN format into simple "source square destination square" format. Before I start writing my own tool, I'd like to ask if there is already available some standalone tool or library (C++) for this purpose. Simple example of what I want to do is: 1. d4 (PGN) -> d2d4.

Re: PGN 2 SquareSquare converter

PostPosted: 23 Apr 2011, 14:55
by Dann Corbit
I seem to recall that thinker's book manager can rewrite PGN games as single lines in the format you desire.
It may have been a different tool, though. It has been a while since I fiddled with it.

Re: PGN 2 SquareSquare converter

PostPosted: 24 Apr 2011, 07:18
by BitSet
Thanks for tip! But I have no idea how use BookThinker. There is no help available.

Re: PGN 2 SquareSquare converter

PostPosted: 25 Apr 2011, 09:58
by BitSet
I've found C++ library that can be very useful:
http://pgnlib.sourceforge.net/