Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♞ Pygame Chess

A local two-player chess game built with Python and Pygame. The game includes custom graphics, a selection of visual themes, sound effects, move history navigation and automatic game saving.

MIT License


🎮 Features

  • ✔️ Local two-player chess
  • ✔️ Custom graphical themes:
    • Blue
    • Classic
    • Green
    • Metal
    • Wood
  • ✔️ Move history navigation:
    • Go to first move
    • Step backward
    • Step forward
    • Go to last move
  • ✔️ Board rotation based on active player
  • ✔️ Sound effects for various game actions
  • ✔️ Automatic save and resume of previous game state
  • ✔️ Original artwork designed in Adobe Illustrator (MIT licensed)
  • ✔️ Full chess rules implemented (castling, en passant, promotion, check, checkmate, stalemate)

🖼️ Screenshots

Game in action:

Gameplay_Screenshot

Theme selection screen:

Theme_Selection

🚀 How to Run

git clone https://github.com/aleksanderZak7/pygame-chess.git
cd pygame-chess
python Chess.py

⚙️ Requirements

This project requires Python 3.8+ and the pygame library.

Install dependencies

pip install pygame

🔊 Sound Effects


📁 Project Structure

pygame-chess
│
├── Chess.py            # Game entry point
├── src/
│   ├── game_control/   # Game state and core logic
│   ├── pieces/         # Chess piece classes (Pawn, Rook, etc.)
│   ├── views/          # UI screens (menu, game screen, etc.)
│   ├── project_assets/
│   │   ├── audio/      # Sound files
│   │   ├── img/        # Custom images
│   │   ├── SS/         # Screenshots
│   │   └── UML/        # UML diagrams

🧠 UML Diagrams

The project includes the following UML diagrams that illustrate the class structure and gameplay flow:

  • Complete UML Class Diagram:
UML_class_diagram
  • Complete UML Game Activity Diagram:
UML_activity_diagram

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A local two-player chess game built with Python and Pygame.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages