Skip to content

orangegirl85/udacity_p2_tournament_results

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tournament Results


* This is a Python application that uses PostgreSQL database to keep track of players
and matches in a swiss game tournament.

Prerequisites


  1. Install Vagrant and VirtualBox

  2. Clone the fullstack-nanodegree-vm repository

  3. Clone https://github.com/orangegirl85/udacity_p2_tournament_results repository into fullstack/vagrant/tournament_nico

Run App for Mac users


  1. Launch the Vagrant VM
    vagrant up
    vagrant ssh
  1. Navigate to tournament_nico folder:

cd /vagrant/tournament_nico

  1. Import tournament.sql in order to create the database, the tables and the views for the project:
    psql
    \i tournament.sql
  1. Connect in other terminal tab to the virtual machine
    vagrant ssh
  1. Navigate to tournament_nico folder:

cd /vagrant/tournament_nico

  1. Run app

python tournament_test.py

Resources


  1. Intro to Relational Databases - Udacity course

  2. find_path inspired by https://www.python.org/doc/essays/graphs/

Extras


  1. Project Structure
/tournament_nico
    .gitignore
    Readme.md
    tournament.py
    tournament.sql
    tournament_test.py
  1. Used unittest for testing Tournament App.

  2. Prevent Rematches Functionality

  3. Added generate_whole_swiss_tournament in tournament_test.py

Other


The algorithm for determining the swiss_pairings is not optimal. The optimal next matches between players with equal or nearly-equal win record should be determined in find_path not _get_next_matches_ids.

About

Udacity Project 2: Tournament Results

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published