I have created a Chess game which follows all the rules according to FIDE (The International Chess Federation). The game has been written in Java and uses JavaFX to display the visuals. I have implemented a MVC (Model View Controller) architecture so that the Model and the View have no dependancies between them, meaning that theoretically I can change the View or the Model without changing the other.
You can play 2 player with both the White and Black Pieces being controlled by the user. You can also play 1 Player against StockFish, the best Chess engine in the world (https://stockfishchess.org/about/)
Setting up the code:
You must configure your IDE for use Java 11 and JavaFX. The program also uses a Stockfish commandline application which I have removed from the github.
-
Windows: To add stockfish you must download the necessary file from here (https://stockfishchess.org/download/), then move the application (.exe) into a new folder in your project called 'Stockfish'. Then rename the application file to 'stockfish.exe'
-
Mac: To add stockfish you must download the necessary file from here (https://stockfishchess.org/download/) and install it. Then go to src/main/java/Controller/Engine/Stockfish.java and comment out line 27 and uncomment line 28.
START GAME:
Play against Stockfish as White:
Play against Stockfish as Black:
2 Player Game:
MOVES:
En Passant:
Castling:
Promotion:
GAME OVER:
White Wins:
Black Wins:
Stalemate:
50 Move Rule:
Repetition:
Insufficient Material:
Play Again:












