Code Monkey home page Code Monkey logo

oc_python_p4_chess_app's Introduction

Project: Chess Tournament App

Menu

  1. Usage
  2. Technologies
  3. Installation
  4. Execution of the program
  5. flake8 report

1 - Usage

Manage a chess tournament.
App runs in the terminal.

User creates a new tournament then
User can enter players details and start the tournament.

Rounds are automatically generated following the rules of pairing.

User can access tables showing the status of the tournament at any time.
Tables showing reports are printed in the terminal.

Additional Feature: at any time user can change elo points of the players.

Tournament rules

Pairing System: Swiss
Number of Rounds: 4
Number of Matches per Round: 4
Number of Players: 8
Points Assignment: Classic

  • Winner: gets 1 points,
  • Loser: 0,
  • Draw: 0.5 each

2 - Technologies

Programming language: Python 3.9.5
Database engine: TinyDB.

3 - Installation

You need to have Python installed on your machine.
This script has been developed using python 3.9.5.
Check your version of Python, if needed, upgrade your version.

Open a terminal wherever you want then follow these steps:

  • Clone the repository:
git clone https://github.com/RafaRemote/chess.git
  • Move to the root folder:
cd chess
  • Install the virtual environment:
python3 -m venv env

or on windows: py -m venv env

  • Activate the virtual environment:
source env/bin/activate

or on windows: env\Scripts\activate

  • Upgrade pip:
pip install --upgrade pip
  • Install the project dependencies:
pip install -r requirements.txt

4 - Execution of the program

From the terminal, be sure to be in the root folder (named 'chess'), then type:

python main.py

Now you just have to follow the menus which will be printed in the terminal.

5 - flake8 report

In the root folder (named: 'chess') you'll find a folder called: 'flake8_rapport', including an index.html showing 'no flake8 violations'.

To generate a new report:

erase the folder 'flake8_rapport'.
be sure to be in the root folder 'chess', then type:

flake8 --format=html --htmldir=flake8_rapport

oc_python_p4_chess_app's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

desis1t

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.