looking for a utility to get cross table from pgn file

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

Moderators: hgm, Rebel, chrisw

Uri Blass
Posts: 10410
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

looking for a utility to get cross table from pgn file

Post by Uri Blass »

I found this but I am not sure how to use it.
https://manpages.ubuntu.com/manpages/no ... ble.6.html

I am also not sure if it can handle a cross table of tournament with hundrends of engines.
User avatar
Jim Ablett
Posts: 1426
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: looking for a utility to get cross table from pgn file

Post by Jim Ablett »

Scid vs Pc has crosstable functionality.

Jim.
chesskobra
Posts: 175
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: looking for a utility to get cross table from pgn file

Post by chesskobra »

I just tried it since I was also looking for something like that. I got the following error for the crosstable (which is installed by tourney-manager on ubuntu):

Code: Select all

Can't locate Crosstable.pm in @INC (you may need to install the Crosstable module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/games/crosstable line 27.
BEGIN failed--compilation aborted at /usr/games/crosstable line 27.
After some search it seems that ChessDB has the feature to generate crosstable, but I am not able to compile it. I downloaded from https://sourceforge.net/projects/chessdb/, but ./configure gives the following error:

Code: Select all

    Renaming "Makefile" to "Makefile.bak"
    Tcl/Tk version: 8.6
    Your operating system is: Linux 6.5.0-28-generic
    Location of "tcl.h": /usr/include/tcl8.6
    Location of "tk.h": /usr/include/tcl8.6
    Location of Tcl 8.6 library: not found
    Location of Tk 8.6 library: not found
    Location of X11 library: not found
    Checking if your system already has zlib installed: yes.
Not all settings could be determined!
The default Makefile was written.
You will need to edit it before you can compile ChessDB.
I found the exact errors being discussed on askubuntu, but nothing there resolved my issue.

scid vs pc seems to work.
cpeters
Posts: 128
Joined: Wed Feb 17, 2021 7:44 pm
Full name: Christian Petersen

Re: looking for a utility to get cross table from pgn file

Post by cpeters »

chesskobra,

it's likely that you're missing a ton of *-dev files to compile chessdb. Ubuntu ships with wayland, so building for X11 would work, but you'd have to switch sessions too I think.
User avatar
hgm
Posts: 27859
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: looking for a utility to get cross table from pgn file

Post by hgm »

The package http://hgm.nubati.net/ChessLive.zip contains a utility hgtblB.exe which can create a cross table in ascii format from a PGN. I am not sure if there is any maximum to the number of engines, though. The source code is not on my current PC.
Uri Blass
Posts: 10410
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: looking for a utility to get cross table from pgn file

Post by Uri Blass »

hgm wrote: Sat Apr 27, 2024 7:30 pm The package http://hgm.nubati.net/ChessLive.zip contains a utility hgtblB.exe which can create a cross table in ascii format from a PGN. I am not sure if there is any maximum to the number of engines, though. The source code is not on my current PC.
Not sure how to use it.

I got the file hgtblB.exe but I am not sure how to run it to generate a crosstable from pgn.
User avatar
Rebel
Posts: 7025
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: looking for a utility to get cross table from pgn file

Post by Rebel »

https://github.com/egh-s

Pick one of the SOMU versions over there, put your pgns in the pgn folder, start SOMU and select Cross Table from the menu.

Output example -

Code: Select all

No. Engine               1     2     3     4     5     6     7     8     9  Score  Games   Perc   Moves
-------------------------------------------------------------------------------------------------------
 1 Blunder_7.3.0     xxxxx  94.0  99.5 115.5 117.0 124.0 124.5 124.5 138.5  937.5 / 1600 (58.59%)  58.6  
 2 Monolith_0.3      106.0 xxxxx   0.0   0.0   0.0   0.0   0.0   0.0   0.0  106.0 /  200 (53.00%)  55.0  
 3 CT800_1.43        100.5   0.0 xxxxx   0.0   0.0   0.0   0.0   0.0   0.0  100.5 /  200 (50.25%)  58.6  
 4 Galjoen_0.41.1     84.5   0.0   0.0 xxxxx   0.0   0.0   0.0   0.0   0.0   84.5 /  200 (42.25%)  60.3  
 5 Jumbo_0.6.10       83.0   0.0   0.0   0.0 xxxxx   0.0   0.0   0.0   0.0   83.0 /  200 (41.50%)  58.4  
 6 Loki_3.5.0         76.0   0.0   0.0   0.0   0.0 xxxxx   0.0   0.0   0.0   76.0 /  200 (38.00%)  56.3  
 7 Orion_05           75.5   0.0   0.0   0.0   0.0   0.0 xxxxx   0.0   0.0   75.5 /  200 (37.75%)  61.2  
 8 Foxsee_7.20.1      75.5   0.0   0.0   0.0   0.0   0.0   0.0 xxxxx   0.0   75.5 /  200 (37.75%)  58.3  
 9 Jumbo_0.5.3        61.5   0.0   0.0   0.0   0.0   0.0   0.0   0.0 xxxxx   61.5 /  200 (30.75%)  60.6  
90% of coding is debugging, the other 10% is writing bugs.
Uri Blass
Posts: 10410
Joined: Thu Mar 09, 2006 12:37 am
Location: Tel-Aviv Israel

Re: looking for a utility to get cross table from pgn file

Post by Uri Blass »

Rebel wrote: Sat Apr 27, 2024 8:31 pm https://github.com/egh-s

Pick one of the SOMU versions over there, put your pgns in the pgn folder, start SOMU and select Cross Table from the menu.

Output example -

Code: Select all

No. Engine               1     2     3     4     5     6     7     8     9  Score  Games   Perc   Moves
-------------------------------------------------------------------------------------------------------
 1 Blunder_7.3.0     xxxxx  94.0  99.5 115.5 117.0 124.0 124.5 124.5 138.5  937.5 / 1600 (58.59%)  58.6  
 2 Monolith_0.3      106.0 xxxxx   0.0   0.0   0.0   0.0   0.0   0.0   0.0  106.0 /  200 (53.00%)  55.0  
 3 CT800_1.43        100.5   0.0 xxxxx   0.0   0.0   0.0   0.0   0.0   0.0  100.5 /  200 (50.25%)  58.6  
 4 Galjoen_0.41.1     84.5   0.0   0.0 xxxxx   0.0   0.0   0.0   0.0   0.0   84.5 /  200 (42.25%)  60.3  
 5 Jumbo_0.6.10       83.0   0.0   0.0   0.0 xxxxx   0.0   0.0   0.0   0.0   83.0 /  200 (41.50%)  58.4  
 6 Loki_3.5.0         76.0   0.0   0.0   0.0   0.0 xxxxx   0.0   0.0   0.0   76.0 /  200 (38.00%)  56.3  
 7 Orion_05           75.5   0.0   0.0   0.0   0.0   0.0 xxxxx   0.0   0.0   75.5 /  200 (37.75%)  61.2  
 8 Foxsee_7.20.1      75.5   0.0   0.0   0.0   0.0   0.0   0.0 xxxxx   0.0   75.5 /  200 (37.75%)  58.3  
 9 Jumbo_0.5.3        61.5   0.0   0.0   0.0   0.0   0.0   0.0   0.0 xxxxx   61.5 /  200 (30.75%)  60.6  
I am not sure what to do. I downloaded somu.7z extracted it.
I got a folder with the name somu that has inside it a pgn folder and some exe files.

copied my pgn to the pgn folder that include also twic.pgn
I see some exe files:
1)sf15.exe
2)pg.exe
3)gameSplit.exe
4)pgn-extract.exe
5)pgn2fen.exe

Not sure what to run to get a cross table.
User avatar
hgm
Posts: 27859
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: looking for a utility to get cross table from pgn file

Post by hgm »

Uri Blass wrote: Sat Apr 27, 2024 8:03 pmI got the file hgtblB.exe but I am not sure how to run it to generate a crosstable from pgn.
Ah OK. I had forgotten that too, but figured it out now.

You run it with the .pgn file as argument, e.g.

hgtblB name.pgn

It then creates two files in the same directory as where the PGN file was: names.txt and namex.txt.
The second one contains the cross table. (The other is the ranking.)
chesskobra
Posts: 175
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: looking for a utility to get cross table from pgn file

Post by chesskobra »

cpeters wrote: Sat Apr 27, 2024 1:54 pm chesskobra,

it's likely that you're missing a ton of *-dev files to compile chessdb. Ubuntu ships with wayland, so building for X11 would work, but you'd have to switch sessions too I think.
From the errors it is not clear to me which dev files to install. For example, I already have tcl8.6-dev and tk8.6-dev. In fact I had installed them when I compiled scid vs pc. Anyway, since scid vs pc is working, I will not install ChessDB. Meanwhile I discovered a utility in Norman Pollock's site http://www.nk-qy.info/40h/ under PGN Tools, called resultList. It could be useful to others.

I ran it as

Code: Select all

java resultList test.pgn 
which produced 3 result files in txt format. It is enough for my purpose.