Menu
- Usage
- Technologies
- Installation
- Execution of the program
- flake8 report
Manage a chess tournament.
App runs in the terminal.
User creates a new tournament then
User can enter players details and start the tournament.
Rounds are automatically generated following the rules of pairing.
User can access tables showing the status of the tournament at any time.
Tables showing reports are printed in the terminal.
Additional Feature: at any time user can change elo points of the players.
Pairing System: Swiss
Number of Rounds: 4
Number of Matches per Round: 4
Number of Players: 8
Points Assignment: Classic
- Winner: gets 1 points,
- Loser: 0,
- Draw: 0.5 each
Programming language: Python 3.9.5
Database engine: TinyDB.
You need to have Python installed on your machine.
This script has been developed using python 3.9.5.
Check your version of Python, if needed, upgrade your version.
Open a terminal wherever you want then follow these steps:
- Clone the repository:
git clone https://github.com/RafaRemote/chess.git
- Move to the root folder:
cd chess
- Install the virtual environment:
python3 -m venv env
or on windows: py -m venv env
- Activate the virtual environment:
source env/bin/activate
or on windows: env\Scripts\activate
- Upgrade pip:
pip install --upgrade pip
- Install the project dependencies:
pip install -r requirements.txt
From the terminal, be sure to be in the root folder (named 'chess'), then type:
python main.py
Now you just have to follow the menus which will be printed in the terminal.
In the root folder (named: 'chess') you'll find a folder called: 'flake8_rapport', including an index.html showing 'no flake8 violations'.
To generate a new report:
erase the folder 'flake8_rapport'.
be sure to be in the root folder 'chess', then type:
flake8 --format=html --htmldir=flake8_rapport