Skip to content

sandviklee/Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess game in JavaFX ♟

Java Chess game made during the course TDT4100 - Object oriented programming at NTNU.

How does it work?

This Chess game is made with Java and JavaFX. The project is not fully finished and may contain some bugs. I am also not that happy with the quality/efficiency of the code.

The main menu consists of "New Game" and "Load game".

The Main menu

Here you can change the player names, and pick white or black

If you dont choose your own names, it will be automaticly set as PLAYER1 and PLAYER2.

Players in game

How the players are represented ingame

New Game creates a new chessboard, and places the pieces in their startposition.

Load Game loads an already existing chessboard from a saved file.

This chess game follows the most basic rules of chess. How the pieces move ( -Castling), white starts then black, Check and Checkmate. Autoqueen is also implemented, so that when a Pawn reaches the other side, it will turn into a Queen.

Pieces moving on the chessboard

Here we can see the pieces moving on the chessboard

All the pieces that have been "knocked" gets stored in CHESSPIECES OUT.

Chesspieces out

Here we can see how Chesspieces Out works

Black king in check

Here we can see what happends when the black king is in check

Black won

Here we can see what happends when black wins

The buttons Offer draw and Claim Draw are options to end the game when you feel like it.

You are also able to save and load your progress in the game with the save button and load button as seen on the gameplay screen.

Saving Here we can see what happends when you click save

Yet to be implemented:

  • Pieces moving. ☑
  • Piece patterns and logic. ☑
  • IO system, storing and accessing files. ☑
  • Switching between White and Black logic. ☑
  • Check game state (Checkmate, Check and draw). ☑
  • Show all garbage pieces. ☑
  • Add Players. ☑
  • JUnit 5 Tests ☑

What i want to implement in the future:

  • AI that you can play against.
  • Better coding structure, with more efficient code.
  • Show last move (With the chess terms).

Project Keypoints

Keypoints Description
Precentage of grade 35% (App) + 15% (Documentation/Theory)
Deadline 29. April 2022
Demonstration due 03. May 2022

About

Simple Chess game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages