Author: Joshua Haglund
Date: 22:04:27 03/01/05
Go up one level in this thread
On March 01, 2005 at 22:50:19, Norm Pollock wrote:
>I have written a utility program called "elopgn.exe" that analyzes elo values
>within a pgn file.
>
>You can download it from:
>
>http://www.hoflink.com/~npollock/utility_files.html
>
>The source program is also available.
>
>From the Readme file:
>
>"elopgn" analyzes the elo scores of a pgn file. It reports the number of
>games, the number of games with a white elo tag, the number of games
>with a black elo tag, the average white elo, the average black elo, and
>the average elo distance (equals absolute value of white elo minus
>black elo when both elos are present).
>
>"elopgn" can also create another pgn file ("out.pgn"), a subset of the
>original pgn file, that only contains those games whose elo distance is less
>than or equal to a user given maximum.
>
>Usage #1:
>
>elopgn alpha.pgn
>
>outputs various stats concerning white and black elo values within alpha.pgn.
>
>Usage #2:
>
>elopgn alpha.pgn 40
>
>also creates a file "out.pgn" which contains those games of alpha.pgn whose
>elo distance is less than or equal to 40.
>
>NOTE: The pgn file passed to elopgn must be "clean".
> Use pgn-extract with a command line like this:
> pgn-extract -C -V -N -s first.pgn -osecond.pgn
> Then pass second.pgn to elopgn.exe:
> elopgn second.pgn
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Josh\Desktop>elopgn Crafty.pgn
number of games in Crafty.pgn is 1713
number of games with white elo is 1
number of games with black elo is 0
number of games with BOTH white & black elo is 0
average white elo value is 0.0 for 1 games
average black elo value is NaN for 0 games
maximum elo distance is 0 for 0 games
average elo distance is NaN for 0 games
Exception in thread "main" java.lang.StringIndexOutOfBoundsException
at 0x0041abee (Unknown Source)
at 0x0041a5c2 (Unknown Source)
at 0x0041a5f3 (Unknown Source)
at 0x0045c2ad (Unknown Source)
at 0x00447c3d (Unknown Source)
at 0x00443c7d (Unknown Source)
at 0x0045201d (Unknown Source)
at 0x0040f58a (Unknown Source)
at 0x00401907 (Unknown Source)
at 0x0045e97f (Unknown Source)
at 0x0041867f (Unknown Source)
at 0x00420e00 (Unknown Source)
at 0x004056f7 (Unknown Source)
at 0x00405847 (Unknown Source)
at 0x004012ca (Unknown Source)
at 0x00401166 (Unknown Source)
at 0x00401014 (Unknown Source)
at 0x7c816d4b (Unknown Source)
C:\Documents and Settings\Josh\Desktop>elopgn twic535.pgn
number of games in twic535.pgn is 2617
number of games with white elo is 2394
number of games with black elo is 2386
number of games with BOTH white & black elo is 2234
average white elo value is 2294.346700083542 for 2394 games
average black elo value is 2291.6223805532272 for 2386 games
maximum elo distance is 568 for 2234 games
average elo distance is 132.27842435094 for 2234 games
C:\Documents and Settings\Josh\Desktop>elopgn twic535.pgn
number of games in twic535.pgn is 2617
number of games with white elo is 2394
number of games with black elo is 2386
number of games with BOTH white & black elo is 2234
average white elo value is 2294.346700083542 for 2394 games
average black elo value is 2291.6223805532272 for 2386 games
maximum elo distance is 568 for 2234 games
average elo distance is 132.27842435094 for 2234 games
C:\Documents and Settings\Josh\Desktop>elopgn twic535.pgn 132
number of games in twic535.pgn is 2617
number of games with white elo is 2394
number of games with black elo is 2386
number of games with BOTH white & black elo is 2234
average white elo value is 2294.346700083542 for 2394 games
average black elo value is 2291.6223805532272 for 2386 games
maximum elo distance is 568 for 2234 games
average elo distance is 132.27842435094 for 2234 games
maximum allowable elo distance in out.pgn is 132
number of games in out.pgn is 1266
C:\Documents and Settings\Josh\Desktop>elopgn twic535.pgn 133
number of games in twic535.pgn is 2617
number of games with white elo is 2394
number of games with black elo is 2386
number of games with BOTH white & black elo is 2234
average white elo value is 2294.346700083542 for 2394 games
average black elo value is 2291.6223805532272 for 2386 games
maximum elo distance is 568 for 2234 games
average elo distance is 132.27842435094 for 2234 games
maximum allowable elo distance in out.pgn is 133
number of games in out.pgn is 1274
C:\Documents and Settings\Josh\Desktop>elopgn twic535.pgn 50
number of games in twic535.pgn is 2617
number of games with white elo is 2394
number of games with black elo is 2386
number of games with BOTH white & black elo is 2234
average white elo value is 2294.346700083542 for 2394 games
average black elo value is 2291.6223805532272 for 2386 games
maximum elo distance is 568 for 2234 games
average elo distance is 132.27842435094 for 2234 games
maximum allowable elo distance in out.pgn is 50
number of games in out.pgn is 371
C:\Documents and Settings\Josh\Desktop>
It works, very interesting tool.
Thanks Norm,
Joshua Haglund
toneewa@yahoo.com
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.