public class RoundRobin
extends java.lang.Object
Constructor and Description |
---|
RoundRobin(int length)
Instantiates a new round robin tournament.
|
Modifier and Type | Method and Description |
---|---|
void |
invert()
Inverts the order of each individual pairing.
|
int |
numRounds()
Returns the number of rounds of the tournament
|
int |
numTables()
Returns the number of tables for each round
|
java.lang.Integer[] |
pairing(int round,
int table)
Returns the corresponding pairing for a round and table.
|
public RoundRobin(int length)
length
- number of playerspublic int numRounds()
public int numTables()
public void invert()
public java.lang.Integer[] pairing(int round, int table)
round
- round numbertable
- table number