Skip to content

Semester Project for Data Structures and Algorithms

Notifications You must be signed in to change notification settings

ahmedivy/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

The task is to build an AI with Python that can play Minesweeper. Minesweeper is a puzzle game that consists of a grid of cells, where some of the cells contain hidden “mines.” Clicking on a cell that contains a mine detonates the mine, and causes the user to lose the game. Clicking on a “safe” cell (i.e., a cell that does not contain a mine) reveals a number that indicates how many neighboring cells – where a neighbor is a cell that is one square to the left, right, up, down, or diagonal from the given cell – contain a mine.

Implementation:

Humans reason based on existing knowledge and draw conclusions. The concept of representing knowledge and drawing conclusions from it, is also used in AI, and in this project you cans see how I achieved this behavior.

Clone the repo and make sure to install requirements pip3 install pygame

About

Semester Project for Data Structures and Algorithms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages