Hi,
I would like to know how I can extract the clock information ( time remaining ) from PGN file using a program.
Python is preferable. I have stumbled on a easy python program python-chess.readthedocs.io/en/latest/pgn.html. I am struggling with how to extract clock information from PGN file. Thanks in advance.
1. d4 { [%clk 0:02:00] } 1... d5 { [%clk 0:02:00] } , I am able to extract the moves using "for move in first_game.mainline_moves():"
and this spits out the entire game as string - first_game.mainline(). I would like to know how to systematically extract the move-no, clock information.
I would like to know how I can extract the clock information ( time remaining ) from PGN file using a program.
Python is preferable. I have stumbled on a easy python program python-chess.readthedocs.io/en/latest/pgn.html. I am struggling with how to extract clock information from PGN file. Thanks in advance.
1. d4 { [%clk 0:02:00] } 1... d5 { [%clk 0:02:00] } , I am able to extract the moves using "for move in first_game.mainline_moves():"
and this spits out the entire game as string - first_game.mainline(). I would like to know how to systematically extract the move-no, clock information.