Udacity Full-Stack NanoDegree (FSND) project: Tournament Planner
This is a project for my Udacity Intro to Programming Nanodegree. It is a Swiss style tournament. A summary of the task is to write a Python module that uses a PostgreSQL database to keep track of players and matches in a game tournament.
The game tournament will use the Swiss system for pairing up players in each round: players are not eliminated, and
each player should be paired with another player with the same number of wins, or as close as possible.
This project has two parts: defining the database schema (SQL table definitions), and writing the code that will use it.
Tournament code and test code are in Python. The database is in PostgreSQL.
cd
to folder where Vagrant is located.vagrant up
and when the prompt reappears vagrant ssh
to log inpsql
then connect to the tournament db \c tournament
CREATE DATABASE tournament
and to build the db with tables and views import the .sql file \i tournament.sql
tournament.sql
file to create a new DB called tournamentcd
to folder where Vagrant is located.vagrant up
and when the prompt reappears vagrant ssh
cd /vagrant/tournament
vagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$
python tournament_test.py