Skip to content

An AI that is able to play (and most of the times win) the classical mine sweeper game. GUI is designed using PyGame.

Notifications You must be signed in to change notification settings

HossamSayed99/MineSweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An AI that is able to play (and most of the times win) the classical mine sweeper game. GUI is designed using PyGame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages