udacity Full Stack Web Developer Nanodegree Project 2 - Tournament Results
##Files
- tournament.py -- implementation of a Swiss-system tournament
- tournament.sql -- table definitions for the tournament project.
- tournament_test.py -- Test cases for tournament.py
##Usage make sure database tournament exists
vagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$ psql psql (9.3.5) Type "help" for help.
vagrant=> CREATE DATABASE tournament; CREATE DATABASE vagrant=> \q
load SQL schema
vagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$ psql tournament < tournament.sql
run test
vagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$ python tournament_test.py
- Old matches can be deleted.
- Player records can be deleted.
- After deleting, countPlayers() returns zero.
- After registering a player, countPlayers() returns 1.
- Players can be registered and deleted.
- Newly registered players appear in the standings with no matches.
- After a match, players have updated standings.
- After one match, players with one win are paired. Success! All tests pass!