davidro / swiss-tournament

Simple emulation of swiss tournament game play in python and SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is Tournament project, it contains a database schema for postgresql database to store the game matches between players and python code to query this data and determine the winners of various games in Swiss-system tournamet style.

To run the Application:
open command line and create database schema with following command:

psql -f tournament.sql  

run as well from command line the python test script to ensure everything works as expected:

python tournament_test.py  

The main files and folders of Application:

  • tournament.sql: table definitions for the project
  • db.py: a class to handle database connection and query execution
  • tournament.py: implementation of a Swiss-system tournament
  • tournament_test.py: test script to ensure everything works as expected
  • /docs: contains html documentation of python files you can open in your browser

About

Simple emulation of swiss tournament game play in python and SQL


Languages

Language:Python 100.0%