The classic Minesweeper game with an AI-powered Autoplay feature
Report Bug
·
Request Feature
Table of Contents
Minesweeper (with Autoplay) is a Java-based implementation of the classic Minesweeper game, planned to be enhanced with an AI-powered Autoplay feature that helps to automatically open or mark the obvious boxes based on basic AI logic. The game presents users with three difficulty levels and maintains high scores for each level in a local highScore.txt
file.
- Classic Minesweeper gameplay
- Three difficulty levels to choose from
- AI-powered Autoplay feature (In development)
- Local high score tracking
To set up Minesweeper (with Autoplay) locally, follow these steps:
- Ensure you have at least JDK 22 installed. You can download it from here.
- Any Java IDE - (Install IntelliJ IDEA from here).
-
Clone the repository:
git clone https://github.com/saharsh-agrawal/Minesweeper.git cd Minesweeper
-
Open the project in IntelliJ IDEA.
-
Run the application:
- Navigate to
src
folder. - Locate
Minesweeper.java
. - Right-click on
Minesweeper.java
and selectRun 'Minesweeper.main()'
.
- Navigate to
Upon running the application, a main window will appear, asking the user to choose a level of difficulty (Easy, Medium, Hard). The game board is then presented according to the chosen difficulty. High scores are saved locally in highScore.txt
.
- The Autoplay feature is currently under development.
- When enabled, it will use AI logic to help play the game.
- A button exists to toggle this feature.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- Ensure your development environment is set up with JDK 22 and IntelliJ IDEA.
- Refer to the Installation section for initial setup instructions.
- Fix high score storage issue for packed JAR files.
- Implement Autoplay feature with basic AI logic.
- Add more advanced AI features for improved gameplay.
See the open issues for a full list of proposed features (and known issues).
Maintainer - Saharsh Agrawal