A cross-platform Minesweeper game with AI solver.
- Minesweeper.Core - Shared game logic library
- Minesweeper.Web - Blazor WebAssembly web version
cd Minesweeper.Web
dotnet runThen open http://localhost:5000
- Create a new GitHub repository named
minesweeper-web - Push this code:
git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/YOUR_USERNAME/minesweeper-web.git git push -u origin main
- Go to repository Settings > Pages
- Set Source to "GitHub Actions"
- The workflow will automatically deploy
Your game will be available at: https://YOUR_USERNAME.github.io/minesweeper-web/
- Classic Minesweeper gameplay
- Three difficulty levels (Beginner, Intermediate, Expert)
- AI auto-play solver
- Timer and mine counter
- Flag cells with right-click
- Works on desktop and mobile browsers
The codebase follows clean architecture principles:
- Models - Cell, GameState, DifficultySettings
- Core Logic - GameBoard with thread-safe operations
- Solver - AI using logical deduction and probability analysis