tournament
fun tournament(type: String, eloCalculator: EloCalculator = EloCalculator(), comparator: Comparator<Player> = defaultTiebreakerComparator): Tournament
Factory function to create a Tournament instance based on the specified type.
Return
A Tournament implementation matching the requested type.
Parameters
type
The tournament format to create. Supported values: "arena", "swiss".
elo Calculator
The logic used for rating adjustments (optional).
comparator
The strategy for ranking players with tied scores (optional).
Throws
if the type provided is not recognized.