Skip to content

LHJ-99/python-minesweeper-solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Minesweeper Solver

zh

A little side project.

The code is REALLY bad.

Some codes are stolen from Games Computers Play, go check his videos out it's great.

SETUP

NOTE! This solver only works on Windows system

  1. Download Minesweeper XArbiter, or any minesweeper game clone(Arbiter is recommended). Open the game.
  2. Change the scale to 125% in display settings (sorry for this one but I'll fix it if I have time).
  3. In terminal, run:
$ git clone https://github.com/jasonjustin/python-minesweeper-solver.git
$ pip install -r requirements.txt
$ cd python-minesweeper-solver

USAGE

SYNOPSIS

$ python solver.py [-m <mode>] [-t <times>] [-h | --help]

DESCRIPTION

The solver will automatically find the game on screen and solve it.

It can play the game from the beginning, or finish the already started game.

Note: The top left corner cell must be covered when run in the middle of the game

The solver can solve multiple times if user specify the time using -t. Statistics will be shown after all games are finished.

OPTIONS

-h
--help

Show all the options.

-m
--mode

Game mode, B for Beginner, I for Intermediate, E for Expert. Default is Expert mdoe.

-t
--times

Multi-game mode, default is one time.

TODO:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%