tool to graph time usage from PGNs

Discussion of chess software programming and technical issues.

Moderator: Ras

AndrewGrant
Posts: 1969
Joined: Tue Apr 19, 2016 6:08 am
Location: U.S.A
Full name: Andrew Grant

tool to graph time usage from PGNs

Post by AndrewGrant »

I'm looking for a tool that can plot the time usage data contained within a PGN file.

Does such a tool exist?

I was going to write something up in python, but would prefer to save myself the time.

Thanks,
Andrew Grant
User avatar
gbtami
Posts: 389
Joined: Wed Sep 26, 2012 1:29 pm
Location: Hungary

Re: tool to graph time usage from PGNs

Post by gbtami »

AndrewGrant wrote:I'm looking for a tool that can plot the time usage data contained within a PGN file.

Does such a tool exist?

I was going to write something up in python, but would prefer to save myself the time.

Thanks,
Andrew Grant
Try to ask Ferdinand at http://talkchess.com/forum/viewtopic.php?t=66853
Ferdy
Posts: 4851
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: tool to graph time usage from PGNs

Post by Ferdy »

AndrewGrant wrote:I'm looking for a tool that can plot the time usage data contained within a PGN file.

Does such a tool exist?

I was going to write something up in python, but would prefer to save myself the time.

Thanks,
Andrew Grant
I don't know how do you present the game/plot, but one idea is to revise the format of comment of a game in a pgn, then view it with Fritz chessbase software.
Load the pgn with modified comment format then enable the evaluation profile.

Top line curves are time, Line below are the depth, the bars are evaluation.

Image

Convert the pgn to look like the following.

Code: Select all

1. e4 {[%eval 33,22] [%emt 0:00:42] Both last book
move} e5 {[%eval 10,23] [%emt 0:01:31]} 2. Nf3 {[%eval 23,22] [%emt 0:00:41] 
(Nc3)} Nc6 {[%eval 37,22] [%emt 0:01:17] (d6)} 3. Bb5 {[%eval 22,22] [%emt 0:
00:56]} Nf6 {[%eval 42,22] [%emt 0:01:10]} 4. O-O {[%eval 33,22] [%emt 0:00:25]
} Bc5 {[%eval 58,22] [%emt 0:01:30] (Be7)} 5. c3 {[%eval 59,21] [%emt 0:00:28]
(Nxe5)} O-O {[%eval 22,23] [%emt 0:01:27] (Be7)}

Code: Select all

[%eval 33,22]
eval = 33cp, depth = 22, score is WPOV (+score is better for white, -score is better for black)

Code: Select all

[%emt 0:00:42]
elapsed move time in h:mm:ss
From PGN std extension.
http://www.enpassant.dk/chess/palview/enhancedpgn.htm

I can do this but have no time at the moment. You can go ahead and create it. Then maybe add a link to chess tools indicated by gbtami, to save tools/links in one place.