Algorithms Guide

Understanding how tournament systems and pairing algorithms work within the PlayAllTimes platform

PlayAllTimes Algorithms Guide

Understanding how tournament systems and pairing algorithms work within the platform

Swiss System

The Swiss system is the reference algorithm for card tournaments. It guarantees that all players play the same number of games without direct elimination.

Basic Principle

In a Swiss system, players are paired according to their current performance. Players with similar results face each other, creating a natural ranking throughout the rounds.

1. Player Sorting Ranking by match points, then tiebreakers
2. Score Groups Creating groups with similar points
3. Pairing Pairing within groups avoiding rematches
4. Fold Down Handling unpaired players

Pairing Algorithm

Point Groups

Players are grouped by point bands (0-2, 3-5, 6-8, etc.) to create balanced matches.

Rematch Avoidance

The algorithm automatically checks that two players haven't already faced each other in the tournament.

Bye Management

With odd numbers of players, a bye is assigned to the lowest-ranked player who hasn't had one yet.

Fold Down

If a player cannot be paired within their point group, they "fold down" to the lower group.

PlayAllTimes Specifics

MTR Compliance

PlayAllTimes strictly follows the Magic Tournament Rules (MTR) with official tiebreakers: OMW% (Opponents' Match Win %), PGW% (Player Game Win %), and OGW% (Opponents' Game Win %).

Tiebreaker Calculation

OMW% = Average match win % of opponents Minimum 33.33% per opponent
Example: A player with 12 points is paired first with another 12-point player. If impossible (rematch or odd number), they can be paired against a 9-point player.

Elimination System

Elimination tournaments create brackets where losers are eliminated. PlayAllTimes supports multiple elimination formats with optimized algorithms.

Single Elimination

Classic format where each loss eliminates the player. The bracket is built according to previous phase standings.

Top 4

Structure: 1 vs 4, 2 vs 3
The two winners face each other in the finals.

Top 8

Structure: Optimized bracket
1 vs 8, 4 vs 5, 3 vs 6, 2 vs 7

Top 16

Structure: Four pods
Balanced distribution by ranking

Top 32

Structure: Recursive pattern
Optimized algorithm for large brackets

Double Elimination

Under Development

Advanced system where each player gets one loss before elimination. Includes winners and losers brackets with complex finals.

Coming Soon: Double elimination will be available in a future update with automatic winners/losers bracket and optimized seeding calculations.

Multiplayer Tournaments

Multiplayer tournaments (3-5 players per pod) require specialized algorithms to create balanced pods while avoiding rematches.

Point System

Result Points (Default) Description
Victory 5 points First place in the pod
Draw 1 point Pod declared as draw
Loss 0 points 2nd, 3rd, or 4th place
Bye 5 points Automatic bye

Multiplayer Tiebreakers

1. Total Match Points
2. Match Win % = (Points - Byes×WinPoints) / (Matches×WinPoints)
3. Average Opponent Points
4. Average Opponent Match Win %

Draft Tournaments

Draft tournaments combine a drafting phase in pods with specialized pairings according to MTR rules.

MTR Pod Size Rules

Number of Players Pod Configuration Strategy
8 1 pod of 8 Optimal
12-13 2 pods (6+6 or 6+7) Balanced
16 2 pods of 8 Optimal
24 3 pods of 8 Optimal

HRRYA System (Hareruya)

The HRRYA system is an innovative format where players "bet" a portion of their points each round.

Fundamental Principle

Points and Betting

Each player starts with 1000 points. Every round, they bet 7% of their current points. The pod winner takes the entire collective bet.

Individual Bet = Current Points × 7%
Total Pool = Sum of all pod bets
New Points = Current Points - Bet + Points Won

Multiple Phases System

PlayAllTimes allows creating complex tournaments with multiple distinct phases.

Cut Type Description Example
Top X Players The X highest ranked players Top 8 for finals
Minimum Points All players with X points or more 12 points minimum to advance
Percentage X% of highest ranked players 50% of participants

Tiebreaker System

PlayAllTimes uses official tiebreakers to rank players with equal points.

1v1 Tournament Tiebreakers

1. Match Points

Absolute priority
Victory = 3 points, Draw = 1 point, Loss = 0 points

2. Opponents' Match Win %

Opponent strength
Average win % of faced opponents

3. Player Game Win %

Game performance
% of games won by the player in their matches

4. Opponents' Game Win %

Opponent game strength
Average game win % of opponents

OMW% = Σ(Opponent Victories) ÷ Σ(Opponent Matches)
Minimum 33.33% per opponent
OMW% Example:
Opponent 1: 3-2 (60%)
Opponent 2: 2-3 (40% → 33.33%)
Opponent 3: 4-1 (80%)
OMW% = (60% + 33.33% + 80%) ÷ 3 = 57.78%