CTG Exporter aims to export CTG books to a few formats.
- Export to Polyglot book format. This is the main feature.
- Export CTG extra book stats to leveldb format.
Usage:
- Run 'make'
- ./ctg_exporter 'examples/simple.ctg simple.bin' to test. Currently no ouput is written to simple.bin
- Simple CTG file with 3 book moves is in the examples folder (simple.ctg).
Credits and License: CTG parsing code was taken from https://github.com/AaronBecker/daydreamer. Code to parse CTG without using .cto and .ctb was taken from Sebastien Major. Code to output CTG to key value DBs was also derived from Sebastien Major.