Page 1 of 2

Is there a PGN command line utility for Crosstables?

Posted: Thu Oct 23, 2014 12:39 am
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.

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

Posted: Thu Oct 23, 2014 3:30 am
by Norm Pollock
"resultTable" in 40H-PGN Utility Suite. Click "www" below.

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

Posted: Thu Oct 23, 2014 11:27 am
by Jesse Gersenson
Thanks Norm.

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

Posted: Thu Oct 23, 2014 11:47 am
by hgm
hgtblB.exe in the ChessLive! package is another one.

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

Posted: Thu Oct 23, 2014 1:13 pm
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.

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

Posted: Thu Oct 23, 2014 1:47 pm
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.

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

Posted: Thu Oct 23, 2014 1:50 pm
by Modern Times
The free Chessbase Reader does what you want I think.

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

Posted: Sat Oct 13, 2018 1:50 pm
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

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

Posted: Sat Oct 13, 2018 2:23 pm
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%

...

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

Posted: Sat Oct 13, 2018 3:39 pm
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