Answers.Body: <p><a href="https://pypi.org/project/pgnhelper/" rel="nofollow noreferrer">pgnhelper</a> 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.</p>
  <h3>Setup</h3>
  <ol start="0">
  <li>Install python 3.7 or later like 3.10</li>
  <li>Open command prompt or powershell if you are in windows.</li>
  <li>Install the package with the command:</li>
  </ol>
  <pre><code>pip install pgnhelper -U
  </code></pre>
  <h4>Example</h4>
  <pre><code>PS F:\Github\position-trainer\pgn&gt; 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&gt; python --version
  Python 3.10.6
  PS F:\Github\position-trainer\pgn&gt; pip install pgnhelper -U
  
  PS F:\Github\position-trainer\pgn&gt; pgnhelper roundrobin --inpgnfn tatamast23.pgn --output tatamast23.html
  </code></pre>
  <h3>output</h3>
  <p>tatamast23.html</p>
  <p><a href="https://i.sstatic.net/LOMcC.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LOMcC.png" alt="enter image description here" /></a></p>
  <h3>Standing</h3>
  <p>You can also use standing directive to output the standings.</p>
  <pre><code>pgnhelper standing --inpgnfn tatamast23.pgn --output stand_tatamast23.txt
  </code></pre>
  <h3>Output</h3>
  <pre><code> 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
  </code></pre>
  <p><a href="https://pgnhelper.readthedocs.io/en/latest/api.html#module-pgnhelper.roundrobin" rel="nofollow noreferrer">Tie-break</a> is described in the <a href="https://pgnhelper.readthedocs.io/en/latest/index.html" rel="nofollow noreferrer">documentation</a>. The <a href="https://github.com/fsmosca/pgnhelper" rel="nofollow noreferrer">source code</a> is in github.</p>
  <h3>Chess 9LX</h3>
  <p>pgn source is from <a href="https://theweekinchess.com/chessnews/events/champions-showdown-9lx-2021" rel="nofollow noreferrer">weekinchess</a>.</p>
  <pre><code>pgnhelper roundrobin --inpgnfn champshow9lx21.pgn --output 9LX.html
  </code></pre>
  <p><a href="https://i.sstatic.net/YznZw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YznZw.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-15T13:06:56.650Z
Answers.Text: This is excellent.
Answers.UserDisplayName: SecretAgentMan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-15T08:55:04.360Z
Answers.LastActivityDate: 2023-02-15T09:01:48.887Z
Answers.LastEditDate: 2023-02-15T09:01:48.887Z
Answers.UserDisplayName: ferdy
Body: <p>Where can I find a site that calculates <a href="https://en.wikipedia.org/wiki/Sonneborn%E2%80%93Berger_score#Neustadtl_Sonneborn%E2%80%93Berger_score" rel="nofollow noreferrer">Neustadtl Sonneborn–Berger score</a> (or Sonneborn–Berger score or whatever) given a cross-table? Closest I found is <a href="https://www.codewars.com/kata/tournament-cross-table-with-sonneborn-berger-score/python" rel="nofollow noreferrer">this</a>.</p>
  <p>Eg Given the cross-table (implied from these results by rounds) from <a href="https://www.uschesschamps.com/2021-champions-showdown-chess-9lx/pairings-regulations" rel="nofollow noreferrer">St Louis Chess Club's 2021 Chess 9LX tournament</a>:</p>
  <p><a href="https://i.sstatic.net/mHPqE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mHPqE.png" alt="enter image description here" /></a></p>
  <p>I calculated the ff: (And you can also see SB in the players' links in the 2nd column.)</p>
  <p><a href="https://i.sstatic.net/yk7EN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yk7EN.png" alt="enter image description here" /></a></p>
  <p>Based on Neustadtl Sonneborn–Berger score, <a href="https://chess.stackexchange.com/questions/41615/what-exactly-does-sam-shankland-mean-by-talented-players-vs-hard-working-players">Wesley So is 4th place behind Sam Shankland</a> &amp; MVL even though they are tied for 2nd place.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-29T00:15:41.940Z
Comments.Text: Tata Steel [publishes this](https://tatasteelchess.com/standings-masters/) with the crosstable.  I acknowledge you are looking for a website that returns SB given a crosstable.
Comments.UserDisplayName: SecretAgentMan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-29T03:27:00.857Z
Comments.Text: @SecretAgentMan ok...... and then what? how do i plug in my cross table
Comments.UserDisplayName: BCLC
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-29T10:31:10.183Z
Comments.Text: @BCLC what is your input?
Comments.UserDisplayName: ferdy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-29T13:56:56.383Z
Comments.Text: @ferdy a crosstable in google sheets? Well I mean it's pretty easy to do this. I just don't wanna reinvent the wheel. But I'm hoping I can go to some webpage instead of having to download some software hehe
Comments.UserDisplayName: BCLC
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-01-29T14:32:01.983Z
Comments.Text: Just in case you have not known this, I have a command line program called [pgnhelper](https://pypi.org/project/pgnhelper/) that can take pgn and output, txt, csv and html. There is SB in the generated table.
Comments.UserDisplayName: ferdy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T07:07:03.983Z
Comments.Text: @ferdy ah thanks. like input a pgn of several games in a completed tournament  and then you get SB?
Comments.UserDisplayName: BCLC
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T08:36:21.333Z
Comments.Text: Yes, even if the tournament is not yet complete.
Comments.UserDisplayName: ferdy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-13T13:47:22.480Z
Comments.Text: @ferdy feel free to post your command line programme as an answer. doesn't look like there's a webpage for direct input. sigh.
Comments.UserDisplayName: BCLC
Tags: <programming><statistics><tie-breaks>
Title: Online Neustadtl Sonneborn–Berger score?
ThreadText: # Online Neustadtl Sonneborn–Berger score?
  
  (Asked by: username_0 on 2023-01-27)
  
  Where can I find a site that calculates [Neustadtl Sonneborn–Berger score](https://en.wikipedia.org/wiki/Sonneborn%E2%80%93Berger_score#Neustadtl_Sonneborn%E2%80%93Berger_score) (or Sonneborn–Berger score or whatever) given a cross-table? Closest I found is [this](https://www.codewars.com/kata/tournament-cross-table-with-sonneborn-berger-score/python).
  
  Eg Given the cross-table (implied from these results by rounds) from [St Louis Chess Club's 2021 Chess 9LX tournament](https://www.uschesschamps.com/2021-champions-showdown-chess-9lx/pairings-regulations):
  
  [![enter image description here](https://i.sstatic.net/mHPqE.png)](https://i.sstatic.net/mHPqE.png)
  
  I calculated the ff: (And you can also see SB in the players' links in the 2nd column.)
  
  [![enter image description here](https://i.sstatic.net/yk7EN.png)](https://i.sstatic.net/yk7EN.png)
  
  Based on Neustadtl Sonneborn–Berger score, [Wesley So is 4th place behind Sam Shankland](https://chess.stackexchange.com/questions/41615/what-exactly-does-sam-shankland-mean-by-talented-players-vs-hard-working-players) & MVL even though they are tied for 2nd place.
  
  **Tags:** programming, statistics, tie-breaks
  
  > **Comments:**
  > **username_1**: Tata Steel [publishes this](https://tatasteelchess.com/standings-masters/) with the crosstable.  I acknowledge you are looking for a website that returns SB given a crosstable.  
  > **username_0**: @username_1 ok...... and then what? how do i plug in my cross table  
  > **username_2**: @username_0 what is your input?  
  > **username_0**: @username_2 a crosstable in google sheets? Well I mean it's pretty easy to do this. I just don't wanna reinvent the wheel. But I'm hoping I can go to some webpage instead of having to download some software hehe  
  > **username_2**: Just in case you have not known this, I have a command line program called [pgnhelper](https://pypi.org/project/pgnhelper/) that can take pgn and output, txt, csv and html. There is SB in the generated table.  
  > **username_0**: @username_2 ah thanks. like input a pgn of several games in a completed tournament  and then you get SB?  
  > **username_2**: Yes, even if the tournament is not yet complete.  
  > **username_0**: @username_2 feel free to post your command line programme as an answer. doesn't look like there's a webpage for direct input. sigh.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-02-15. Score: 1
  
  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
  
  > **Comments:**
  > **username_1**: This is excellent.  
  
  ---
  
  