Simple Web Page for Displaying Pairings in Multi-Section Tournament
Simple Web Page for Displaying Pairings in Multi-Section Tournament
https://estima.com/chess/evanston/testpairings.html shows an example of an easy-to-alter web page which displays pairings for all rounds in a multiple section tournament. This pulls the information out of a PTOZ (version 5 tournament) file so all you need to do is to write the content of the web page describing the tournament (in the "topDiv" near the bottom), change the file name in the loadZip instruction, upload the edited HTML file and the PTOZ file to your web site. When you send a new copy of the PTOZ file up, it will automatically change what it displays. For instance, if you first upload the tournament after R1 is paired, the pairings will show blank results (except for byes). If you re-do the upload of the PTOZ file (which is the only thing you would need to do) after R2 is paired, it will show the results if R1 is selected or the pairings (again with blank results) for R2. The default for the round number is always the last round paired.
I'm sure someone who is more adept with JavaScript and CSS can probably improve on this.
I'm sure someone who is more adept with JavaScript and CSS can probably improve on this.
Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament
Pretty slick. I'm guessing (non-programmer here) that it would be quite a bit more complicated to add crosstables and/or standings?
Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament
Is there documentation you could share for the PTOZ format? I was very surprised to see that the options for result codes include +3 (which is apparently 1 point for player 1 but has no meaning for player 2) and -98 (apparently a 0 point forfeit for either player 1 or for player 2, so I assume a double forfeit).moderator wrote: ↑Fri Aug 23, 2024 3:03 pm This pulls the information out of a PTOZ (version 5 tournament) file so all you need to do is to write the content of the web page describing the tournament (in the "topDiv" near the bottom), change the file name in the loadZip instruction, upload the edited HTML file and the PTOZ file to your web site.
...I'm still not sure how a Forfeit Draw result would be recorded after looking at the sample page.
Last edited by ulmont on Fri Sep 13, 2024 4:09 am, edited 2 times in total.
Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament
That's what the "schema" page is on the help. However, it was missing a few of the result codes.
+3 is for a Pairing Assigned Bye, rather than a requested bye of any value. Requested byes are just +1,0,or -1 with the opponent being -1.
-98 is indeed a double forfeit.
+98 is the unplayed draw.
+3 is for a Pairing Assigned Bye, rather than a requested bye of any value. Requested byes are just +1,0,or -1 with the opponent being -1.
-98 is indeed a double forfeit.
+98 is the unplayed draw.
Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament
Thank you; I have found that on the help now.moderator wrote: ↑Mon Sep 30, 2024 7:48 pm That's what the "schema" page is on the help. However, it was missing a few of the result codes.
+3 is for a Pairing Assigned Bye, rather than a requested bye of any value. Requested byes are just +1,0,or -1 with the opponent being -1.
-98 is indeed a double forfeit.
+98 is the unplayed draw.