Java Chess game made during the course TDT4100 - Object oriented programming at NTNU.
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.
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.
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.
Here we can see the pieces moving on the chessboard
All the pieces that have been "knocked" gets stored in CHESSPIECES OUT.
Here we can see how Chesspieces Out works
Here we can see what happends when the black king is in check
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.
Here we can see what happends when you click save
- 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 ☑
- AI that you can play against.
- Better coding structure, with more efficient code.
- Show last move (With the chess terms).
Keypoints | Description |
---|---|
Precentage of grade | 35% (App) + 15% (Documentation/Theory) |
Deadline | 29. April 2022 |
Demonstration due | 03. May 2022 |