PGN parsing and writing — python-chess 0.31.4 documentation

PHOTO EMBED

Tue Sep 15 2020 20:49:47 GMT+0000 (Coordinated Universal Time)

Saved by @xyzemail23@gmail.com

>>> import io
>>>
>>> pgn = io.StringIO("1. e4 e5 2. Nf3 *")
>>> game = chess.pgn.read_game(pgn)
content_copyCOPY

https://python-chess.readthedocs.io/en/latest/pgn.html