Remove unnecessary information from PGN files.
strip-pgn {--strip-comments|--move-list|--move-strings| }
strip-pgn
operates in 3 different modes, depending on the command-line argument.
The PGN itself is read from standard input.
--strip-comments
: Remove all comments.--move-list
: Remove all comments, move numbers and tag pairs, leaving only the move list.--move-strings
: The same as--move-list
, but encloses each move in quotation marks, and separates them by commas.
Using GHC:
ghc strip-pgn.hs -O2