Page 1 of 1

A pgn utility for elo distance??

PostPosted: 21 Feb 2005, 15:25
by Norm Pollock
For my Stat study of chess results, I need a utility that:

Reads in a pgn file.

Asks for a maximum elo distance.

Extracts the white elo and black elo of each game from the elo tags, provided both elo tags exist.

Determines the elo distance = absoluteValue (white elo - black elo) of each game where both elo tags exist.

Outputs a subset of the input file containing those pgns that are within the maximum elo distance.

Outputs the average elo distance.

Outputs the maximum elo distance.

thanx

-Norm

Re: A pgn utility for elo distance??

PostPosted: 25 Feb 2005, 19:59
by Norm Pollock
I wrote the utility to do the above chores on a pgn file. Only thing I left out was the last item (compute maximum elo-distance) because I did not find a need for it. I also included average white-elo and average black-elo.

Download Link: http://www.hoflink.com/~npollock/utility_files.html

I only program in Java, and I an not a professional programmer.

So you have to have JRE installed.

To launch in a dos prompt window:

java Three Alpha.pgn 50

where Three represents the file "Three.class" but do include the extension.

the above is VERY case sensitive, even for the input file.

It will output data to the screen and produce an output file: out.pgn whose elo distances are less than or equal to 50.

Source (Three.java) is available also.

Re: A pgn utility for elo distance??

PostPosted: 26 Feb 2005, 01:57
by Norm Pollock
I put up Two.java, and Two.class, prequels to Three.

They do everything but create the new file.

I also put up a readme file.

If anyone has the tools to create an exe from the java files, I would be grateful if they would do so and if they would email a copy to me.

Re: A pgn utility for elo distance??

PostPosted: 28 Feb 2005, 19:34
by Norm Pollock
I now have exe files for windows users. Thanks to Jim Ablett for compiling them.

http://www.hoflink.com/~npollock/utility_files.html