A pgn utility for elo distance??

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

A pgn utility for elo distance??

Postby Norm Pollock » 21 Feb 2005, 15:25

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
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52

Re: A pgn utility for elo distance??

Postby Norm Pollock » 25 Feb 2005, 19:59

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.
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52

Re: A pgn utility for elo distance??

Postby Norm Pollock » 26 Feb 2005, 01:57

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.
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52

Re: A pgn utility for elo distance??

Postby Norm Pollock » 28 Feb 2005, 19:34

I now have exe files for windows users. Thanks to Jim Ablett for compiling them.

http://www.hoflink.com/~npollock/utility_files.html
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 24 guests