Skip to content

zhmgczh/MinesweeperDeterminator

Repository files navigation

Minesweeper Determinator

(Note that all content in this repository is released under the MIT license. Please carefully read the LICENSE file and properly credit the content before reusing, copying, or adapting it.)

Minesweeper Determinator is a Java application that analyzes the screen to detect the current state of a running Minesweeper game. It determines whether the next move requires guessing or if a logical step can be taken. When guessing is not necessary, it suggests all the next safe moves and can help you click if you want.

Currently, it only focuses on the fitness of the website https://minesweeper-pro.com/. The website is fully functionally cloned in the repository MinesweeperPro and is deployed at https://zhmgczh.github.io/MinesweeperPro/.

Minesweeper Determinator

Features

  • 📷 Screen Capture and Analysis: Automatically captures and recognizes the current Minesweeper board state from the screen.
  • 💣 Mine Counter Detection: Identifies the number of remaining mines.
  • 🧠 Guess Detection Logic: Determines whether a guess is required to proceed.
  • Safe Move Suggestion & Autoplay: Provides all safe moves and clicks for you when logical deduction is possible.
  • ⚙️ Cross-Platform (Java): Runs on any system with Java installed.

Requirements

How to Use

  1. Clone this repository:

    git clone https://github.com/zhmgczh/MinesweeperDeterminator.git
    cd MinesweeperDeterminator
  2. Run the project through the main class in Main.java, or simply run it via JAR:

    java --enable-native-access=ALL-UNNAMED -jar minesweeper-determinator.jar
  3. Make sure the Minesweeper window is visible on your screen when running the program.

  4. Follow on-screen instructions to let the program analyze the game state and suggest your next move. The best zoom-in percentage is 200%. The board needs to be completely shown on screen.

Future Improvements

  • Add support for different Minesweeper themes and resolutions.
  • Improve OCR accuracy for board state and mine counter detection.

This project is not affiliated with or endorsed by any official Minesweeper developer.

About

MinesweeperDeterminator is a Java application that quickly detects the current state of a Minesweeper game running on screen—including the number of remaining mines—and determines whether the next move requires guessing. If logical deduction is possible, it provides suggested safe moves and can help you click if you want.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages