
MINESWEEPER
Silas Liu - Aug. 30, 2021
Python/Javascript, Knowledge AI
Minesweeper is a puzzle game that consists of a grid of cells and hidden mines. The goal of the player is to find all mines, without detonating them, flagging them correctly. Clicking on a mine cell causes it to detonate and loose the game. Clicking on a safe cell shows the number of neighboring cells that contains mines, without revealing them.
​
The AI to resolve the game can be implemented with Knowledge-Based actions. By making inferences based on the knowledge of the board, the AI is capable of flagging all mines in the end.
​
My original code was implemented in Python and uses the Pygame library for interface. It can be accessed through my GitHub link. The code was translated to Javascript to run here in webbrowser.