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=> \qload 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
1. Old matches can be deleted.
2. Player records can be deleted.
3. After deleting, countPlayers() returns zero.
4. After registering a player, countPlayers() returns 1.
5. Players can be registered and deleted.
6. Newly registered players appear in the standings with no matches.
7. After a match, players have updated standings.
8. After one match, players with one win are paired.
Success! All tests pass!