Expand description
This is a library for creating tournament schedules for the sport I love.
🏓 table tennis 🏓
The focus is on meeting as many opponents and teammates as possible during the tournament. One can draw a single or double tournament. After the games are drawn, you can decide whether you also want to use the automatic table distribution algorithm.
Modules§
Structs§
- Round
- Struct for a tournament that represent one round. It holds the
round_number
and thematches
that take place in this round. Matches are a list of Match. - Social
Tournament - This struct provides the interface to
draw
the tournament,distribute
the tables andcreate_route_cards_pdf
. All results are stored in this instance and can be read out by accessing the corresponding field.rounds
contains the drawn rounds,tables
contains the distributed tables andpdf
contains a pdf as a byte array. - Table
Config - Specify a TableConfig to determine how many tables you can set up in your room or gym and choose a DistributionOption if you have more matches in a round than tables available.
Enums§
- Error
- Default Error for this crate
- Match
- Enum that represent one match.
- Tournament
Config - This enum describes all relevant parameters for the tournament. Choose between a single and a double tournament. How many players and rounds do you have? If you are playing doubles, what is your preferred DrawOption if there are not enough players for “full” double pairs. How many tables do you have? Specify a TableConfig to determine how many tables you can set up in your room or gym and choose a DistributionOption if you have more matches in a round than tables available.