Skip to content

melissapott/tournament

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tournament Swiss Pairings

This program was produced as a project submission for Udacity's FSND Tournament Project.

Requirements:

  • a computer running PostgreSql and Python
  • The following files included in this repository:
    • tournament.sql - this file creates the database tables used to store tournament players, points and results
    • tournament.py - this file contains python fuctions that interact with the database for registering players, matching pairs, etc.
    • tournament_test.py - this file was provided by Udacity and is used to check the correct function of tournament.py. It has been modified to add an additional test for recording tied matches, which was beyond the basic scope of the project

Usage:

  1. create a blank database called 'tournament':
  2. at the command prompt, enter psql
  3. at the psql prompt, enter create database tournament;
  4. import tournament.sql, which will create necessary tables and populate the points table.
  5. at the prompt, enter \i tournament.sql
  6. to exit psql, enter \q
  7. run tournament_test.py which will attempt to register players, delete players and report matches.
  8. at the server command prompt, enter python tournament_test.py

About

Udacity FSND Tournament Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages