The aim of the program is the to manage chest tournaments.
Tournaments are playing weekly. So they can be created one at a time.
About the rules, there are :
- 8 players by tournament.
- 4 rounds.
- 3 choices of time comtrol (blitz, bullet or rapid).
- colors are choosen randomly.
The format is a Swiss-sytsem tournament
mkdir foo
git clone git@github.com:jjbochard/ChessCheckCheckmate.git foo
cd foo
First, install Python 3.6+.
Then, create your virtual environnement :
python3 -m venv <your_venv_name>
Activate it :
-
with bash command prompt
source <your_venv_name>/bin/activate
-
or with Windows PowerShell
.\venv\Scripts\activate
Finally, install required modules
pip3 install -r requirements.txt
To deactivate your venv :
deactivate
You can install the configured pre commit hook with
pre-commit install
- Run the program
To start the program, use :
python ucm.py
- Create HTML file generate by flake8-html
To create this file, use :
flake8 --format=html --htmldir=flake8_rapport --exclude=env/
In this programm you can :
-
Manage tournament
-
Create a tournament
- enter the informations of the tournament
- add 8 players (already in base or create new players)
-
Create round
- incoming matchs are displayed
- end the round or go to the main menu
-
Write scores
-
When the tournament is finished, an overview table and the winner are displayed
-
-
Display informations
- About tournaments
- About rounds
- About matchs
-
before starting coding, think about packages to use. Here I could use one which is better for display menu and taking user input.
-
sometimes, the last match of the last round has already been played. I try to respect as much as possible the Swiss System and favorise the last player by creating 2 other matchs with the last 4 players of the tournament. If all the potential matchs have already been played, I create 3 other matchs with the last 6 players.
-
divise the controllers file in other smaller files for better readness.