Crate round_robin_tournament[−][src]
Small and simple round robin tournament implementation.
Provides an interface for passing the number of players to participate in the tournament and gives a list of of possible rounds. In each round there is a list ofindividual unique pairs. Each player is represented by a u32 number.
Example
use round_robin_tournament::round_robin_tournament::draw; let tournament: Vec<Vec<(u32, u32)>> = draw(10); // First round with 5 matches let first_round = tournament.first().unwrap(); // First match with player id 0 against player id 9 let first_match = first_round.first().unwrap();
Modules
| round_robin_tournament |