Guide › New tournament

New tournament

Tournaments → New tournament opens the setup: a card of folded rows saying how the games are played, the participants with the engine library beside them, and a live summary on the right (number of games, games per engine, estimated duration, openings, common settings, time odds). The setup of the last tournament is kept, so testing two versions of one engine again is: choose A and B, Start.

Everything on the page can be done from the keyboard: Tab and the arrows move between the rows, the lists and the buttons, Enter or Space opens a row or a list, and the keys of the participants and the library work there. Start creates the tournament and plays it; Add to the queue keeps it for later (see Queue and relaunch).

The summary and its checks

The summary gives the memory the hash tables can take: two engine processes per game played at the same time, and the engines waiting for their next game, each with its Hash. Above the free memory it warns (the system will swap), naming the engine with the largest Hash; above the memory installed the tournament does not start. --run says the same. When the memory budget of Settings lets fewer games play at once than the concurrency, the summary says how many (each game takes the Hash of its two engines and what their processes take besides), and so does the Concurrency row; the same for the games with an engine that uses a GPU, against the GPUs. It also names the engines whose program changed since their last tournament (a new build), with What changed when the engine’s card lists new defaults or options (see Rebuilt programs).

What would go wrong is said with the engine, the resource and the fix, a button under the line (the command palette lists the same fixes):

  • a program or a working directory not found: Open the engine (its card on the Engines page), Locate…; an opening book not found: Locate…;
  • an engine whose own Threads (its setting, else its default: some engines take every core) is above the threads each game has with the games played at once (the physical cores with a clock and several games at once; every hardware thread for a game alone, whose two engines think in turn), or above half the hardware threads when several games play at once: Lower Threads to N sets the engine’s option in the library, Open the engine. Threads given by the setup beyond the machine get Lower Threads where they are given (the participant’s cell, the common settings). When one game at a time would hold them, Play one game at a time sets the concurrency to 1 instead, the engines keeping their threads. The participants list marks such an engine with a !, the match’s engines are flagged under them;
  • an option value an engine refuses (out of its range, not one of its choices, an option it no longer has): fastchess does not send it, and the engine plays with its default;
  • the Syzygy tablebases the tournament uses: the adjudication’s folders and what each engine’s SyzygyPath points to (several folders separated by ; on Windows, : elsewhere). For the pieces used (the adjudication’s Max pieces, else the largest tables found), every WDL file (.rtbw) must be there, and no file cut short (a Syzygy file is 16 bytes more than a multiple of 64 long; engines leave out a file of another size, and some stop when they meet it): Syzygy 6 pieces: 14 files missing in D:\TB (KRPPvKR.rtbw…), Adjudication up to 6 pieces, but only 5-piece files found, SyzygyPath of Alpha points to a folder with no tablebase files, with Open the folder and Lower to 5 pieces; the tooltip lists the files. These are warnings: the adjudication and the engines do without the missing files. Only an adjudication without a folder, or whose folders hold no table, stops the tournament at its start (fastchess refuses it): Locate… chooses another folder. The folders are read in the background, and again every few seconds while the summary is shown.

A start refused names the same problems, with their fixes and Open the log. Each problem has a ? that opens its entry in Troubleshooting.

Profiles and templates

Profiles. The first five rows, Format, Time control, Openings, Adjudication and Engine settings, are each a named profile: its list chooses one, the line beside it says what it plays (“40 moves in 15 min, repeated”, “draw 40/8/10 cp · TB 6 pieces”; its tooltip gives the same as cutechess and fastchess write it, tc=40/900, -draw movenumber=40 movecount=8 score=10), and ✎, or a click on that line, opens the details in place under it. A change made for this tournament only puts a dot beside the profile, and its list and its details offer Update (the profile takes the change, for every tournament and template that uses it), Revert and Save as profile… (under a new name). The program comes with presets:

  • time controls: 10+0.1 and 60+0.6 (fishtest’s short and long tests), 2+1, 40/4, 40/15 and 40/20 (40 moves in 4, 15 or 20 minutes, repeated, as rating lists play them), and 200k nodes per move;
  • formats: SPRT gainer [0, 3] and non-regression [-5, 0], a match of 1000 games, a round robin, a gauntlet, a Swiss of 9 rounds, a knockout and a team match;
  • adjudications: none, a standard one (a draw from move 40 after 8 moves within 10 cp, a loss after 3 moves at 600 cp) and the same with the tablebases up to 6 pieces;
  • engine settings: each engine’s own, or Hash 16, 64 or 256 MB with 1 thread and the engines’ own books off;
  • openings: no book, or Chess960’s 960 positions.

A profile of yours saved under a preset’s name takes its place; deleting it (from its list, after a confirmation) brings the preset back, and the setups and templates that used it keep its values. Profiles are kept in profiles.json in the profile folder, and the command palette (Ctrl+K) lists them: choosing one applies it to the setup. The palette also opens each row of the setup by its title, and loads or saves templates. The Syzygy directories are in no profile: they belong to this computer, and the adjudication and the engines share them. The Concurrency and PGN and misc rows hold what is this tournament’s only.

Template and Name, beside Start: a template is the whole setup, a profile for each section plus what no profile holds (the name, the participants, the concurrency, the PGN files, the broadcast). The menu loads one or saves the setup as one (Save the setup as a template…, which asks before replacing a template of the same name), and the command palette loads them too. A section that played as its profile when the template was saved follows that profile, so updating a profile updates every template that uses it; a section changed for that tournament keeps its own values. Templates saved by earlier versions load as they were, and their sections get the profiles they play like. An empty name is made from the engines.

Format

The tooltip of each format says what it is.

  • Match: two engines, A (the engine under test; every statistic is from its point of view) and B (the baseline). A fixed number of games, until you stop it, or an SPRT: elo0, elo1, alpha, beta, model (normalized uses nElo bounds like fishtest and OpenBench, logistic classic Elo, bayesian BayesElo) and an optional maximum number of games. The SPRT gainer and non-regression profiles give the usual bounds, and the line under the bounds tells how many games the test is likely to last. Calculator… draws, as fishtest’s SPRT calculator does, the probability that H1 is accepted and the expected number of games against the true Elo difference, from an expected draw ratio and the RMS bias of the openings; Use these bounds copies the bounds it was given back to the setup. Elo bias (0 by default) is added to both bounds, to test against a version known to be stronger or weaker by that much: [0, 3] with a bias of 5 gives the SPRT [5, 8], which the summary, the overview and the headless mode write SPRT [0, 3] + 5; the calculator and the line under the bounds take it into account. Min games (0, none, by default) holds the decision until that many games are played, the LLR still computed and shown, to guard a short test against an early lucky stop: an LLR beyond a bound before then is said under the LLR bar and the match goes on; once the games are there, the next pair that ends with the LLR beyond a bound ends the match. A maximum of games below the minimum ends the match without a decision. This is the quickest way to compare two versions of an engine, and nothing else is needed. Colours (Alternate by default) says who has White: A and B in turn, or A always White or B always White, as fastchess’ -noswap (and -reverse), for odds games where the stronger engine must always have the handicapped side, or an opening tried from one side. The games still go in pairs, both with the same colours, but each game has an opening of its own, the next of the book (as fastchess’ -games 1): the pairs and their statistics stay, the score includes White’s advantage, and the RMS bias, which reversing the colours cancels out, is not shown. The summary and the match’s header say it.
  • Round robin: every engine plays every other one, Cycles times, each time two games with colours reversed (what cutechess calls rounds, of 2 games per encounter). The rounds follow Berger tables, so every engine plays once per round.
  • Gauntlet: the first Tested engines (the seeds) play every other one, the others do not play each other.
  • Swiss: a number of Rounds. Each round is two games, colours reversed, against an engine with a similar score; nobody meets the same opponent twice when it can be avoided. With an odd number of engines, the lowest ranked engine without a bye yet gets one, worth a point.
  • Knockout: engines are seeded in their list order, the top seeds get the byes when the field is not a power of two, and the first two seeds can only meet in the final. A match is Game pairs per match pairs of games; a tied match gets one more pair at a time, up to ten, after which the higher seed goes through.
  • Team match: two teams of engines, to compare one family of engines, or a set of versions, with another as a whole. Pairings: Everyone against everyone, every engine of a team against every engine of the other team, one opponent per round (a Scheveningen system; the teams may differ in size), or Board by board, the first engine of each team against the first of the other, the second against the second and so on (teams of the same size). Each pairing is played Cycles times, each time two games on the same opening, colours reversed; the colours of the first game alternate from board to board and from one cycle to the next. Team A and Team B name the teams (“Team A” and “Team B” without a name); beside them, how many engines each has. The teams are made in the participants list: the upper half of the list is team A, the lower half team B (team A gets the odd one), until engines are put in a team.

Participants and the library

Participants, with the Library beside them (under them in a narrow window). Each participant is a line: its place (a star for the seeds of a gauntlet), its name, its reference Elo, what it plays differently from the common settings (“Hash 512 MB · 80 % of the time”) and ⋯, highlighted when it has settings of its own. ⋯, a right click, or the Menu key opens them: its own Hash, Threads, fixed nodes or depth, time odds (a percentage of the time control, for a clock), its own Book, This engine once more, with another book, the moves and Remove. The list order is the seeding: drag participants to reorder them (seeds first), or press Ctrl+Up or Ctrl+Down to send them to the top or the bottom, Alt+Up or Alt+Down to move them by one. Ctrl or Shift click selects several; Delete (or Remove) removes them.

In a team match the place is the team and the board, A1, A2… for team A, B1, B2… for team B, in the list’s order (board by board, A1 plays B1). The ⋯ menu puts the participant in a team; Team A and Team B under the list put the participants selected in one, and Halves makes the teams again from the halves of the list (the command palette offers the same). An engine added once teams are chosen joins the smaller one. The summary says how many engines each team has, and a start is refused, with the reason, when a team is empty or, board by board, when the teams differ in size.

The library lists the active engines with their reference Elo, sorted by name or by Elo (click the column), a ! on those with a problem (program missing or rebuilt, last check failed: the tooltip says which) and a ✓ on those that play already. The filter searches the names, the names the engines report, their authors, programs, notes and groups (Ctrl+F gives it the keyboard; Enter in it adds the engines selected, or the first one shown); a chip per group shows only that group, and Add all shown adds the whole group. Double-click an engine, or select several with Ctrl or Shift (Ctrl+A: all those shown) and press Enter, to add them; or drag them to a place among the participants. Suggest… selects the N active engines that work and whose reference Elo is closest to the first participant’s (the engine under test of a gauntlet), 150 at most away by default; Enter adds them. For a match, the library fills A, then B (B is replaced when both are chosen), and an engine dragged onto A or B takes its place.

Participants’ own books

Book: an opening book of the participant’s own, like Cute Chess’ book=/bookdepth=: a Polyglot (.bin) or PGN book of the Books page and how deep it is followed, in plies from the start of the game, the tournament’s opening included (all: as long as the book has a move; for a PGN book, its games’ first 40 plies). A PGN book is first turned into a Polyglot book: each game’s moves up to that depth, each move weighted by the number of games that play it; games with an illegal move are left out and counted. This runs in the background as soon as the book is chosen (progress on the Book button, in its popup and in the summary) and is kept in the profile’s book-cache folder until the file or the depth changes; a start that comes before the end waits for it. A book that cannot be prepared shows why in its popup, with Try again; each start also tries again. A tournament plays from the book prepared when it was started or resumed, even if the PGN file changes meanwhile.

While the position is in that book, the participant plays the book’s move at once, chosen by the book’s weights as the Randomness of the openings makes them (also in the Book popup, the same for every book of the tournament: see Openings); then its engine takes over. The tournament’s openings, if any, are played first, by every engine; EPD books only give those and are greyed in the list. To compare books with one engine, choose This engine once more, with another book in its ⋯ menu: each copy plays as <engine> (<book>), so its results and rating stay apart. In a match the Book buttons sit next to A and B, and an engine can play itself with two books. Book moves are marked {book} in the PGN; hovering a name in the standings shows its book. WinBoard engines can have one too.

Engine settings

Hash and Threads forced on every engine, for a match too (0 = each engine’s own; a participant’s own, from its ⋯ menu, comes first); Syzygy tablebases for the engines gives the tablebase directories (the same as the adjudication’s) to every engine with a SyzygyPath option, and Engines’ own books off sets OwnBook to false where it exists, so that every game is played from the tournament’s openings. Both are off by default.

Time control

Base time and increment in seconds, optional moves per period, and a margin before a game is lost on time; a fixed time per move (go movetime, with the same margin); a fixed number of nodes per move; or a fixed depth in plies (go depth), which no engine can lose on time.

Concurrency

The number of games played at the same time. In automatic mode it is measured at startup:

  • fixed nodes or depth: one game per hardware thread, since Hyper-Threading does not change the moves played;
  • with a clock: physical cores − 1, so that engines do not slow each other down.

Cores chooses the processors the engines may use: All cores (the default), P-cores or E-cores on a machine that has both (Intel since its 12th generation, Apple silicon, ARM’s big and LITTLE cores), or Chosen…: a list as taskset -c writes it (0-7,16-23), with a map of the cores grouped by the cache they share, where a click takes a core in or out and a group’s name chooses that group alone (the half of an X3D processor with the large cache in one click). The tournament’s process keeps to them, and so do the engines it starts. On macOS, which keeps no program on given cores, E-cores runs the engines in the background, as taskpolicy -b does: cooler and longer on battery, slower when the Mac is busy; there is neither P-cores nor Chosen…. On some of the cores, the automatic number is one game per core chosen with a clock, one per thread chosen at fixed nodes or depth, and the field stops at the threads chosen. A tournament keeps its choice, which its line in the lists and its header show: resumed on a computer that cannot follow it (P-cores on a machine with one kind of core, a processor it lacks), it plays on every core and says so on its header and in its log. A tournament on a machine of Settings has no Cores.

The row and the line under the field say which rule chose the number. CPU affinity (off by default; not on macOS, which has none) pins every game to one processor, among the cores chosen, shared by its two engines since they never think at the same time. fastchess only supports it for single-threaded engines, so it is turned off automatically when an engine has Threads > 1. A warning appears when concurrency × threads exceeds the hardware threads (or, with a clock and several games at once, the physical cores). A game alone may use every hardware thread: its two engines think in turn and slow no other game down, so the line under the field only says that beyond the physical cores the hyperthreads add little speed. Run on chooses the machine the tournament plays on (see A tournament on a machine).

Openings

An EPD, PGN or Polyglot (.bin) book (an opening suite), random or sequential order, the number of plies kept from a PGN book, the starting index and the random seed (0 = a new order for every tournament). Every opening is played twice, with colours reversed (in a match whose Colours are locked, each game from an opening of its own).

A Polyglot book is followed from the initial position to a depth (8 plies unless set), leaving out the moves that weigh less than a tenth of the best one of their position; its lines (one for each position reached, the first that reaches it) are written once to <book>-<N>plies.pgn in the tournament folder and played like a PGN book: every game starts from the initial position, and its PGN has the book’s moves, marked {book}. In random order they are written in the order they are drawn, each once: a line comes the sooner the likelier it is, by the weights of its moves, so that a tournament that plays only part of the book plays its main lines first; the seed draws the same order again. In sequential order they keep the order of the book. A tournament started by an earlier version, which wrote the positions reached to <book>-<N>plies.epd, goes on playing from them. Randomness (−100 to 100, 0 by default) says how the weights count, as Polyglot and Cute Chess choose a book move: 0 the weights as they are, −100 the best move of each position only (one line, unless several share the best weight), 100 every move alike (the rare moves come back); in between, −50 squares the weights and 50 takes their square roots. It chooses the moves of the participants' own books too, and is shown for them even with an EPD or PGN book; the summary says it, and the line under the standings copies gives the book with its depth and, for a Polyglot book, this randomness.

Variations as lines of their own (a PGN book; off by default) makes each variation of its games an opening too: the moves before it, then its own to its end, after the game’s main line, nested variations as well; a line the plies cut to one its game already gave comes once. Without it, only the main line of each game is played, and the summary says how many variations are not played, with Play its variations. The lines are written once to <book>-lines.pgn in the tournament folder, cut at the plies, and played like any PGN book, which the line under the standings names with its variations. To try several moves in one position, write them as variations of one game (12...Qc7 (12...d6) (12...d5) (12...f6) (12...O-O)), untick Random order, and every one is played as often as the others, in the book’s order, each twice with colours reversed; the Openings tab then gives the results of each. The participants’ own PGN books count the moves of their variations with it too, as those of their games (each move once per game); it is shown for them even without a PGN book.

In a round robin, a gauntlet, a Swiss or a team match, The same opening for every pair of a round gives every game pair of a round the same opening (board by board, a cycle is one round: every board plays the same opening), the next of the book for each round, so that no engine gets easier openings than the others of its round (an engine added later catches up in rounds of its own, each with its opening).

Flag unbalanced openings (off by default) shows, as the games come, the openings that decide the game by themselves: a game is flagged when it ends if both engines saw the same side ahead by at least the score (200 cp by default) for each of their first moves after the book (4 by default; a participant’s own book moves count as book moves). It reads the engines’ scores, so an engine that gives none flags nothing; the results are not changed. The Games tab filters such games (Unbalanced opening), the Openings tab marks their openings with a ! and counts them, and the overview counts the games. Play the pair again from another opening voids such a pair once its two games are played (they stay in the PGN files and the journal, as any voided game) and plays it again from an opening at the end of the book (in the book’s playing order), which the tournament would play last, so that the openings of the pairs to come do not move; at most three times for one pair, after which the pair counts, flagged. The console and the overview say how many openings were replaced.

Chess960

Fischer random, in the openings: without a book, the 960 starting positions in random order (written once to chess960.epd in the tournaments folder); with a book, its positions. Every engine must play Chess960: UCI engines with the UCI_Chess960 option, WinBoard engines with the fischerandom variant. The summary names those that do not, and such a tournament does not start.

Adjudication

Draw (from a move number, for N consecutive moves, under a score), resign (N consecutive moves above a score, optionally both engines agreeing), a maximum number of moves, and Syzygy tablebases.

PGN and misc

  • Event name: its tooltip names the two PGN files every game is written to.
  • Also append every game to: a PGN file of yours that every tournament adds its games to, like cutechess' -pgnout (never overwritten, in the ChessBase / Lichess or cutechess comment style), in schedule order: the two games of an opening side by side, rounds in order, whatever order they end in. A game waits there until those before it are written; a resume carries on; when the file cannot be written (locked, moved), the games wait and the tournament goes on, with a warning in the overview. A crash or a power cut while games are appended never writes them twice: the resume checks the file and completes a write cut short, and never removes anything from it.
  • Extra fields in the move comments (nodes, seldepth, nps, pv, tbhits, wdl=W/D/L for the engines that report it, and the decision time dt=: when the engine settled on the move it played), on by default since the charts of the Games tab read them (pv makes the PGN noticeably larger). With all of them off, a move’s comment holds its score, depth and time only.
  • Restart an engine that crashes, and Stop the tournament when an engine cannot start (off by default: see An engine that cannot start).
  • Keeping the engine log of every game (it is always kept for the games that end badly).
  • Check the mate PVs: a mate score’s PV must have the right length and end in mate. Every PV is checked for illegal moves, moves after the end of the game and a best move that is not its first move; the moves with a wrong PV are marked in the Games tab and written in the log.

Tips for the settings

  • Comparing two versions of an engine: an SPRT, gainer [0, 3] for a change meant to gain, non-regression [-5, 0] for a simplification or a cleanup. A short time control (10+0.1) first, then a long one (60+0.6) for what passes. Use a book of balanced positions, not the starting position: every game would otherwise be one of a few openings.
  • Concurrency: leave it automatic. With a clock, more games than physical cores less one make the engines slow each other down, and the results drift; with nodes or a depth per move, every hardware thread may play.
  • Threads: 1 per engine for testing; many games of one thread each give more results per hour than few games of many threads. Give every engine the same Threads and Hash in Engine settings. To see how two engines play a position with all the machine, give them every hardware thread and set Concurrency to 1: they never ponder, so they think in turn.
  • Hash: enough for the time control (16 to 64 MB at 10+0.1, 256 MB at 40/15 and longer); the summary says when the games’ hash no longer fits in the memory.
  • Adjudication: the standard profile saves time in long tournaments without changing the results much; leave it off to test an engine’s endgames, or use the tablebases.
  • Openings: random order with a fixed seed lets a test be played again exactly; The same opening for every pair of a round is fairer in a round robin with few cycles.
  • Several tournaments: give the one that matters most a larger weight rather than pausing the others (see Several tournaments at once).
In RookStudio, F1 opens this guide beside the page, at the section of what is under the mouse.