Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.18 KB

README.md

File metadata and controls

46 lines (37 loc) · 1.18 KB

tournament

This is a small database application that tracks results from a Swiss-style tournament.

prerequisites

python 2.7
postgres 9.5.6

installation

vagrant@vagrant:/vagrant/tournament$ psql  
psql (9.5.6)  
Type "help" for help.  
vagrant=> \i tournament.sql  

running unit tests

vagrant@vagrant:~$ cd /vagrant  
vagrant@vagrant:/vagrant$ cd tournament  
vagrant@vagrant:/vagrant/tournament$ python tournament_test.py  

methods

connect() -- connect to the tournament database
deleteMatches() -- delete all matches
deletePlayers() -- delete all players
countPlayers() -- count the players
registerPlayer(name) -- register a player
playerStandings() -- get a list of all players and their statistics sorted by who has won the most matches
reportMatch() -- record the results of a match
swissPairings -- get the pairings for the next round of the tournament

version

version 0.1

authors

Kenneth Kehl

acknowledgements

This project was a class project for the Udacity full stack nanodegree.

license

This project is released under the MIT License