#Tournament Results This repository contains a PostgreSQL database schema and python module utilizing Psycopg to serve an application for a Swiss-style tournament. It is a submission for Project 2 in Udacity’s Full Stack Web Developer Nanodegree.
##Instructions:
You will need to have installed PostgreSQL to utilize the application. Once installed, you can use the terminal command psql -f tournament.sql
from the directory in which you have downloaded the files to build the application’s database. Having now set up the database, you can use the methods contained in the tournament.py module to manipulate the database in your tournament.
##Files Included:
- tournament.sql
- tournament.py
##References:
-
Psycopg module usage tips taken from Psycopg 2.6.1 documentation
-
Odd and even list sampling on swissPairings():
- Python documentation on Extended Slices
- http://stackoverflow.com/a/11702449
- http://stackoverflow.com/a/756602
-
Zip function on swissPairings():
- Python Documentation on Zip
- http://stackoverflow.com/a/24844077