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 usize number.
Example
use round_robin_tournament::round_robin_tournament::draw; let tournament: Vec<Vec<(usize, usize)>> = 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 |