A classic chess game implemented in Java, featuring a backend logic written in Java and a graphical user interface (GUI) created with Java Swing.
- Classic Chess Gameplay: Play chess with all standard rules.
- Java Backend: Robust backend logic implemented in Java.
- Java Swing GUI: Intuitive graphical user interface created using Java Swing.
- Responsive Design: Facilitates multiplayer gameplay on the same device by automatically flipping the board after each turn.
- Move Validation: Ensures legal moves according to chess rules.
- Move Undo and Redo: Adding the undo and redo functionalities to any number of moves.
- Check and Checkmate Detection: Identify and handle check and checkmate scenarios.
-
Clone the repository:
git clone https://github.com/MohammedKhaliid/chess-game.git
-
Navigate to the project directory:
cd Chess-Game/src/main/java/ChessPlay
-
Compile and run the application (or with your preferred IDE):
javac RunGUI.java java RunGUI
- Launch the application.
- Use the GUI to make moves by clicking on the pieces and selecting their destination.
- Use
ctrl
+z
orleft arrow
for the undo - Use
ctrl
+y
orright arrow
for the redo - Follow standard chess rules to play the game.
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.