pgnhelper is a command line tool to generate a round-robin table along with some tie-break systems one of which is the SB. It can take a pgn file and output to html, csv and txt formats.
Setup
- Install python 3.7 or later like 3.10
- Open command prompt or powershell if you are in windows.
- Install the package with the command:
pip install pgnhelper -U
Example
PS F:\Github\position-trainer\pgn> ls
Directory: F:\Github\position-trainer\pgn
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2023-02-12 23:50 536764 airthingsmastpl23.pgn
-a---- 2022-09-21 02:52 1516345 cheurind22.pgn
-a---- 2022-09-21 02:50 114370 ftxcrpyto22.pgn
-a---- 2022-08-14 17:01 3859792 olym22.pgn
-a---- 2022-09-08 10:37 87717 stlbli22.pgn
-a---- 2022-09-08 20:26 1719 stlbli22_2games.pgn
-a---- 2022-09-08 20:05 3602 stlbli22_4games.pgn
-a---- 2023-02-12 23:59 85511 tatamast23.pgn
-a---- 2023-02-13 00:04 775054 wbliw22.pgn
-a---- 2023-02-15 16:32 2575075 world_blitz_women_2022.json
PS F:\Github\position-trainer\pgn> python --version
Python 3.10.6
PS F:\Github\position-trainer\pgn> pip install pgnhelper -U
PS F:\Github\position-trainer\pgn> pgnhelper roundrobin --inpgnfn tatamast23.pgn --output tatamast23.html
output
tatamast23.html

Standing
You can also use standing directive to output the standings.
pgnhelper standing --inpgnfn tatamast23.pgn --output stand_tatamast23.txt
Output
Rank Name Rating RChg Games Score Score% DE Wins SB Koya
1 Giri, Anish 2764 15.41 13 8.5 65.38 0.0 0 0.00 0.0
2 Abdusattorov, Nodirbek 2713 20.49 13 8.0 61.54 1.0 4 51.25 5.0
3 Carlsen, Magnus 2859 -7.56 13 8.0 61.54 0.0 5 48.00 4.0
4 So, Wesley 2760 6.20 13 7.5 57.69 0.0 0 0.00 0.0
5 Maghsoodloo, Parham 2719 9.31 13 7.0 53.85 0.5 4 42.50 3.0
6 Caruana, Fabiano 2766 0.02 13 7.0 53.85 0.5 2 43.75 3.0
7 Rapport, Richard 2740 0.16 13 6.5 50.00 0.5 3 37.75 2.0
8 Aronian, Levon 2735 1.15 13 6.5 50.00 0.5 1 41.25 3.0
9 Praggnanandhaa, R 2684 6.15 13 6.0 46.15 1.0 2 38.75 3.0
10 Van Foreest, Jorden 2681 6.73 13 6.0 46.15 0.0 2 38.50 3.5
11 Ding, Liren 2811 -23.71 13 5.5 42.31 1.0 1 35.00 3.0
12 Gukesh, D 2725 -6.88 13 5.5 42.31 0.0 2 35.00 3.0
13 Keymer, Vincent 2696 -6.18 13 5.0 38.46 0.0 0 0.00 0.0
14 Erigaisi, Arjun 2722 -21.28 13 4.0 30.77 0.0 0 0.00 0.0
Tie-break is described in the documentation. The source code is in github.
Chess 9LX
pgn source is from weekinchess.
pgnhelper roundrobin --inpgnfn champshow9lx21.pgn --output 9LX.html
