Chess

JavaFX based Chess Game.

Stars
6

Chess

[email protected] https://github.com/MitchellGray100/Chess

JavaFX based Chess Game. It's chess

As a personal project, I created a representation of Chess in Java that allows chess pieces to make valid moves, checks if the king is in check or checkmate, determines if a player is in stalemate, changes the piece scoreboard as the game goes on, checks if a piece is being protected and/or protecting another piece, and has a custom AI that uses MiniMax techniques. The project is displayed with JavaFX. Now Supports 1 Player (with AI) and 2 Player modes.


Play

Images

The Title screen. One Player mode is for playing against the AI and Two Player mode is for playing against another player on the same machine. Image of The Title Screen

Start of game

Yellow dots show the last piece to move and where that piece moved from.

Green Dots appear when clicking on a piece to indicate its a valid move. Currently the black queen is selected.

The AI will use the c3 knight to take the e4 knight to gain 3 points.

The d5 pawn takes the e4 knight to gain 3 points. Points balance out to 0:0.

Game ending in black checkmating white. Text appears on screen.

Backend Representation of the game (Not the actual GUI) Image of Start of Game

GIFs

Scaling of the window.

Promotion buttons being clicked. Whatever button is selected is what the pawn will promote to when promoting. Promotion Buttons switching