Simple Web Page for Displaying Pairings in Multi-Section Tournament

Discussion of displaying pairings on web page
Post Reply
moderator
Site Admin
Posts: 4
Joined: Thu Aug 22, 2024 2:08 pm

Simple Web Page for Displaying Pairings in Multi-Section Tournament

Post 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.
joepye
Posts: 1
Joined: Sun Aug 25, 2024 11:49 am

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

Post 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?
ulmont
Posts: 3
Joined: Sat Aug 24, 2024 2:22 pm

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

Post 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.
ulmont
Posts: 3
Joined: Sat Aug 24, 2024 2:22 pm

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

Post 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.
Last edited by ulmont on Fri Sep 13, 2024 4:09 am, edited 2 times in total.
moderator
Site Admin
Posts: 4
Joined: Thu Aug 22, 2024 2:08 pm

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

Post 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.
ulmont
Posts: 3
Joined: Sat Aug 24, 2024 2:22 pm

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

Post 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.
Post Reply