AI Minesweeper
Interactive Minesweeper game with AI assistance
A classic Minesweeper game refreshed with the ability to have AI assist you in making moves. I added difficulty levels, which was beyond the scope of the original assignment. A scoring system and a timer are coming soon!
The problem
The coursework had us design the AI logic to be able to determine the best move. After completing the course, I wanted to create a playable version that I could showcase while maintaining academic integrity.
How I solved it
I split the game in two. The board and interactions run in the browser, while the AI logic runs as a private serverless function that only ever receives revealed numbers and returns a single move. None of the AI logic is exposed, so the game is fully playable and academic integrity is maintained.
Try It Out
Pick a difficulty and try to solve it yourself or have AI help! The AI makes decisions based on the revealed numbers.*
How to play
- Left-click to reveal a square
- Right-click to flag a mine
- AI move suggests a safe square
* The AI runs server-side. The browser only ever sends revealed numbers and receives a move, so the inference logic is never downloaded and the AI can’t cheat by looking at the mines.