Table Soccer Elo Rank is an application to manage and calculate Elo scores in table soccer, keeping track of players' rankings.
This project aims to provide an Elo scoring system for table soccer, allowing players to record matches, update their Elo scores, and view the overall leaderboard.
- Elo Score Calculation: Implementation of the Elo scoring system to determine players' relative strength.
- Match Management: Capability to record matches between players, automatically updating Elo scores based on results.
- Player Leaderboard: Display of an updated overall leaderboard of players ordered by Elo score.
-
Clone the repository:
[email protected]:F4bio16/table-soccer-elo-rank.git
-
Install dependencies:
cd ./table-soccer-elo-rank python -m .venv source .venv/bin/activate pip install -r requirements.txt
-
Configure environments
Create file
.env
file:DB_NAME=elo-ranking.db ELO_MULTIPLIER_FACTOR=32
DB_NAME
name of SQLite database fileELO_MULTIPIER_FACTOR
constant K-factor used for Elo algorythm
-
Create database
source .env sqlite3 $DB_NAME < repositories/database.sql
-
Run the application:
python .