Skip to content

thawkin3/office-competition-ranking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

office-competition-ranking

Full stack app that uses the Elo rating system for intra-office activities like ping pong

Overview

New users can sign up under their organization to create a new account. They can then record games that they've played against other registered users. With each new recorded game, the players' Elo ratings are updated. The leaderboard shows how each player is ranked and includes data for their Elo rating, number of games played, number of wins, and number of losses.

Theory

The Elo rating is a simple rating algorithm used in chess and some other sports and games. For the theory and math involved, see this article: https://en.wikipedia.org/wiki/Elo_rating_system. I've chosen a K-factor of 32 and a starting value of 1200 for each new player so that your score is always positive.

Technologies used

  • Node/Express (Backend to handle routing and API requests)
  • Passport (Authentication)
  • MongoDB/Mongoose (Database)
  • HTML/CSS/jQuery (Frontend UI)

Cloning the repo

If you'd like to clone this repo and run this app on your own server, go ahead! After cloning the repo you'll need to do the following:

  • npm install to get all the Node modules
  • create a MongoDB database
  • create a users collection and a games collection within that database
  • create an .env file to store your SESSION_SECRET (ex. my_secret) and your DB_CONNECTION (ex. 'mongodb://localhost/myReallyCoolDb')

Feature requests and bug reports

If you've found a bug or would like to request a feature, please file an issue on this repo. PRs are welcome!

About

Full stack app that uses the Elo rating system for intra-office activities like ping pong

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published