Skip to content

gurusharan2/udacity-tournament-results

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

udacity-tournament-results

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

  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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages