A Java implementation of the classic code-breaking game Mastermind, built with JavaFX for the GUI.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java 19 or later
- JavaFX 19 or later
- Clone the repository to your local machine using
git clone https://github.com/Embrejs/Mastermind.git
- Open the project in your preferred IDE
- Run the
main()
method in theMain
class to start the game
- The game will randomly generate a 4-peg code for you to guess. The pegs can be one of six colors.
- Make a guess by clicking by choosing right color for each positon
- Click the "Check" button to submit your guess
- The game will give you feedback on your guess in the form of "-" and "+".Minues mean that the color is in the wrong position but is in the code elseware, pluses mean that the color is in the right position.
- Continue guessing until you correctly guess the code or until you run out of turns.
This project is licensed under the MIT License - see the LICENSE file for details.
- Game saves the score in the files
- Show the history of previous attempts
- Reset game button
- Feel free to submit pull requests for bug fixes and new features
- If you find any bugs, please report them by creating an issue on the repository
If you need any help with the game or have any questions, please open an issue on the repository or contact the author directly.