Skip to content

AI driven Minesweeper using Propositional Logic & Knowledge Inference

Notifications You must be signed in to change notification settings

Tsu-HaoLiu/AI-Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

made-with-python made-with-pygame

AI-Minesweeper Companion

AI enhanced Minesweeper helper using Propositional Logic & Knowledge Inference

Description

Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighbouring mines in each field.

This project includes an Artificial Intelligence companion! Using Propositional Logic and Knowledge Inference, the AI analyzes the board and checks whether a mine is located in the square. The more squares that are revealed, the better the AI becomes as they accumulated more and more knowledge with each move.

Usage

pip3 install -r requirements.txt
python3 minesweeper.py

Releases