Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 795 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 795 Bytes

Minesweeper

This project implements an AI using Python to play the classical minesweeper game.

It uses inference rules to decide what safe move it could take and if none is found, it choses a random one.

Getting started

run pip3 install -r requirements.txt to install the required Python package (pygame) for this project if you don’t already have it installed.

Usage

run python runner.py to start the game. You can either play yourself or click on AI move for the AI to decide and take the current move. In the console you could see the moves that the AI is choosing between.
The default size of the grid is 8 * 8 and the default number of mines is 8 which are distributed randomly. If you wish to change any of these values, alter them in runner.py file.