Skip to content

javachaos/JChess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JChess

CodeQL

3 day project [WIP]

JChess is a Java application that lets you play chess with a graphical user interface (GUI) built using JavaFX. This chess game comes with several features such as the ability to save and load games to JSON files, and undo and redo moves.

JChess Img

Features

JChess has the following features:

  • Graphical user interface (GUI) built with JavaFX
  • Save and load games to JSON files
  • Undo and redo moves

Getting started

To run the JChess application, you'll need to have Java and JavaFX installed on your system.

Prerequisites

  • Java (version 20 or higher)
  • JavaFX (version 20 or higher)

Installing

  1. Clone the JChess repository to your local machine
  2. Install Java and JavaFX if you don't have them already
  3. Open a command prompt or terminal and navigate to the directory where you cloned the repository
  4. Run the following command to compile and run the application:
./mvnw javafx:run

Usage

To play JChess, simply start the application and begin playing! Use the mouse to click and drag pieces to move them on the chessBoard. To save a game, go to the "File" menu and select "Save". To load a saved game, go to the "File" menu and select "Load". To undo or redo a move, use the "Undo" and "Redo" buttons on the toolbar.

Contributing

If you'd like to contribute to JChess, feel free to submit a pull request or open an issue on the GitHub repository.

RoadMap

I hope to eventually implement a simple DQN neural network and train the AI to play better than most human players. Or simply implement a minimax algorithm which can achieve the same level of intelligence.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

About

A simple and fun chess game for learning how to implement a game using JavaFX.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages