Each category in a ruTournament tournament is assigned exactly one format at creation time. The format is not cosmetic — it determines how individual solve times are aggregated into a score, how competitors are ranked within a round, and how advancement to subsequent rounds (or match-ups in a bracket) is calculated. Switching a category’s format after results have been entered will erase those results, so choose the format deliberately during tournament setup.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SdazaP/ruTournament/llms.txt
Use this file to discover all available pages before exploring further.
- WCA Format
- Red Bull Format
The WCA format mirrors the rules used at official World Cube Association competitions. Each round consists of a fixed number of solves per competitor, which are then averaged according to the round’s configured format.
Average calculation:
The following function, taken directly from Key rules to remember:Ranking:
Competitors within a round are ranked using the following comparator, also from In plain terms: competitors with a valid (non-DNF) average are ranked first, sorted by that average ascending. Ties in the average are broken by the single best time. Competitors whose average is DNF rank below all valid averages, sorted again by their single best. Completely incomplete result sets rank last.After a preliminary round closes, the app sorts all competitors via
Average formats
| Format | Solves | Calculation |
|---|---|---|
ao5 | 5 | Drop the single best and single worst time; average the middle 3 |
ao3 | 3 | Average all 3 times (mean of 3 — no drops) |
Penalties
Every individual solve time is stored as aTimeRecord object with a base value (in seconds) and a penalty flag:| Penalty | Meaning | Effect on score |
|---|---|---|
'' | Clean solve | Score = base |
'+2' | Judge applied a +2 second penalty | Score = base + 2 |
'DNF' | Did Not Finish — competitor did not complete the solve | Score = -1 (treated as infinity in ranking) |
Average calculation: calculateRulesStats
The following function, taken directly from ResultsWCA.tsx, computes both the single best and the official average for a set of times:- ao5 with 1 DNF: The DNF is treated as the worst time. Only the single best time is dropped; the remaining three (including the DNF-penalised slot treated as dropped) are averaged.
- ao5 with 2+ DNFs: The entire average is
DNF(-1). - ao3 with any DNF: The entire average is
DNF(-1).
Ranking: sortWCA
Competitors within a round are ranked using the following comparator, also from ResultsWCA.tsx:Multi-round advancement
WCA categories can have multiple rounds. Each non-final round has acompetitorsToAdvance value that controls how many competitors move forward:sortWCA and slices the top competitorsToAdvance entries. Only those competitors appear in the next round’s result table. When competitorsToAdvance is 'all', every competitor with a result advances.The number of rounds and the
competitorsToAdvance value for each round are configured during tournament creation. You can also change them later in the Categories section while the tournament is in the activo state — just be aware that changing the advancement count on a round for which results already exist will immediately affect which competitors are visible in the next round.