Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.34 KB

README.md

File metadata and controls

61 lines (40 loc) · 2.34 KB

Swiss Pairing Tournament Results

Swiss Pairing Tournament Results is a database schema used to store game matches between players participating in multiple tournaments in the Swiss Tournament Style. This project is written in Python and PostgreSQL.

This is a project for the lovely folks at Udacity, submitted for review by Rupert Ong, who is completing the Fullstack Web Developer Nanodegree.

Table of contents

Quick start

Here's what you need to do to view this project:

  1. Install Vagrant and VirtualBox.
  2. Within Terminal (Mac), navigate to the vagrant folder and launch the Vagrant VM by running the command vagrant up.
  3. SSH into the running Vagrant machine vagrant ssh.
  4. Execute cd /vagrant/tournament to change directory.
  5. Execute psql and then execute \i tournament.sql to import the database. \quit to exit PostgreSQL.
  6. Execute python tournament_test.py to run the test suite.

What's included

Within the downloaded files, this is the relevant structure:

fullstack-nanodegree-vm/
└── vagrant/
    ├── Vagrantfile
    └── pg_config.sh
    └── tournament/
        ├── tournament.py
        ├── tournament_test.py
        └── tournament.sql

Extra Credit

  1. If there is an odd number of players, assign one player a “bye” (skipped round). A bye counts as a free win. A player should not receive more than one bye in a tournament.
  2. When two players have the same number of wins, rank them according to OMW (Opponent Match Wins), the total number of wins by players they have played against.
  3. Support games where a draw (tied game) is possible.
  4. Support more than one tournament in the database, so matches do not have to be deleted between tournaments.

Contributors

Rupert Ong

Copyright and license

Code and documentation copyright 2011-2016 Udacity Inc. All rights reserved.