How to list standings, pairings and more using tsh.
Updated Tue Jul 12 11:42:32 EDT 2005 for tsh 2.960.
tsh has a number of commands for listing information about what’s going on in your tournament. All of this information is listed on your screen when you ask for it. Most of it is also saved as a printable HTML file in your event directory, and optionally as a printable text file and as an online HTML file in an automatically indexed web directory.
The configuration option
“no_text_files
”
controls whether or not text
files are created,
and the option
“html_directory
” controls whether and where
online HTML files are created.
To adjust the formatting of the HTML file, edit the
“tsh.css” stylesheet file.
Before each round begins, you need to print up pairings, showing who is playing whom where. If you are using Fontes Swiss pairings, these pairings will typically be available sometime in the middle of the preceding round, as soon as you have finished entering and checking the second preceding round’s results. You should post them as quickly as possible, so that anyone who finishes their game early will know right away who their next opponent is.
If you are using automatic pairings (and you should be), there may be a slight delay when you first display the pairings for a round, as tsh computes them. It is also possible that tsh might tell you that it can’t yet compute the pairings for a round, because all of the results it needs have not yet been entered. If you are not using automatic pairings, then see the section on manual pairings before displaying pairings.
You show pairings using the
“showpair round division
”
command.
To list pairings (e.g.) for round 5, division C, enter the command
“sp 5 c
”. (If you have only one division, you may
omit it, so you’d enter
“sp 5
”.)
As noted at the beginning of this section,
this will display on your screen who is playing whom where,
create a printable HTML file called
“C-pairings.html”
and optionally
create a text file called “C-pairings.doc”
and an online HTML file on a web server.
You can then either open the text file with a word processor, format it
if necessary and print it, or open the HTML file with a web browser
and print it directly.
If you have enabled the
“track_firsts
” configuration option, games where
tsh knows either who should go first or if a draw is required
say so.
If you are using OS/X, you can open the documents from a second Terminal
window using the
“open
” command.
You can also print them directly to your default printer using the
“lpr
”
command, though CSS formatting may not apply.
If you are using Windows, be sure to close whichever files you opened, or else tsh will not be able to update them again. Remember too that the files in your event directory contain whichever pairings you last asked for, so if you go back and look at round 3 pairings to check something, that’s what will be in the files, and it probably won’t be what the players want to see printed. The files in your web server directory (if specified) record information for each round separately, and keep track of the last displayed version of the pairings for each round.
You can show current standings using the
“standings division
” command.
Entering
“st c
” will give you the
current standings for Division C,
which you may want to print up once all the scores are in.
Its use is deprecated in favour of the
“rat
” command described below.
Files are created as with pairings.
The “ratings division
” command is a new command that does
what the “st
” command does, but also includes estimates
of new (Elo/NSA) player ratings.
“rat a
” will tell you what
Division A ratings would be if the tournament ended right now.
The rat
” command does not yet generate printing files,
nor does it split-rate 3-part tournaments or 1/3-rate
local club tournaments, but it will do so as
soon as someone asks me to implement these features.
Files are created as with pairings.
The “rat
” command requires the presence of two software libraries
called ratings.pl and
ratings2.pl in the tsh
directory.
You can show standings from earlier rounds using the
“roundstandings round division
” command.
Entering “rs 4 d
” will give you the
standings as of round 4 for division D.
This command does not generate printing files, as it is used mostly
to check past pairings, and because you will typically already have
printed copies of the standings for previous rounds.
The NSA web site accepts
“.t” files for ratings data submission.
There is a stopgap script that can be used at the shell prompt (in Unix)
to create a combined submission file for a multidivisional tournament:
“bin/nsa.sh ?.t
”, which
creates a file called
“all.t” from all files with single-character names and
extension “.t”.
In the not too distant future,
tsh will be better integrated with the NSA rating data
submission system.
The “tourney.pl” program can be used to produce detailed
tournament reports which combine standings, estimated ratings and
scores of all games. In Unix, enter
“tourney.pl a.t > a.txt
”
or
“tourney.pl -d 10 a.t > a.txt
”
(to split-rate after 10)
to create a file called
“a.txt” containing a report based on the data in
“a.t”.
You can show standings based on a range of rounds using the
“resultsbyround firstround-lastround division
” command.
Entering “rbr 1-7 b
” will give you the
standings based on the first seven rounds for Division B.
No printing files are generated.
This command is typically used to compute "best result day n" prizes.
There are external commands for computing high and low win and loss.
For example,
“high-win a
”
lists the top twenty game scores in division A, the rounds in which
they took place, the losing score and the names of the players involved.
There is an external command for computing the NSA’s
“Tuff Luck” prize based on the lowest total of six
losing spreads:
“tuffluck a
”
lists the
“Tuff Luck” standings for Division A.
If you run a rotisserie pool, you can use the
rotofile configuration option to specify
the location of a text file giving the structure of that pool.
At present, that structure must resemble that of Scott Pianowski’s
BAT pool, but I’ll be happy to generalise it on request.
Each team is represented by a list of names, followed by a blank line.
The team owner’s name is preceded by the word
“owner
”
and a space,
each team member’s name is preceded by the word
“player
”
and a space.
tsh includes commands for producing electronic versions of player scorecards and tournament wall charts. These were originally intended to allow you to check these documents and correct your data. As of 2005, the only official version of the tournament results is deemed to be the data that you entered from the result slips, so these commands should be used only to point out and explain errors in the printed documents, or to replace a lost scorecard at a player’s request.
You can show a scorecard using the
“showscorecard division player
”
command.
Entering
“sc j 5
”
will give you the scorecard
for player J5.
A file called
“J-scorecard.html”
will be created, which can be printed and given to a player who has
lost their original scorecard.
Scorecards are also displayed whenever you use the
“editscores
”
command.
When a score has been added to a scorecard within the last two hours,
the age of that modification in minutes is shown at the top of the card.
This is to help determine whether an absent player may be away taking
a break from a game that ran unusually late.
You can show a wallchart using the
“showwallchart division
” command.
Entering
“wc g
”
will give you the wall chart for division G.
Files are created as with pairings.