This project is an implementation of a basic chess game using Java Swing. The game features a graphical user interface that allows players to select and move pieces on the board, and includes basic game rules such as checking, capturing, and castling.
Here are some screenshots of my project:
To run the game, clone the repository to your local machine and compile and run the Main.java
class using your preferred Java compiler.
To play the game, simply click on a piece to select it, and then click on a highlighted square to move the piece to that location. If a move is invalid, the selected piece will return to its original location and an error message will be displayed.
The game includes basic chess rules such as checking, capturing, and castling. If a player's king is in check, the game will display a warning message. If a player's king is in checkmate, the game will display a message declaring the winner.
The game includes several customizable parameters that can be adjusted in the Chess
constructor in the Main
class, including:
player1Name
andplayer2Name
: the names of the two playersTheme
: we have two aesome themes (Dark - Green)
Additional customization options can be added by modifying the source code.
The game was created by Checkmate team.
- Mahmoud Bahaa AlDeen
- Yassin Mohammed Moustafa
- Youssef Mohammed Fathy
- Moustafa Mohammed mousa
- Karim Ebrahim Elbadawy
the tasks of the prject are clarified here ! https://sharing.clickup.com/9009137056/l/h/8cft1d0-300/6ff7353fe7cab00