This project work with PostgreSQL database to setup a database of tournament and generate Swiss-System tournament.
Tournament Project
- tournament.sql
- tournament.py
- tournament_test.py
This sql file sets up the tournament database schema like player, matches and views
This python file contains methods to connect, read, add, delete players and matches them into swiss-pairings.
This python file has scripts to test the methods implemented in tournament.py file which are required for passing the tests.
Follow the guidelines provided here Don't fork / Clone the git repo mentioned there, instead clone this
After setting up the environment.
- Navigate to the project folder
cd /vagrant/tournament
- Open psql like this
psql
- Initialize database like this
\i tournament.sql
- Quit and execute the test like this
python tournament_test.py
- Test results will be printed on the screen.