Skip to content

terrazoon/tournament

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages