Project 2 - Swiss Tournament Planner
This is a Python module that uses the PostgreSQL database to keep track of players and matches in a game tournament.
The game tournament will use the Swiss system for pairing up players in each round: players are not eliminated, and each player should be paired with another player with the same number of wins, or as close as possible.
Requirements
- Vagrant VM
- Python 2.7.9 or later
Installation and running
- Clone this repository and cd into it.
- Run
vagrant up
to start the VM - Log into the VM using
vagrant ssh
- Change your directory to /vagrant/tournament/
- Start a psql prompt with
psql
- You should be connected to the vagrant database
- Install the tournament database with
\i tournament.sql
This should be your output:
- Quit the psql prompt with
\q
- Run
python tournament_test.py
- All the tests should be passing