Skip to content

Andrew-Lipson/Chess-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess-Java

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:

1 Player White

Play against Stockfish as Black:

1 Player Black

2 Player Game:

2 Player

MOVES:

En Passant:

En Passant

Castling:

Castling

Promotion:

Promotion

GAME OVER:

White Wins:

White Wins

Black Wins:

Black Wins

Stalemate:

Stalemate

50 Move Rule:

50 Rule Move

Repetition:

Repetition

Insufficient Material:

Insufficient Material

Play Again:

Play Again

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages