Page 1 of 1

Simple Web Page for Displaying Pairings in Multi-Section Tournament

Posted: Fri Aug 23, 2024 3:03 pm
by moderator
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.

Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament

Posted: Sun Aug 25, 2024 1:34 pm
by joepye
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

Posted: Thu Sep 12, 2024 8:13 pm
by ulmont
joepye wrote: Sun Aug 25, 2024 1:34 pm Pretty slick. I'm guessing (non-programmer here) that it would be quite a bit more complicated to add crosstables and/or standings?
Crosstables aren't that tough, and standings are just crosstables until you add in the tiebreaks.

Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament

Posted: Thu Sep 12, 2024 8:32 pm
by ulmont
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.
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).

...I'm still not sure how a Forfeit Draw result would be recorded after looking at the sample page.

Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament

Posted: Mon Sep 30, 2024 7:48 pm
by moderator
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.

Re: Simple Web Page for Displaying Pairings in Multi-Section Tournament

Posted: Wed Oct 02, 2024 3:57 pm
by ulmont
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.
Thank you; I have found that on the help now.