OpenClassrooms - Python Developer Path: Project 4
Student: Abdoul Baki Seydou
Date: 31/12/2022
In this project, as a junior freelance developer presented with the first opportunity of a potential client project, the task consists of creating a standalone tournament management application for a local chess club, Castle Chess, that allows the tournament managers to run the entire events offline.
- Players: Add players and update their ratings.
- Tournaments: Create, start and resume tournaments.
- Player Pairings: Using the Swiss tournament system.
- Reports: Display reports on players, tournament's rounds and matches.
- Create players.
- Create a new tournament.
- Add eight players in the tournament.
- Start the tournament created and run the rounds.
- The application generates the pairings automatically.
- Input match scores: the winner receives 1 point, the loser 0, and 0.5 each for a tie.
- Programming Language: Python
- Libraries: tabulate.
- Database: TinyDB, in Json format.
- Design Models.
- Create the menu Views then the Controllers handling the logic of the view.
- Python 3.6 or higher.
- Clone the Repository
cd /path/to/put/project/in git clone https://github.com/Afudu/P4_OpenClassroom.git - Move to the folder
cd P4_OpenClassroom - Set Up Virtual Environment
python -m venv venv
- Activate Environment
source venv/bin/activate - Securely upgrade pip
python -m pip install --upgrade pip
- Install dependencies
pip install -r requirements.txt
- To deactivate Environment
deactivate
-
Follow the steps above.
-
To activate the environment:
.\venv\Scripts\Activate
- To run the application:
python main.py
The codebase is fully linted and free of errors.
- To Run Linting
flake8


