Guide › Running a tournament
Running a tournament
A running or opened tournament has a workspace with a header (name, progress, Pause, Stop, Clone, Folder, Layout) and panels, shown by default as tabs:
| Tab | What it shows |
|---|---|
| Overview | The results so far and the statistics, the charts, the submission checklist |
| Standings | The standings as a table or a crosstable, an engine’s opponents, the copies for a forum |
| Teams | A team match: the teams’ score and the crosstable of the two teams |
| Bracket | A knockout: the bracket, round by round |
| Schedule | Every game pair, and the changes to the tournament |
| Broadcast | Live files, the TLCS server, the web page and lichess |
| Live | The games in progress |
| Games | The finished games, their filters, their replay and their export |
| Openings | The results by starting position |
Overview
A match: Elo and nElo with their 95 % confidence interval, LOS, score, pentanomial counts, SPRT bounds and LLR. Statistics (folded) gives fishtest’s numbers from the games and from the pairs: score, Elo, nElo and BayesElo with DrawElo, standard deviation per game, LLR of both, the variance ratio of pairs to single games, the RMS bias of the openings, the kinds of balanced pairs and the pairs won over lost, which Copy includes. Then the charts: Elo and LLR over time, game lengths, how games ended, and Search per engine.
A tournament: the standings (with TF, each engine’s losses on time, in orange as soon as there is one; a ! beside an engine that crashed or played an illegal move), the Elo of each engine with its 95 % interval as a chart under them, then Search per engine, progress by cycle or round, games per hour and time left, the latest results.
Search per engine gives each engine’s average over the moves it searched, book moves left out: depth, NPS, time per move, decision time and processor use; a click on a column sorts the engines by it. Beside its NPS, ×4 says the engine searches with 4 threads: it counts more nodes than on one without being any faster, so compare its NPS with engines that have as many. The NPS needs engines that give it, and nps in PGN and misc to be read back on a resume.
Both count the games from unbalanced openings, and the openings replaced, when the setup looks for them, with Show for those games. A finished tournament adds a Submission checklist: all games played, every pair with both colours, no duplicate games, no crashes, time losses or illegal moves (with buttons that open those games), the hash of each engine (shown, not judged), ponder off, the opening book, the tablebases.
Standings
Points, games, losses on time (TF), wins/draws/losses, ratings with their confidence interval, Sonneborn-Berger (Buchholz for a Swiss), byes. Table lists them one engine per row; Crosstable (round robins, up to 200 engines) shows every pairing. Order: by points, score % or seed order (which keeps the columns of a gauntlet’s crosstable in place). A click on an engine lists its opponents below: games, with White, with Black, + = −, points and %, with the pairs of which only one game was played marked; a gauntlet opens with its seed selected.
Copy as text, or as BBCode for a forum post (with a line giving the format, time control, games and book), and in a
gauntlet Gauntlet table as text or as BBCode, for a forum (the seed, then its opponents by their own points, each
with points, %, Elo ±, W-L-D); Export HTML…. All have TF like the headless mode’s standings, follow the order
chosen, and end with a line giving the games played of those planned, the draw rate, time control, book (with the
plies kept of a PGN book; for a Polyglot book its depth and how its moves were chosen, e.g. book:Perfect2023.bin (8 plies, moves by weight)) and event. The copies then sign with RookStudio and its version, and the gauntlet table
is ruled with = rather than -, so that a table posted on a forum is told apart from those of other programs.
Teams
A team match only, in the Standings tab (where it opens) and atop the Overview: the teams’ score, “Lynx 17½ – 18½ Otter”, with the games played, team A’s score %, the Elo difference that score stands for with its 95 % interval and the LOS, counted on the pairs of games as the statistics of a match are (pentanomial); then each team’s engines with their games, points, %, rating and the points each scored against each engine of the other team (B1, B2… as columns, the name at the cursor): the crosstable of the two teams. Table and Crosstable show the engines as in any tournament. Copy and Export HTML… give the teams’ scores and both teams’ engines against each other, with the line under them.
Bracket and Schedule
Bracket, a knockout only: the bracket, round by round, with the score of every match. Schedule: every game pair by cycle or round, with its state and the opening it plays (once started, or once its round started when the round shares one), and the changes to the tournament (see Changing a running tournament).
Live
The games in progress, as a mosaic of boards or one game in focus with the clocks, the running search of each engine
(depth, score, nodes, nps, PV in SAN), the move list and the game graph (see The game graph): the
two engines’ evaluations, and in its tabs their win chances, time per move with the decision time, depth with
seldepth, nodes, speed, tablebase hits, how far apart they are, or how many plies a PV repeats of what the other
engine’s PV predicted. The win/draw/loss shares (UCI_ShowWDL, switched on for the engines that have it when they are
added) follow each search line; the WDL tab draws them as bands, White’s wins at the bottom.
Given the room (one game in focus, a large panel), each engine has a card: its logo as high as its name and clock (when the logos are on, see Appearance), what it does (thinking, or the move it played), its search figure by figure (depth and seldepth, score, nodes, speed, the tablebase hits and the hash fill when the engine sends them, the time spent on the move so far) and its whole PV; the engine that waits shows what it said when it played, with the moment it settled on its move. Beside the mosaic, the panel keeps one line of figures and the PV’s first 12 plies. Score of the side to move | Score of White, at the right of the tab, sets the side of every score in it: the side to move’s, as fastchess writes them in the PGN, or White’s; the evaluation bar and the big screen are always from White’s side.
Above the moves: the opening, the ECO code and name of the deepest position of the game that the table of named openings has (book and engine moves alike, so that a transposition after the book is named too), with the book’s last move; and once the tournament’s Syzygy tables (its adjudication’s, else those given to the engines) know the position shown, their verdict: the side that wins with the DTZ (the half-moves to the next capture or pawn move: Syzygy tables have no distance to mate), or a draw, the 50-move rule counted from the game’s own counter unless the adjudication ignores it. Each position is probed once, outside the threads that play the games. In the list, each engine move has its score, depth and time; hovering over it adds the moment the engine settled on it and the reply it expected (the second move of its PV: fastchess plays without pondering). Book moves say book, a line marks the end of the book, and the move being thought of says thinking.
The mosaic has a board for each game the tournament has played at once, not for each game the concurrency allows: with fewer games than that, the boards grow. A board whose game ended keeps its final position until the next game of its slot starts there: near the end of a tournament the boards stay in their places, each with the end of its last game. When the boards would need a scroll bar, the mosaic takes width from the game in focus, down to 40 % of the page for it.
Under the board: the 50-move counter (plies since the last capture or pawn move, out of 100), the material difference with the pieces one side has more of, and the pieces left, marked TB when the tablebase adjudication can end the game; Details under the boards adds them to the mosaic. Under them, the buttons through the moves (see Boards and their buttons): the game in focus, or a detached board, can be stepped back while it goes on (also with ← → Home End, a click on a move of the list or on the curve), the earlier position shown with its move marked in the list and on the curve; Back to the current move (or End, or a click on the last move) makes it follow the game again, as it does at each new game.
Arrows (on by default) draws the move the side to move is thinking of in its engine’s colour and the reply it expects, lighter, in the opponent’s colour, on the board in focus and the detached ones (not the mosaic), when it shows the current move. In a gauntlet, Seed at the bottom (on by default) shows each new game from the seed’s side; flipping the board (F, or its button) still turns it over until the next game. Detach opens a board in its own window. A right click on a board ends its game with a result (see Changing a running tournament). Big screen shows the game followed filling the window (see Big screen).
Big screen
For a television, a club or a stream, Big screen (in the Live tab, on a detached board, or in the command palette) shows one game filling the window, light on black: the players’ names and clocks in large type (the side to move and its running clock in yellow, a clock under ten seconds in red), the evaluation bar, the evaluation, depth and speed of the search, the last move framed on the board and written large, the opening, the engines’ lines (Lines, on by default: the side to move’s as it searches, in yellow, the other’s from its last move, two lines each at most), the tablebases’ verdict once they know the position, and the moves in large type, the last one marked; the result over the board once the game is over. Its text follows the size of the window and has a size of its own (A- / A+, or the + and - keys). It shows the game followed, or switches between the games in progress every N seconds (Every game in turn), or follows The most interesting one: the closest to level, the longest of those as close, kept while it stays so. The controls show for three seconds when the mouse moves (the pointer hides with them); ← and → change the game, F11 makes the window full screen, Esc leaves. A detached board moved to another screen (the television) shows it in its own window, F11 making that window full screen while the main window goes on; docked in the main window, the main window shows it.
Games
The finished games with their opening (ECO code and name), and a replay board: the buttons under it, ← → Home End
and F, or a click on a move or on the graph; the same details under it and the same game graph as in Live (see
The game graph), from the fields the PGN was written with: a chart whose field the tournament did
not write is in the graph’s ⋯ menu, greyed, and says so with a button to the PGN options of the setup.
Filters: by result (wins, draws, losses, losses on time, crashes and illegal moves, adjudications, wrong PVs, and
the games of an opening flagged unbalanced when the setup looks for them); by what the evaluations tell (the engines
disagree by N pawns for 3 moves each in a row, an engine’s evaluation swings by N pawns from one of its moves to the
next, the loser thought it was N pawns better; the game opens at that moment); and by opening (an ECO code or its
beginning, a range such as B20-B99, or words of the name).
Export of one, all or the filtered games: Export all proposes <name>.pgn next to the tournament’s folder; the
tournament’s own PGN files are refused as a target. Export for a rating list… writes the games as rating list
testers (e.g. CCRL) send them: [Tester YYYY-MM-DD] Event (hash NMB) (book X) (egtb N-man).pgn, a zip too if asked;
the players named as the lists write them, <engine> 64-bit 4CPU (editable for each participant), the rounds
numbered again, the Event and Site tags set, the voided games and the duplicates left out, and those lost by a
crash or a stall too unless unticked; the PlyCount of a game lost by an illegal move counts only the moves written.
The tester and the site are remembered.
Engine log opens the log of a game that has one (see Files). A right click on a game plays it again, voids it or sets its result (see Changing a running tournament).
The Openings tab
Results by starting position: its game pairs, White’s score, the draws, and how many pairs White won twice, Black won
twice (the opening favours a colour) or one engine won twice (it tells the engines apart), with the average length.
Sorted by any column, filtered to the unbalanced, the drawn or the decisive ones, or to those Flagged unbalanced
during the games (see Openings in the setup: marked !, their number beside the count, with the
openings replaced). Export as EPD… writes the positions shown, to keep them or to clean a book, Without the
unbalanced (on by default, shown once an opening is flagged) leaving out the flagged ones. A click shows the position
and its games. In a match whose Colours are locked, each game has an opening of its own: the count is of games, and
the columns and filters about pairs are not shown.
Panels and layouts
Every tab is a panel. Drag one by its tab to dock it on a side of another panel or as a tab next to it, or drop it elsewhere to float it (also onto a second screen on Windows and Linux/X11, not on Wayland nor with software rendering). The game followed in Live comes apart in Board, Players, Searches, Moves and Chart panels; the parts that have no panel open stay beside the mosaic in Live, and detached boards dock like the other panels. Close a panel with the x on its tab; bring it back from Layout > Panels, or with Show … in the command palette, and it comes back docked.
Layout also offers ready-made layouts (Tabs, as by default; Follow a game: the board on the left, the players,
searches and chart on the right, the standings under them; Large tournament: the mosaic beside the standings;
Broadcast: a large board with the players, searches and standings), Save the layout as… (your own, by name, kept
in layouts.json in the profile), Delete and Default layout. A panel taken out of the workspace stays on screen
on the other pages; the arrangement is kept between sessions.
Processor use
While games are played, the processor time of every engine’s processes (the engine behind a WinBoard adapter
included) is measured at each go and each move. The Overview shows, for each engine, the cores it keeps busy while
it thinks and the share of a core it uses while its opponent thinks, and warns when an engine uses clearly more cores
than its Threads, or thinks on its opponent’s time (pondering it was not asked for, a background thread): what makes
a game unfair to the opponent and to the other games running. It needs 20 s of each to tell, and counts every game
played, in the window or headless (--run): what each game’s engines used is written to processor.tsv in the
tournament folder, so a resume keeps it. It only warns; it never decides a game.
Pause, stop and resume
Pause starts no new game pair. Games in progress play to the end, and so does the second game of a pair whose first game has started, so a pause never throws a result away. Resume continues. Stop either finishes the running games first, or stops now (the interrupted games are not counted and will be played again).
A tournament stopped by an engine says which one in its header and on the Tournaments page, under Needs action: Interrupted: Alpha could not start: … (after its last try), or Alpha crashed or stopped responding (game 12) (without Restart an engine that crashes), with Open the engine and Open the log.
Every tournament resumes exactly where it stopped, after a stop, a closed window, a crash or a power cut: no game is
lost and none is played twice, and a half-played game pair is completed with the same opening and colours. Resume on
the Tournaments page continues it, with the statistics of the games already played: results, and the engines’ depth,
time per move and NPS read back from the move comments (NPS only when the PGN records it, nps in PGN and misc). When
the program ended while a tournament was running (a crash, a power cut, a reboot, or quitting while it ran), the next
launch resumes it by itself, and the queue goes on after it: Resume at launch the tournament that was running, in
Settings, on by default. A tournament paused or stopped waits for you, and --autostart starts the saved setup
instead. A participant whose program was rebuilt or went missing since it joined is named in the header of the resumed
tournament, with Continue and Pause: its next games are played by the program as it is now, with the options the
tournament gave it.
Several tournaments at once
Several tournaments can play side by side: a gauntlet beside an SPRT, two gauntlets at a time. Start on the New
tournament page starts another one while some play; Resume resumes one beside them. Each tournament plays in a
process of its own (rookstudio --run <folder> driven by the window), so a crash takes down that tournament only,
and the window, its engine checks, quick tests and test suites no longer wait for a tournament to end.
The workspace has a tab per open tournament, above its header: a dot while it plays (a pause sign while paused), its
status at the cursor, a cross to close one that does not play. The panels show the tab chosen; the command palette lists
the others (Show …, Pause, Resume). A finished tournament opened from the list takes the tab of one only looked
at. The Tournaments page has a card for each tournament playing, with its progress, its leader, Open and Pause, and
under them its weight, the cores its games use of those it may use, and what its next game waits for; the Cores
bar at the top shows each tournament’s part (and the Board page’s), and how many cores the tournaments share. The Log
shows the lines of one tournament, of the window, or all (each line of a tournament carries its name); a tournament’s
lines are also kept in rookstudio.log in its folder.
Sharing the machine: the tournaments playing share a budget of cores, set in Settings (Cores for the
tournaments: the physical cores less one by default). Each gets one game’s worth first while the budget allows, the
heaviest weight first; the rest goes by weight (a tournament of weight 2 gets twice the cores of one of weight 1),
none above its own concurrency, what one cannot take going to the others. A game counts as the Threads of the
larger of its two engines: one thinks while the other waits. A paused tournament keeps only what its running games and
the second games of their pairs need. A smaller share never interrupts a game: the tournament plays fewer games from
its next one. A tournament alone plays as many games as its concurrency says.
Memory: a game starts only when the Hash of its two engines, and what each engine process takes besides (64 MB,
and 8 MB per thread), fit in what the games playing leave of the memory budget (Memory for the engines in
Settings, 75 % of the installed memory by default), shared between the tournaments. The setup summary says how
many games the budget lets play at once, and the Tournaments page’s Health card when games wait for memory.
Cores outside tournaments: the same choice as a tournament’s Cores, in Settings, for the engines started outside a tournament: those of the Board, Training and Play pages (analysis, games, training), the Lichess bot, the engine console and the suites. Each engine takes it as it starts; one already running keeps its cores.
GPUs: an engine marked Uses a GPU on its card (a network engine such as Lc0) counts against the GPUs of Settings: no more such engines play at once than there are GPUs, in a tournament and across tournaments, while the other games play beside them. The setup summary says how many games with a GPU engine that allows, and warns when no GPU is counted, or when a game between two GPU engines needs more GPUs than the machine has (it then plays alone).
Keeping them running: closing the window while tournaments play asks what to do. Keep them running and quit (the default) leaves each one playing in its process; the window shows them again, as they stand, at its next launch. Stop and quit stops them, each to be resumed exactly where it stopped. The quick test stops either way. A tournament whose process is gone by the next launch (a reboot, a crash) is resumed as any interrupted tournament. The broadcast of the Broadcast tab runs in the window, for the tournament shown: for a broadcast that goes on without the window, start the tournament from a terminal with the broadcast options (see Headless mode).
An engine that cannot start
A night left alone does not stop on one engine. An engine that does not start (a program moved or rebuilt, a network file missing, a drive gone) is tried again three times, 10 s apart; then its games are set aside and the other games go on. It is tried again every 5 minutes, one game at a time, and its games come back as soon as it starts. The tournament header and the Tournaments page (under Needs action) say which engine, the error, and offer:
- Try again: at once, rather than at the next try (after fixing the program, say).
- Withdraw… and Replace… (round robins, gauntlets and team matches): the Schedule tab’s change panel, set for that engine, with the impact shown before anything changes.
- Engine log:
logs/start-<engine>.login the tournament folder, what was sent to the engines of its last try and what they answered, their error output included (often the reason: a library or a network file not found).
The log and the desktop notification say when an engine is set aside. The tournament stops only when nothing is left to play without the engines set aside, after one last try of each; its status and the notification at the end say so (Stopped: no game is left to play without …), and the queue goes on with the next tournament. Resume tries every engine anew. A pause holds the tries. Stop the tournament when an engine cannot start, in the setup’s PGN and misc, stops it at once instead, once the tries are used up.
Changing a running tournament
The Schedule tab’s Change the tournament panel works without stopping anything: running games go on and no played game is lost. Each change shows its impact before it is applied.
- Add an engine: it plays the cycles already started (Catch up) or joins from the next cycle.
- Withdraw an engine: its remaining games are dropped; its games played so far count or not.
- Replace an engine: its games stop counting and are played again by the new engine.
- Number of cycles: more or fewer.
- Play games again: every game of an engine, or the losses on time and crashes.
- Right click on a game (here, or in the Games tab): play it again, void it (no replay), or set its result.
An engine added or brought in plays with the tournament’s settings (its time control, Hash and Threads, shown under the engine), or with Settings of its own: Hash, Threads, share of the time (or nodes, depth), as a participant’s own settings on the setup page. A tournament made before 0.6.6 did not record its settings: those of its first engine stand in for them, which may have been its own.
In a team match an engine added joins the team chosen and plays every engine of the other team; board by board an engine cannot be added (its board would have no opponent): replace one instead. A replacement takes the team and the board of the engine it replaces; more cycles pair the engines still playing (board by board, on the boards of the first cycle). The games a withdrawn or replaced engine played still count for its team, unless they are voided.
Set the result decides a game the program could not decide well: a hang it did not catch, a won ending the
engines keep shuffling, a game that ended for a wrong reason. Choose 1-0, ½-½ or 0-1 and give a reason; the points it
moves are shown before Set the result applies it. The standings, the crosstable, the ratings and the submission
checklist count the new result (an adjudication: a loss on time set to a draw no longer counts as one); the Games
tab marks it with a *, its tooltip giving the reason and how the game ended as played, and Back to the result as
played takes it back. A game being played is ended the same way: right click on its board in the Live tab, End
with result (also in the command palette for the game followed). The engine on move is stopped, fastchess ends the
game at once and it counts with the result chosen; the engine starts again for its next game. It needs Restart an
engine that crashes (setup, PGN and misc, on by default).
Voided games and results set by hand stay in the PGN files and the journal as they were played: the PGN files are
only ever appended to. What reads the games applies them: voided games are left out, and a result set by hand is in
every export (Export game…, Export all…, Export for a rating list…, the head-to-head export of the Ratings
page, the file of Also append every game to) with [Termination "adjudicated by the operator"] and the reason in a
comment before the result. Undo the last change is offered until the next game starts: nothing has been played
under the change yet, so it can be taken back exactly (games that were already running when it was made are kept). A
result set by hand can be undone as long as it is the last change, games played since or not (in a knockout, whose
next rounds follow from the results, until the next game starts); the Games tab offers Undo beside the game too.
Queue and relaunch
The Queue on the Tournaments page holds tournaments to play one after the other: when one ends by itself, the next starts (not after a stop or an error, nor while Pause all holds the queue). With Start when cores are free, the next one starts beside those playing as soon as the budget of cores is more than they can take, each at its concurrency. They can be reordered or removed, and the first started now when nothing runs. The Tournaments page tells when the running tournament ends (Ends about HH:MM (in …)) and when the whole queue does, each queued tournament with its length and, while the lengths before it are known, when it starts; the tournaments whose length cannot be known (an SPRT without a maximum, nodes or depth per move) are counted apart.
Relaunch with… on a finished match (in its header, or under Last finished on the Tournaments page) plays it again with another engine A, typically the next version, against the same engine B, with the match’s other settings (those of the New tournament page for a match started by an older version, which did not keep them).
Clone (in a tournament’s header, under Last finished and in All tournaments on the Tournaments page) opens the New tournament page filled with that tournament’s setup, whatever its format: the participants with their own settings, the time control, the openings, the adjudication and the rest, every value as it played. Its profiles are named, and one changed since is marked as changed for this tournament. Change what should differ (another time control, the next version of an engine, another book), then Start or Add to the queue. A tournament still playing can be cloned too; one started by an older version, which did not keep its setup, cannot.
Checking the endgames against the tables
A finished tournament’s menu, a right click on its header or on its row on the Tournaments page (or Ctrl+K), has Check the endgames against the tables: the games that reached seven pieces or fewer, each result set against what the tablebases say. The answer comes in a card under the tournament’s header, “12 games reached seven pieces or fewer: 3 wins let slip (Alpha: 2, Bravo: 1), 1 lost position held, 2 draws adjudicated in a won position”, with a row for each finding, Open showing its game in the Games tab at the move it is about:
- a win let slip: an engine’s move after which the tables no longer give it the win (a draw, or the other side’s win); a draw let slip: an engine’s move after which they give the other side the win;
- a lost position held: a game drawn by the rules (a threefold repetition, the fifty-move rule) while the tables still give one side the win at its end;
- a draw adjudicated in a won position, by the tournament’s draw rule or its move limit, and a win adjudicated against the tables, by its resign rule. The tables’ own adjudication agrees with them; a game lost on time, by an illegal move or by a crash is judged on its moves only.
A few positions a game are asked: the first one the tables can tell and the last, and when their verdicts differ, a bisection between them to the move that changed it (about ten positions for a long endgame). Your tables on the disk first (see Tables for the endgames), then the answers Lichess gave before, kept in your profile, then Lichess’s 7-piece tables for the rest, once allowed: for this check, always, or not now (each position’s FEN goes to tablebase.lichess.ovh, without an account), one request at a time, each answer kept for good. Without them, the games your disk’s tables cannot tell are counted as left unjudged. Nothing of the tournament’s page changes before the click.