The Tournament Planner is a Python module which keeps track of players participating in a Swiss system tournament and is a project of Udacity's full stack developer nanodegree. It is based on a PostgreSQL database to store and retrieve the player stats and the results of their matches.
- Clone this repo.
- Get the Vagrantfile from the [fullstack-nanodegree-vm repository] (https://github.com/udacity/fullstack-nanodegree-vm).
- Install and run a Vagrant VM with the Vagrantfile.
- Configure the home directory of your VM to be able to run the Tournament Planner code.
- Using psql create a database called
tournament. - Create the tables and views by running
tournament.sql. - Now everything is set up to import and use the code from
tournament.py.
There is also some testing code included in tournament_test.py (also for the
extra features) which can be run to validate the installation and configuration
of the Tournament Planner.
A typical usage of the Tournament Planner might be as follows:
- Start a new tournament by re-initializing the database with
deleteMatches()anddeletePlayers(). - Register new players with
registerPlayer(). - Retrieve the current player stats with
playerStandings(). - Record the results of every round with
reportMatch(). - Get the player pairings for the next round with
swissPairings().
Philip Taferner