# FairPair — version history FairPair carries one version number, MAJOR.MINOR.PATCH, following Semantic Versioning (https://semver.org) as the FIDE Handbook requires (C.02.01, Article 5.9). The website, the tournament files it writes (record `182`), the checker and the generator all state this number. What the three parts mean for this program: * **MAJOR** — a change that breaks with what was there before: the program follows another edition of the pairing or tie-break rules, a pairing system or a file format is no longer supported, or data of earlier versions can no longer be used. A new major version ends an acceptance granted by FIDE (C.02.01, Article 5.11.1). * **MINOR** — new functions that leave the existing ones as they are. * **PATCH** — corrections, and changes without effect on the functions. This includes a correction of the pairing engine or of a tie-break where it deviated from the rules. Every version is listed with the **fingerprint** of the modules that pair, rank and check: one SHA-256 value over the eight Python files of the download package (`fpc.py --version` prints it; how to recompute it is described in `README.md`). A version number belongs to exactly one fingerprint: these modules do not change without a new version number. ## 1.0.4 — 2026-11-29 Fingerprint: `3e57b203e52d630aa0cf18dd9f9916e48c845dd490b4734abb8cff794a8aaf72` A limit when reading tournament files. Pairings, tie-breaks and checks are the same. * A file with very many invalid entries - for example one XXS line with millions of values without "=" - produced one note per entry: millions of notes, in memory and in the report. The reader now keeps the first 200 notes and adds one note with the number of the others ("... and N more notes"). Ordinary files have far fewer notes and are read exactly as before. ## 1.0.3 — 2026-11-26 Fingerprint: `7f17e2f88e48d6ce30c3c921fc7a7f9107611121deed8a137e49ddae2f239222` A rare case in very large fields, and the website for tournaments of that size. The pairings are the same. * A large score group that gives off exactly one player to the group below, where criterion [C8] decides which one: the group below has one or a few players, and the player the large group would give off by itself has already met them. Version 1.0.2 then fell back to the computation over all players - with 9999 players that one round did not finish (seen in one of 320 generated tournaments with 9998 and 9999 players: the lower rated player wins every game, nobody takes a bye). The engine now establishes for every player of the group whether [C8] is at its lower bound with him as the downfloater or provably above it, and computes the group once more under the condition that only such a player floats down. No round is paired differently than by version 1.0.2. * The process in which the website computes a pairing now has a memory limit next to its time limit (`TZ_AUSLOSUNG_MB`, 1024 MB unless set; the largest tournament measured, 9999 players in round 50, needs 156 MB). A round that would exceed it is refused with a message and nothing is changed - a pairing can no longer use up the memory of the server. * Website: the number of rounds can be set from 1 to 50 (before: 30), and after the pairing of a very large tournament the standings are computed in the background, as they already were after a result - now with a pause after each computation, so that a round in progress does not keep the server computing without interruption. * Website, many devices at once: the table of games has three indexes for large tournaments (an existing database gets them at the next start), and the question which round is running no longer reads all games of the tournament. The player portal asks for its small answer every 30 seconds and fetches the list of earlier rounds and the settings only when they can have changed - one request per phone instead of three. Measured with 9999 players, one server process now answers 4000 player portals open at the same time. Before, it was about 1000 in an early round, and every refresh became slower with each round played (0.27 seconds in round 49, now 0.007). In a tournament with more than 3000 players the portal asks every 90 seconds instead of every 30; measured with PostgreSQL, one process then answers all 9999 portals of the largest tournament. * Website, FIDE mode: the number of rounds is fixed as soon as a round has been paired - now also in a tournament without acceleration (before: only with the Baku acceleration). It determines which round is the last one, and the last round is paired under rules of its own (C.04.3, Article 1.8); with a number changed afterwards, a checker would no longer confirm that round. After reading a TRF16 or TRF06 file, which does not state the number of rounds, it can still be set until the next round is paired. * No change to the rules implemented, to the tie-breaks or to the file formats. ## 1.0.2 — 2026-11-26 Fingerprint: `51c52d0ca24b5d1e96505bf09b53b2b91b97159ace9db4dacac4ea6d043a475d` Very large fields. The pairings are the same. * A round with 9999 players - the largest field a tournament file can hold - is paired in a few tenths of a second. Before, the engine gave up its short computation on some score groups of several thousand players after a fixed amount of work and fell back to the computation over all players, which for a field of that size takes hours. Inside a large score group the search now takes the candidates in order and looks for the replacement of an opponent class by class before it searches completely; the amount of work it may spend grows with the size of the group. No round is paired differently than by version 1.0.1. * A tournament file holds at most 9999 players: the pairing number has four digits (record `001`, columns 5-8). The program no longer writes a file for a larger field - before, the fifth digit was cut off without a word -, and the generator refuses such a field with a message. * The generator produces fields of more than 4680 players (before, it ran out of names and never finished). Up to 4680 players the same seed gives the same file as before. * Website: lists of several thousand players or boards are shown page by page with a search field, and entering a result no longer recomputes the standings of a very large tournament at once. * No change to the rules implemented, to the tie-breaks or to the file formats. ## 1.0.1 — 2026-11-25 Fingerprint: `00f5733eb9cb9fb740d846de6d9036d5927665c08309a37a39b91edba2b7874a` The pairing engine is faster. The pairings are the same. * A round with 1000 players is paired in a few hundredths of a second (before: minutes). Wherever it can be proven that a bracket computed on its own gives the result of the computation over all players still to be paired, the engine computes the bracket on its own; everywhere else it computes as before. No round is paired differently than by version 1.0.0. * One kind of field is still computed the long way: when whole score groups cannot be paired among themselves and must float as a body (seen only in an artificial tournament in which White wins every game). * No change to the rules implemented, to the tie-breaks, to the file formats or to what the checker and the generator print — apart from the version number. ## 1.0.0 — 2026-11-22 Fingerprint: `080079efef39631ebe9417c3f1dc0fc42b75573632a0ca71f59a41b3ea4243cf` The first numbered version. Earlier states of the program carried no version number and were identified by the commit of the source code. * Pairing by the FIDE (Dutch) System, C.04.3, in the version effective from 1 February 2026, with FairPair's own pairing engine; Baku acceleration (C.04.7). * Standings by C.07 in the version effective from 1 March 2026: all 54 tie-breaks the annex “Mandatory Tie-Breaks” lists for individual tournaments. * Tournament files: TRF26 is written; TRF26, TRF16 and TRF06 are read. * The pairings and tie-break checker (`fpc.py`) and the random tournament generator (`rtg.py`) are part of the program and can be downloaded from its website as one package. * The tournament file names the program with its version number (record `182`: `FairPair 1.0.0`).