Our Java AI chess program, developed with Netbeans 17 and Java 8, builds upon our previous 2-player GUI chess game by incorporating an AI mode. Using the minimax algorithm with alpha-beta pruning, our program offers an immersive chess-playing experience. Whether you enjoy challenging the AI or playing against a friend, our program supports both single-player and two-player modes. Furthermore, you can conveniently save and load previous games using the embedded database, enabling you to review historic moves and continue your chess journey at your own pace.
- Uses the minimax algorithm with alpha-beta pruning for AI gameplay.
- Includes an embedded database for saving and loading previous games.
- Allows viewing historic moves from finished games using embedded database.
- Offers a single-player mode and two-player mode
- Options for resignation or draw
- Displays available squares for a chess piece when clicked on
- Sound effects for chess moves, check, capture and checkmate
- Clone AI-Chess-Game with Git
git clone https://github.com/pjsiri/AI-Chess-Game.git
-
Start the game by running ChessMain.java
-
Have fun!
Note: AI-Chess-Game can be directly imported into NetBeans
AI-Chess-Game is available under the MIT License.
See License for more details