Back to projects Experimental
1 3 4 1 2 3 4 1 2 3 4 2 3 4 1 2 3 4 1 2 3 4 2 3 1 2 3 4 2 3 4 1 2 4 1 2 3 1 2 3 4 1 3 4 1 2 3 1 2 3 4 1 2
Experimental

Minesweeper Solver

AlgorithmGameAI
Overview

A passion project built around one of Hatem's favourite games — an automated Minesweeper solver that uses constraint-solving logic to clear boards. The project explores probabilistic reasoning and logic systems through a game lens.

Target

A personal challenge to automate a puzzle game using constraint-based logic.

Mission

Build a solver that can navigate the uncertainty of Minesweeper intelligently, making optimal decisions based on known constraints.

Challenges

  • Handling ambiguous board states where no deterministic move is available
  • Implementing constraint propagation correctly across the mine grid
  • Deciding when to make a probabilistic guess vs waiting for more information

What I Learned

Constraint satisfaction problem (CSP) modeling
Probabilistic decision-making under uncertainty
Logic system design for game AI
Algorithm design through the lens of a game I genuinely enjoy

Technologies

JavaScriptP5.js

© 2026 Hatem Mazid