Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/citralflo/mastermind
Code for Mastermind game, for my studies
https://github.com/citralflo/mastermind
Last synced: 6 days ago
JSON representation
Code for Mastermind game, for my studies
- Host: GitHub
- URL: https://github.com/citralflo/mastermind
- Owner: CitralFlo
- Created: 2023-01-16T01:22:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T16:57:44.000Z (about 1 year ago)
- Last Synced: 2024-10-12T03:49:54.997Z (about 1 month ago)
- Language: Java
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mastermind Game
A Java implementation of the classic code-breaking game Mastermind, built with JavaFX for the GUI.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
- Java 19 or later
- JavaFX 19 or later### Installing
1. Clone the repository to your local machine using `git clone https://github.com/Embrejs/Mastermind.git`
2. Open the project in your preferred IDE
3. Run the `main()` method in the `Main` class to start the game## How to Play
1. The game will randomly generate a 4-peg code for you to guess. The pegs can be one of six colors.
2. Make a guess by clicking by choosing right color for each positon
3. Click the "Check" button to submit your guess
4. 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.
5. Continue guessing until you correctly guess the code or until you run out of turns.## Built With
- [Java](https://www.java.com/) - Programming language
- [JavaFX](https://openjfx.io/) - GUI framework## Author
- [Embrejs](https://github.com/CitralFlo)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
- [Inspiration](https://en.wikipedia.org/wiki/Mastermind_(board_game))
- [JavaFX Tutorials](https://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm)## Additional features
- Game saves the score in the files
- Show the history of previous attempts
- Reset game button## Contribution
- 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## Support
If you need any help with the game or have any questions, please open an issue on the repository or contact the author directly.