Python module that uses the PostgreSQL database to keep track of players and matches in a game tournament.
The game tournament uses the Swiss system for pairing up players in each round.
- Vagrant and VirtualBox - For installing the Vagrant VM https://www.udacity.com/wiki/ud197/install-vagrant
What's included
Within the download you will find the following directory and files.
tournament/
├── tournament.sql
├── tournament.py
├── tournament_test.py
- Fork https://github.com/navinesh/fullstack-nanodegree-vm
- Clone the newly forked repository to your computer
- Using the terminal, change directory to vagrant (cd vagrant), then type
vagrant up
to launch your virtual machine - Once it is up and running, type
vagrant ssh
to log into it - Change directory to vagrant/tournament (cd /vagrant/tournament)
- Run the command
psql -f tournament.sql
to log into the database, create tables and views - Run the command
python tournament_test.py
to test database tables and views, andtournament.py
module
Prevents rematches between players
Navinesh Chand