Answers.Body: <blockquote>
  <p>What are those rules?</p>
  </blockquote>
  <p>The rules are defined in the FIDE document <a href="https://handbook.fide.com/chapter/C0401" rel="nofollow noreferrer">C.04.1 Basic rules for Swiss Systems</a>.</p>
  <blockquote>
  <p>C.04.1 Basic rules for Swiss Systems</p>
  <p>The following rules are valid for each Swiss system unless explicitly stated otherwise.</p>
  <p>a The number of rounds to be played is declared beforehand.</p>
  <p>b Two players shall not play against each other more than once.</p>
  <p>c Should the number of players to be paired be odd, one player is unpaired. This player receives a pairing-allocated bye: no opponent, no colour and as many points as are rewarded for a win, unless the rules of the tournament state otherwise.</p>
  <p>d A player who has already received a pairing-allocated bye, or has already scored a (forfeit) win due to an opponent not appearing in time, shall not receive the pairing-allocated bye.</p>
  <p>e In general, players are paired to others with the same score.</p>
  <p>f For each player the difference between the number of black and the number of white games shall not be greater than 2 or less than –2.<br />
  Each system may have exceptions to this rule in the last round of a tournament.</p>
  <p>g No player shall receive the same colour three times in a row.
  Each system may have exceptions to this rule in the last round of a tournament.</p>
  <p>h 1 In general, a player is given the colour with which he played less games.</p>
  <p>h 2 If colours are already balanced, then, in general, the player is given the colour that alternates from the last one with which he played.</p>
  <p>i The pairing rules must be such transparent that the person who is in charge for the pairing can explain them.</p>
  </blockquote>
  <p>Rgearding:</p>
  <blockquote>
  <p>how random are the pairings?</p>
  </blockquote>
  <p>They must be completely non-random. According to <a href="https://handbook.fide.com/chapter/C0402" rel="nofollow noreferrer">C.04.2 General handling rules for Swiss Tournaments</a></p>
  <blockquote>
  <p>The Swiss Pairing Systems defined by FIDE and not deprecated (see C.04.4) pair the players in an objective, impartial and <strong>reproducible</strong> way.<br />
  <strong>In any tournament where such systems are used, different arbiters, or different endorsed software programs, must be able to arrive at identical pairings.</strong></p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-29T21:00:26.950Z
Answers.LastActivityDate: 2020-12-29T21:00:26.950Z
Answers.UserDisplayName: Brian Towers
Body: <p>In most official FIDE tournaments, the JaVaFo engine is used to pair the players according to some FIDE-defined rules. What are those rules and how random are the pairings (i.e. can I reproduce them locally)?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-29T20:39:08.820Z
Comments.Text: Generally speaking such pairing systems are completely deterministic. There's little reason to randomize them and it makes it "transparent" that pairings are like they should be. (plus they are deterministic in a way to ideally maximize the chance that the strongest player wins the tournament)
Comments.UserDisplayName: koedem
Tags: <tournament><fide><swiss-pairing>
Title: How does the JaVaFo engine work and how random are the pairings?
ThreadText: # How does the JaVaFo engine work and how random are the pairings?
  
  (Asked by: username_0 on 2020-12-29)
  
  In most official FIDE tournaments, the JaVaFo engine is used to pair the players according to some FIDE-defined rules. What are those rules and how random are the pairings (i.e. can I reproduce them locally)?
  
  **Tags:** tournament, fide, swiss-pairing
  
  > **Comments:**
  > **username_1**: Generally speaking such pairing systems are completely deterministic. There's little reason to randomize them and it makes it "transparent" that pairings are like they should be. (plus they are deterministic in a way to ideally maximize the chance that the strongest player wins the tournament)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-12-29. Score: 2 | Accepted answer
  
  > What are those rules?
  
  The rules are defined in the FIDE document [C.04.1 Basic rules for Swiss Systems](https://handbook.fide.com/chapter/C0401).
  
  > C.04.1 Basic rules for Swiss Systems
  >
  > The following rules are valid for each Swiss system unless explicitly stated otherwise.
  >
  > a The number of rounds to be played is declared beforehand.
  >
  > b Two players shall not play against each other more than once.
  >
  > c Should the number of players to be paired be odd, one player is unpaired. This player receives a pairing-allocated bye: no opponent, no colour and as many points as are rewarded for a win, unless the rules of the tournament state otherwise.
  >
  > d A player who has already received a pairing-allocated bye, or has already scored a (forfeit) win due to an opponent not appearing in time, shall not receive the pairing-allocated bye.
  >
  > e In general, players are paired to others with the same score.
  >
  > f For each player the difference between the number of black and the number of white games shall not be greater than 2 or less than –2.  
  > Each system may have exceptions to this rule in the last round of a tournament.
  >
  > g No player shall receive the same colour three times in a row.
  > Each system may have exceptions to this rule in the last round of a tournament.
  >
  > h 1 In general, a player is given the colour with which he played less games.
  >
  > h 2 If colours are already balanced, then, in general, the player is given the colour that alternates from the last one with which he played.
  >
  > i The pairing rules must be such transparent that the person who is in charge for the pairing can explain them.
  
  Rgearding:
  
  > how random are the pairings?
  
  They must be completely non-random. According to [C.04.2 General handling rules for Swiss Tournaments](https://handbook.fide.com/chapter/C0402)
  
  > The Swiss Pairing Systems defined by FIDE and not deprecated (see C.04.4) pair the players in an objective, impartial and **reproducible** way.  
  > **In any tournament where such systems are used, different arbiters, or different endorsed software programs, must be able to arrive at identical pairings.**
  
  
  ---
  
  