Giter VIP home page Giter VIP logo

swiss-tournament-db's Introduction

Tournament Results

Introduction

A smarter tournament system in which players are paired with those of similar skill level and everyone competes in every round. More fair than an elimination bracket and more efficient than a round-robin tournament.

A PostgreSQL database stores match results, and a Python module queries the database to rank and pair players. When two players have the same win record, ties are broken by summing the win record of each player's previous opponents.

Documentation

To read more about the concept and details of the implementation visit Concept.md.

Requirements

  • Python: Make sure you have python installed. You can check if it is installed by running python --version
  • Virtualbox and Vagrant: You can check if it is installed by running vagrant -v

Installation

  1. Clone the github project with git clone https://github.com/sonnenfeld269/swiss-tournament-db.git
  2. Go inside the folder with cd swiss-tournament-db
  3. If you already have psql installed then go to step 4, otherwise use vagrant up and then vagrant ssh to start the virtual machine.
  4. Use psql command start psql the console and connect to the tournament database with \c tournament.
  5. Now you can use any sql commands like SELECT * FROM players; to browse tables or you can play with the db-api in python by changing queries inside tournament.py

References

https://wiki.postgresql.org/wiki/Using_psycopg2_with_PostgreSQL

swiss-tournament-db's People

Contributors

sonnenfeld269 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.