MexTermin / draughts

Draughts game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DRAUGHTS

  1. Description
  2. Rules
  3. Instructions
  4. Install colorama
  5. Install pip

Description

Draughts is a board game for two opponents. The game consists of moving the pieces diagonally through the red or squares of a board of 64 squares with the intention of eating (capturing) the pieces of the opposing player passing over those pieces.


Rules

  • Draughts is played by two opponents, on opposite sides of the ? gameboard.

  • One player has the green pieces; the other has the yellow pieces.

  • Players alternate turns.

  • A player may not move an opponent's piece.

  • A move consists of moving a piece diagonally to an adjacent >unoccupied square.

  • The pieces can only move one square at a time except when they >are eating an enemy piece

  • If the adjacent square contains an opponent's piece, and the >square immediately beyond it is vacant, the piece may be eated (and >removed from the game) by jumping over it.

  • Only the red squares of the checkered board are used.

  • Capturing is mandatory

  • Normal pieces can only be moved forward (where the opponent's >pieces are located at the beginning of the game)

  • Queen pieces can be moved back and forth but the same amount of >squares as normal pieces

  • The game ends when one of the two players run out of pieces


Instructions

  • Download and install python, here's the link

  • Install Colorama library

  • Contain all project files in the same folder

  • run the draughts_game.py file in the system console

  • follow the instructions of the game presented on the console


Install colorama

colorama is currently installable from PyPI:

  pip install colorama

Install pip


Install pip

On windows

Once you’ve confirmed that Python is correctly installed, you can proceed with installing Pip.

  1. Download get-pip.py to a folder on your computer.

  2. Open a command prompt and navigate to the folder containing get-pip_py

  3. Run the following command:

    python get-pip.py
    
  4. Pip is now installed!

On Linux Systems

To install pip in Linux, run the appropriate command for your distribution as follows:

  • Install PIP On Debian/Ubuntu

    # apt install python-pip	#python 2
    # apt install python3-pip	#python 3
    
  • Install PIP On CentOS and RHEL

    # yum install epel-release 
    # yum install python-pip
    
  • Install PIP on Fedora

    # dnf install python-pip	#Python 2
    # dnf install python3		#Python 3
    
  • Install PIP on Arch Linux

    # pacman -S python2-pip	        #Python 2
    # pacman -S python-pip	        #Python 3
    
  • Install PIP on openSUSE

    # zypper install python-pip	    #Python 2
    # zypper install python3-pip	#Python 3
    

About

Draughts game


Languages

Language:Python 100.0%