Track Players' Scores during a Chess Game tournament: 8 players / 4 rounds / 16 matches.
Creation
: Add a new Player or Tournament in the databaseDatabase
: Display Player or Tournament informationTournament Tracker
: Enter to Tournament Tracker Menu for a specific Tournament saved in the databaseReset
: Reset the Database (Players and Tournaments Tables)
enter 'pla' : Display list of players by alphabet
enter 'plr' : Display list of players by rank
enter 'pi' : Access player information
enter 'tl' : Display list of tournaments
enter 'ti' : Access tournament information
Players
: Add player to the tournament, display info, modify rank and remove player -> Add 8 players to the tournament to start record scores
When 8 players added to the tournament, records can be started:
Players
:- Display players information
- Modify rank, only available if "record" of the first round not yet saved in the database
- Reset Players
Start Rounds
: enter scores for each matches of each rounds (4 matches per round)Results
: display tournament results when all rounds recordedReports
: get more information about rounds and matches
enter 'record' :
-Start generate Rounds and Matches
Enter 'results': Get results of the tournament
- Clone the repo
git clone https://github.com/Jliezed/oc_project_4_chess_game.git
- Go to your project directory
cd /oc_project_4_chess_game
- Install venv library (if not yet in your computer)
pip install venv
- Create a virtual environment
python -m venv env
- Activate the virtual environment
source env/bin/activate
- Install the packages using requirements.txt
pip install -r requirements.txt
- Run the script using the terminal
python main.py
- Generate a new Flake8 report
flake8 --format=html --htmldir=flake-report
The program generate a JSON file to keep track of players and tournaments information :