https://github.com/savinrazvan/minesweeper
An AI for playing Minesweeper, utilizing propositional logic and knowledge-based inference to identify safe cells and mines. The AI learns from the game's state to make informed decisions.
https://github.com/savinrazvan/minesweeper
ai algorithmic-puzzles educational-project game-ai knowledge-based-inference logical-reasoning minesweeper propositional-logic puzzle-solver python
Last synced: about 2 months ago
JSON representation
An AI for playing Minesweeper, utilizing propositional logic and knowledge-based inference to identify safe cells and mines. The AI learns from the game's state to make informed decisions.
- Host: GitHub
- URL: https://github.com/savinrazvan/minesweeper
- Owner: SavinRazvan
- License: mit
- Created: 2024-07-28T16:54:42.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T23:37:40.000Z (10 months ago)
- Last Synced: 2025-02-09T08:01:46.311Z (4 months ago)
- Topics: ai, algorithmic-puzzles, educational-project, game-ai, knowledge-based-inference, logical-reasoning, minesweeper, propositional-logic, puzzle-solver, python
- Language: Jupyter Notebook
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Project: Minesweeper AI
### Overview
This project involves developing an AI to play Minesweeper, utilizing propositional logic and knowledge-based inference to identify safe cells and mines. The AI will learn from the game's state to make informed decisions.### Key Components
1. **Minesweeper Class**: Manages game logic and the board.
2. **Sentence Class**: Represents logical sentences about the game, including sets of cells and mine counts.
3. **MinesweeperAI Class**: Implements the AI logic, using a knowledge base to make moves and infer safe cells or mines.### How to Run the Game
To run the game, execute the main script `minesweeper.py` in your terminal or command prompt. Ensure all dependencies are installed and configured correctly.