Skip to content

SSAGAR0001/Tournament-Results

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#Tournament-Results

Introduction

Developing a database schema to store the game matches between players. Python code to query the given data and determine the winners of various games by Swiss System.

Documents

  • tournament.py : This file includes the basic functions required to evaluate and find the winner.
  • tournament_test.py : This file Tests all the possible outcomes and raises an exception if conditions are not fulfilled.
  • tournament.sql: This contains all the basic queries required in the project.

Steps To Run The Application:

  1. You should use terminal for Mac or Linux and Git Bash for Windows to run the application.
  2. Install Virtual Box from here : https://www.virtualbox.org/wiki/Downloads
  3. Install Vagrant from here : https://www.vagrantup.com/downloads.html
  4. Start the virtual machine by using vigrant up command.
  5. After downloading necessary files login to the Linux Vm using vagrant ssh command.
  6. Change the directory to the cloned folder by using cd /vagrant/tournament
  7. Open psql and import the given sql file using \i tournament.sql to your database.
  8. Run the file using python tournament_test.py

SUCCESS! All tests Pass!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published