Is there a PGN command line utility for Crosstables?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Is there a PGN command line utility for Crosstables?

Post by Jesse Gersenson »

Does anyone know of a command line program which inputs a pgn file and outputs a crosstable. The crosstable should include SB.
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Is there a PGN command line utility for Crosstables?

Post by Norm Pollock »

"resultTable" in 40H-PGN Utility Suite. Click "www" below.
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Is there a PGN command line utility for Crosstables?

Post by Jesse Gersenson »

Thanks Norm.
User avatar
hgm
Posts: 27788
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Is there a PGN command line utility for Crosstables?

Post by hgm »

hgtblB.exe in the ChessLive! package is another one.
User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Is there a PGN command line utility for Crosstables?

Post by Rebel »

There is an undocumented version of ProTools that does the job.

http://www.top-5000.nl/dl/protools15.zip

Steps

1. Copy the PGN into the PGN folder.

2. Start ProDeo

3. Press F1

4. Load PGN

5. Cross Table

Doing this with the included TEST.PGN file your browser will fire up and you get:

Code: Select all

No. Engine                      1     2     3  Score
----------------------------------------------------
 1 Tornado 4.82 x64 1CPU    xxxxx  13.0  13.5   26.5 /   51 (51.96%)
 2 Jonny 4.00 1CPU           13.0 xxxxx   0.0   13.0 /   26 (50.00%)
 3 Equinox 0.80 x64 1CPU     11.5   0.0 xxxxx   11.5 /   25 (46.00%)
Maximum number of players (engines) is 100.
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Is there a PGN command line utility for Crosstables?

Post by Norm Pollock »

Norm Pollock wrote:"resultTable" in 40H-PGN Utility Suite. Click "www" below.
I reviewed "resultTable" and I noticed it does all that was requested EXCEPT the pairing results.

However, I have another tool in the same package that lists pairing results (games/wins/draws/losses). It is "pairList".

Both can handle large pgn files with many players.
Modern Times
Posts: 3546
Joined: Thu Jun 07, 2012 11:02 pm

Re: Is there a PGN command line utility for Crosstables?

Post by Modern Times »

The free Chessbase Reader does what you want I think.
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Is there a PGN command line utility for Crosstables?

Post by Jesse Gersenson »

Norm Pollock wrote: Thu Oct 23, 2014 3:30 am "resultTable" in 40H-PGN Utility Suite. Click "www" below.
Hi Norm, I don't see "resultTable" listed
http://komodochess.com/pub/40H-pgn-util ... me-PGN.txt

expected output, simliar to

Code: Select all

   Engine           Score KoHoLcStEtBoFiAn    S-B
1: Komodo 2118.00   4.5/5  Ṗ     = 1 1 1 1    7.25
2: Houdini 6.03     4.0/5    Ṗ =   1 = 1 1    6.50
3: Lc0 17.11089     3.5/5    = Ṗ = = 1   1    7.00
4: Stockfish 220818 3.5/5  =   = Ṗ   = 1 1    6.25
5: Ethereal 10.88   2.5/6  0 0 =   Ṗ = = 1    3.50
6: Booot 6.3.1      1.5/5  0 = 0 = = Ṗ        5.00
7: Fire 7.1         1.0/5  0 0   0 =   Ṗ =    1.50
8: Andscacs 0.94    0.5/6  0 0 0 0 0   = Ṗ    0.50
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Is there a PGN command line utility for Crosstables?

Post by Jesse Gersenson »

I have an old version of resultsTable but it outputs

Code: Select all

#,Engine,Games,Wins,Draws,Losses,Points,SB
01,Komodo,2118.00,5,4+,1=,0-,4.5,7.25
02,Houdini,6.03,5,3+,2=,0-,4.0,6.50
03,Lc0,17.11089,5,2+,3=,0-,3.5,7.00
04,Stockfish,220818,5,2+,3=,0-,3.5,6.25
05,Ethereal,10.88,6,1+,3=,2-,2.5,3.50
06,Booot,6.3.1,5,0+,3=,2-,1.5,5.00
07,Fire,7.1,5,0+,2=,3-,1.0,1.50
08,Andscacs,0.94,6,0+,1=,5-,0.5,0.50
java pairList test.pgn gets very close. I guess one could just iterate over it's output and generate the expected output:

Code: Select all

                                                  Games :  Win : Draw : Loss :   Score

Alfilx64 : Andscacs 0.9403                           1  :   0+ :   1= :   0- :   50.0%
Alfilx64 : Arasan 21.1                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Black Mamba                               1  :   0+ :   1= :   0- :   50.0%
Alfilx64 : Bobcat 8.0                                1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Booot 6.3.1                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Chiron 20180913                           1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Crafty 25.2                               1  :   0+ :   1= :   0- :   50.0%
Alfilx64 : Critter 1.6                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Ethereal 11.00                            1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Fire 7.1                                  1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Gull 3.syz                                1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Hannibal 1.7                              1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Houdini 6.03                              1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Ivanhoe 999946h                           1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Komodo 2142                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Komodo MC                                 1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Laser 250918                              1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Lc0 0.18.1                                1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Nemorino 5.05                             1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Nirvana 2.4                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Pedone 1.8                                1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Protector                                 1  :   0+ :   1= :   0- :   50.0%
Alfilx64 : Shredder 13                               1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Texel 1.08                                1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Wasp 3.30                                 1  :   0+ :   0= :   1- :    0.0%
Alfilx64 : Xiphos 0.4.3                              1  :   0+ :   0= :   1- :    0.0%

Andscacs 0.9403 : Alfilx64                           1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Arasan 21.1                        1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Black Mamba                        1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Bobcat 8.0                         1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Booot 6.3.1                        1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Chiron 20180913                    1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Crafty 25.2                        1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Critter 1.6                        1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Equinox 3.30                       1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Ethereal 11.00                     1  :   0+ :   0= :   1- :    0.0%
Andscacs 0.9403 : Fizbo 1.9                          1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Fritz 16.10                        1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Gull 3.syz                         1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Hannibal 1.7                       1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Ivanhoe 999946h                    1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Komodo 2142                        1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Komodo MC                          1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Laser 250918                       1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Lc0 0.18.1                         1  :   0+ :   0= :   1- :    0.0%
Andscacs 0.9403 : Nemorino 5.05                      1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Nirvana 2.4                        1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Pedone 1.8                         1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Senpai 2.0                         1  :   1+ :   0= :   0- :  100.0%
Andscacs 0.9403 : Stockfish 18092721                 1  :   0+ :   0= :   1- :    0.0%
Andscacs 0.9403 : Vajolet 2.6.1                      1  :   0+ :   1= :   0- :   50.0%
Andscacs 0.9403 : Wasp 3.30                          1  :   1+ :   0= :   0- :  100.0%

...
Colin-G
Posts: 191
Joined: Mon Oct 31, 2016 6:30 pm
Location: England

Re: Is there a PGN command line utility for Crosstables?

Post by Colin-G »

Jesse Gersenson wrote: Thu Oct 23, 2014 12:39 am Does anyone know of a command line program which inputs a pgn file and outputs a crosstable. The crosstable should include SB.
I just tried this with Scid, following instructions here
http://scidvspc.sourceforge.net/doc/progref.html

I've never tried Scid via the command line before, I use the GUI in linux and windows.
After a few failed commands, I finally managed to create a cross table for an old small pgn file.
The clean command sequence I used in linux is shown below.

Image