GithubHelp home page GithubHelp logo

minesweeperai's Introduction

MineSweeperAI

This is a bot for game MineSweeper, only works in Windows OS with ms_arbiter.exe downloaded from http://www.minesweeper.info/downloads/Arbiter.html.

Here I improve the algorithm discussed in https://zhuanlan.zhihu.com/p/39669361. The original algorithm works well in easy (or beginner, i.e., 8×8, 10 mines) and normal (or intermediate, i.e., 16×16, 40 mines) difficulty modes, but too weak to solve the hard (or expert, i.e., 30×16, 99 mines) difficulty mode since it only uses naive strategy. In fact, we just need to solve an indeterminate linear system of equations to find all the safe positions to left click and mine positions to right click. If none is found, we can calculate the probability of every possible positions further and choose the position with least mine probability to left click.

Usage

Unpack Arbiter__0.52.3.zip, start ms_arbiter.exe, select a difficulty according to the code, then run the script and enjoy.

Demo

image
image
image

minesweeperai's People

Contributors

cosinhs avatar

Forkers

qcatqym fsdsoyu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.