Giter Club home page Giter Club logo

udacity_project_2_tournament's Introduction

Welcome to the tournament python program. This is a submission for the second assignment
of the Udacity Full Stack Development NanoDegree.

In order to sucessfully run the application, make sure that the
following steps are followed.

1: Check that the following python packages are present in your python installation
	psycopg2
	itertools
	pprint
	operator

2. To set up the Postgres database for this program, you will have to run tournament.sql
   Before running it, please modify the line after the MODIFY line to make sure it connects
   to a databse which exists on the system but it not the tournament database. This is to
   ensure that if there it a tournament database it can be sucessfully re-instantiated by
   the SQL file.

   Once that is done, make sure are in the tournament project directory when you sign into
   PSQL. When you are inside you can issue the following command to create the database:

   	'\i tournament.sql'

   Without the quotation marks

3. Now that your database has been instantiated. You can run the tournament_test.py file.
   This will test the functionality of the tournament.py module.

ADDITIONAL INFORMATION

This module supports all of extra credit features including multiple tournaments, rematch
prevention, and odd and even number of players support. The multiple tournament support
works by having a table to relate player IDs and tournament IDs. So if a player wants to
register in two tournaments seperately, it is like registering twice as each player ID can
only be associated with one tournament ID. If I were to improve how this works I would allow
for one player ID to be part of multiple tournaments. I did not implement this however because
of the way that I count the player standings in Postgres (and the query would have gotten really
muddled up!).

udacity_project_2_tournament's People

Contributors

andreitich avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.