Skip to content
/ Chess2D Public

A feature-rich chess game implementation in Python using Pygame with Stockfish AI opponent and sound effects.

Notifications You must be signed in to change notification settings

Gueni/Chess2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess 2D

Python License: MIT License: GPL v3 Platform Made with

Chess Icon

Chess 2D

A feature-rich chess game implementation in Python using Pygame with Stockfish AI opponent and sound effects. New verion : https://github.com/Gueni/Chess2D/blob/master/dist/chess_game.zip

Chess 2D Screenshot

Features

  • Complete chess rules implementation:
    • All piece movements (including en passant and castling)
    • Check/checkmate detection
    • Pawn promotion
    • Move validation
  • Stockfish AI integration:
    • Adjustable difficulty levels
    • Human vs AI or AI vs AI modes
    • Configurable thinking time
  • Sound effects:
    • Move sounds
    • Capture sounds
    • Check/checkmate notifications
    • Promotion sounds
  • Clean graphical interface:
    • Chess board with coordinates
    • Move highlighting
    • Scrollable move history log
    • Game status display
  • Fallback graphics when piece images aren't available
  • PyInstaller compatible resource loading

Requirements

  • Python 3.6+
  • Pygame
  • python-chess (for Stockfish integration)
  • Stockfish engine (included in repository)

Installation

  1. Clone the repository:
git clone https://github.com/gueni/Chess2D.git
cd Chess2D

How to Play

  • Left-click on a piece to select it (valid moves will be highlighted)

  • Click on a highlighted square to move the selected piece

  • When promoting a pawn, click on the desired piece type

  • Press ESC to cancel selection

Controls

  • Mouse: Select and move pieces

  • ESC: Cancel current selection

About

A feature-rich chess game implementation in Python using Pygame with Stockfish AI opponent and sound effects.

Resources

Stars

Watchers

Forks

Packages

No packages published