python-chess icon indicating copy to clipboard operation
python-chess copied to clipboard

Support the TRF (Tournament Report File) format

Open ZiyaoWei opened this issue 1 year ago • 1 comments

Would the TRF file format be something in scope for python-chess? There is a package for it (https://pypi.org/project/trf/) but it would be nice to have it packaged up in a popular library.

Reference: https://www.fide.com/FIDE/handbook/C04Annex2_TRF16.pdf

Format of TRF (Tournament Report File)
Agreed general Data-Exchange Format for tournament results to be submitted to FIDE.

In particular, it seems the lichess.org API only supports getting swiss tournament results using this format.

ZiyaoWei avatar Aug 21 '23 04:08 ZiyaoWei

Hi, it's definitely something to consider.

The existing modules chess.pgn, chess.polyglot, chess.gaviota, chess.syzygy, chess.engine, chess.svg all benefit significantly from sharing types like chess.Move and chess.Board. TRF on the other hand can stand on its own perfectly fine, so I am not sure.

niklasf avatar Aug 22 '23 19:08 niklasf