Database schema for a swiss style tournament
-
Python
-
PostgreSQL
-
python-psycopg2
- Git (optional)
download zip
Unzip the file
$ cd tournamentor
Clone github repository
Open the shell in mac/linux or command prompt in windows and navigate to the folder you wnat to clone the repository
Make sure you have installed git
$ git clone https://github.com/ajack13/tournament.gitthis should clone the repository to the folder
Contains the queries for creating tables and views for PostgreSQL
Contains python defenitions for the following db operations
- DB connection
- Register Players
- Delete Players
- Swiss style parings
- Player Standings (Points table)
- other utilities
Test cases for the queries
- Open the terminal (command prompt or git bash in windows) and enter the psql console
$ psql- To import the sql schema ,create database and connect to it enter this in your terminal
$ i\ yourFileDirectories/tournament.sql - Navigate to the folder using command promt if you are in windows or the shell if you are using a mac or linux
- Run the file tournament_test.py using python by typing the following command to run through the test cases
$ cd tournament
$ python tournament_test.py1.1
- Sublime text - Text editor
- PostgreSQL
- python