|concepts * implementation * features * limitations * tournament definitions * client applications * documentation * screenshots * download|
Each sporting tournament consists of a number of stages, examples of stages are Preliminary Stage, Quater Finals, Finals.
Each stage includes one or more group; for instance a Preliminary Stage may contain groups A, B, C, and D; Finals may contain a single group of two teams that compete for the winner's title.
Each group has two or more teams. Before the tournament starts, only groups of the first stage know their teams. By the completion of the first stage it is usually possible to programmatically determine teams that advance to the following stage, based on their results, and so on for all stages.
Given rules of the tournament (points allocated to a team in a game, as well as sorting criteria for table of standings), initial teams and game schedule it is possible to interpret its results inside a computer program.
libtour is a generic tournament processing library written in C++. Rules, teams and schedule of a tournament are defined in the Scheme programming language (Guile) and given to the library as input. What makes libtour generic is the fact that it only expects the structure of a tournament be as described in the "Concepts" section above, and does not know anything else about it. Therefore it is possible to make libtour interpret virtually any sporting tournament.
Scheme language seems a perfect choice for tournament definitions as it allows to easily intermix data and processing logic. Guile interpreter packaged as a library (libguile) makes it simple to mix C and Scheme function calls. Many thanks to the people who made Guile happen.
Scheme definitions for the following tournaments are included in libtour distribution:
It should be fairly easy to add more definitions.
libtour ships with a simple CLI application that allows you to fully interact with the library (see a sample session). I am also working on a Qt-based GUI program which is definitely more fun to use, see the qtour project at sourceforge.
|Screenshots||CLI client on black, on white|
|Download||Latest: version 0.9.6|
|Last modified: 29.06.05 (22:38:41)||vktr-at-users-dot-sourceforge-dot-com, Viktor Pavlenko|