Kyushi / wehaveawinner

Swiss tournament program wth Python & PSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

We have a winner!

Project using relational database (PostgreSQL) and Python db api (psycopg2) for Udacity Full Stack Nanodegree course


Overview

This is a psql project for a swiss style tournament system. This script creates two database tables: players and matches In the player table, players can be registered with their name, which does not need to be unique. The player is given an ID (serial, auto-incrementing number). In the 'matches' table, the results of matches between players can be entered. The matches can be evaluated and new pairs of players are automatically generated for the next round of matches.


Requirements

  • Python 2.7
  • PostgreSQL

Quickstart

  1. Download or clone this repository.
  • Run psql
  • In psql, run \i tournament.sql to import the file for database and table creation. Database 'tournament' and tables 'players' and 'matches' will be created. WARNING: Existing 'tournament' database will be dropped and created as an empty database. Please back up existing databases named 'tournament' if present.
  • For testing, run python tournament_test.py

About

Swiss tournament program wth Python & PSQL


Languages

Language:Python 100.0%