Giter Club home page Giter Club logo

swisspairing's Introduction

Swiss Pairing With PostGreSQL

In this we'll cover how and what to install in order to correctly open and run the Swiss Pairing tournament_test.py file

Applications you'll need:

  1. Oracle VM Virtual Box: We use version 4.3.40 and only the hosts are required, not the SDK.
  2. Vagrant The most recent verion of Vagrant must also be installed.
  3. Git Bash Will be the command line we will use to navigate to and run the files.

The Files

Click here to download the folder containing the needed files, or if you know how to use git you can clone https://github.com/CristianAThompson/SwissPairing.git

Steps to initial run:

  1. First open your git bash.
  2. Using command-line navigation cd followed by the location from where your prompt starts for instance windows command prompt opens at c/Users/<Your Username> to navigate to the desktop it would be cd Dekstop Note: the directory is case specific. If you need to see what files are within the current directory you can use ls.
  3. Once you've navigated inside the folder SwissPairing inside your command line interface you will run vagrant up which will start the initial install of all the necessary dependencies to run the tournament files.
  4. After the command finishes you will follow it with vagrant ssh which will log you in to the virtual environment where we will run the files.
  5. After it is installed the command line will say vagrant@vagrant-ubuntu-trusty-32:~$ once this appears we will have to navigate to the tournament folder so we can run the files to do this we will have to run cd .. two times to move to the parent folders.
  6. After having run cd .. two times we should have the line vagrant@vagrant-ubuntu-trusty-32:/$ instead, once here we will type in cd vagrant/tournament to navigate to the folder with the tournament files.
  7. Once we've run that command it should say vagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$ once here we need to run the sql file to create the database and tables for the tournament.
  8. To create the database we will type psql
  9. You'll know you're inside psql when it says vagrant=> we will then type \i tournamentdb.sql which will create the database after which we will type \c tournament and run \i tournamenttables.sql again and it will create all the tables needed. After it runs type \q to leave psql
  10. Finally to run the tournament_test file we will type python tournament_test.py
  11. To exit Vagrant after the test simply type logout
  12. To stop Vagrant running in the background when done type vagrant halt

swisspairing's People

Contributors

cristianathompson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.