Tournament

interface Tournament

Contract for tournament management.

Since

1.0.0-beta.8

Author

lunalobos

Inheritors

Properties

Link copied to clipboard
abstract val activeMatches: List<Match>

Current matches being played.

Link copied to clipboard
abstract var completed: Boolean

Whether the tournament has reached its conclusion.

Link copied to clipboard

The engine used to calculate rating changes.

Link copied to clipboard
abstract val finishedMatches: List<Match>

All concluded matches in the tournament history.

Link copied to clipboard
abstract val leaderboard: List<Player>

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

Link copied to clipboard

The strategy for breaking ties in the leaderboard.

Functions

Link copied to clipboard
abstract fun addPlayer(player: Player)

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

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

Generates a list of new pairings.

Link copied to clipboard
abstract fun removePlayer(player: Player)

Removes a player from the tournament