Skip to content

nasr-edine/P4_drai_nasr-edine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projet 4

Développez un programme logiciel en Python

Installation

clone repository locally

git clone https://github.com/nasr-edine/P4_drai_nasr-edine.git

Create a virtual environment in root folder of project

python -m venv env

Activate virtual environment

source ./env/bin/activate

Install dependencies

pip3 install -r requirements.txt

Usage

execute the python script below for starting the chess game management software:

python main.py

Folder Structure with db.json created

.
├── main.py                    # python file for run the chess game management software
├── model/                     # The central component of the pattern.
├── view/                      # Any representation of information
├── controller/                # Accepts input and converts it to commands for the model or view
├── flake-report/              # generating HTML reports of flake8 violations
├── db.json                    # Content list of all players and tournaments created by the script
├── requirements.txt           # for install all dependencies necessary for this project
└── README.md

How to check style code ?

Consulting HTML reports of flake8 violations

To generate flake8 report, type command below

⚠️ If you use this command: exclude virtual environment from flake8

flake8 --format=html --htmldir=flake-report --exclude=env
  • open flake-report/index.html file with your browser

  • click on the link below to consult the last report:

In command line
flake8 main.py controller model view 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published