Skip to content

OmarxTarek/CPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Chess Piece Guide (CPG)

The Chess Piece Guide (CPG) is a discrete mathematics project developed for a college course. This Python application provides an interactive guide for learning about the movement rules of various chess pieces. The application features a graphical user interface (GUI) built with Tkinter, allowing users to navigate through different chess pieces, view their movement rules, and see visual representations of their moves on a 5x5 chessboard.

Features

  • Selection Window: Choose from a list of chess pieces to learn about their movement rules.
  • Image Display: View images of the selected chess pieces.
  • Description Labels: Read detailed descriptions of each chess piece's movement rules.
  • Navigation Buttons: Easily navigate between different chess pieces.
  • Guide Window: Open a detailed guide for each chess piece, including text descriptions and graphical representations of their moves.
  • Graphical Representation: Visualize the movement of chess pieces on a 5x5 chessboard using NetworkX and Matplotlib.

Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/CPG.git
    cd CPG
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python Python/projects/CPG/CPG.py

Dependencies

  • Python 3.x
  • Tkinter
  • Pillow
  • NetworkX
  • Matplotlib

Project Structure

  • Python/projects/CPG/CPG.py: Main application file.
  • images/: Directory containing images of chess pieces.

Usage

  • Launch the application and use the selection window to choose a chess piece.
  • Navigate through the pieces using the "Previous" and "Next" buttons.
  • Click "Open Guide" to view detailed information and graphical representations of the selected piece's moves.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published

Languages