Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 879 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 879 Bytes

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