Python app for create chess tournament
- Python chess contest is an app who allow an user to create a players, tournaments, turns and match.
- the tournament is designed for 8 players.
- To generate the pairs, we use the suiss system
Python 3.8.5
To start this project, you need to :
- clone the repo from this page.
- if you want to running the app on a virtual environnment, create it and launch it after installing packages :
python -m venv env
source env/bin/activate
- you need to install all the package mentionned in requierement.txt :
pip install -r requirements.txt
- launch the app with python (exemple for python3)
python3 controller.py
- Create one on more players. You have to create at least 8 players to start a tournament. Each player have a unique ID. Follow the instruction in your terminal to complete all the required informations.
- Create a tournament. You can select players by ID to integrate them in the tournament. Follow the instruction in your terminal to complete all the required informations. For the time control, you have 3 choices : "bullet", "blitz" or "coup rapide". When the tournament is lauched, just follow the information in the terminal. You can quit the tournament when you want to resume later.
- Resume a tournament, you have to select a tournament by his ID for resume.
- generate a report ( check the informations in the subsection "generate a report menu underneath" )
- update player rank . You also have the possibility to update the rank player after each turn. Just select a player id and a tournament ID, then update the player rank.
You can display the following informations in a report :
- list of all players by name
- list of all players by rank
- list of all tournament's players by name
- list of all tournament's players by rank
- list of all tournaments
- list of all tournament's turns
- list of all tournament's match
Be sure that the program is closed, and launch this following command :
flake8 --max-line-length=119 --format=html --htmldir=flake-report
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Dimitri hoareau - https://twitter.com/dimitriHoareau1 - [email protected]
Project Link: https://github.com/dimitri-hoareau/P02_scraper/