ArenaTournament

class ArenaTournament(val eloCalculator: EloCalculator = EloCalculator()) : Tournament

An arena style tournament.

Constructors

Link copied to clipboard
constructor(eloCalculator: EloCalculator = EloCalculator())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val activeMatches: MutableList<Match>

Current matches being played.

Link copied to clipboard
open override var completed: Boolean

Whether the tournament has reached its conclusion.

Link copied to clipboard
open override val eloCalculator: EloCalculator

The strategy used for rating adjustments.

Link copied to clipboard
open override val finishedMatches: MutableList<Match>

All concluded matches in the tournament history.

Link copied to clipboard
open override val leaderboard: List<Player>

Current player standings, ordered by score and tie-breakers.

Link copied to clipboard
open override var playersComparator: Comparator<Player>

The strategy for breaking ties in the leaderboard.

Functions

Link copied to clipboard
open override fun addPlayer(player: Player)

Adds a player to the tournament. Player's name most be unique.

Link copied to clipboard
open override fun nextRound(): List<Match>

Generates a list of new pairings.

Link copied to clipboard
open override fun removePlayer(player: Player)

Removes a player from the tournament