Skip to content

elyes136/Chess-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ Chess Game in Python

A complete implementation of the classic game of Chess, written in Python.
This project was built to practice object-oriented programming, algorithmic thinking, and clean code design.


✨ Features

  • Full chessboard logic with movement rules for all pieces
  • Check, checkmate, and stalemate detection
  • Move validation (king cannot move into check)
  • Pawn promotion and en passant supported
  • Turn-based gameplay directly in the terminal

🛠️ Tech Stack

  • Language: Python
  • Paradigm: Object-Oriented Programming (OOP)
  • Structure: Multiple classes (Board, Piece, King, Queen, etc.)

🚀 Future Improvements

  • Add a Graphical User Interface (GUI) with Tkinter or Pygame
  • Implement an AI opponent (e.g., with minimax or stockfish integration)
  • Add move history and PGN export

📚 Learning Goals

This project was made to practice:

  • Python fundamentals and OOP
  • Designing algorithms for game rules
  • Writing modular, reusable code
  • Using Git & GitHub for version control

▶️ How to Run

Clone the repository and run the main file:

git clone https://github.com/<your-username>/<your-repo>.git
cd <your-repo>
python3 main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages