How matthewh33/minesweeper-ai works
This is a screen-based Google Minesweeper assistant. Its main workflow captures a configured screen region, classifies a fixed grid, asks the deterministic constraint solver for safe/flag moves, and displays those suggestions in an overlay and HUD. A separate capture-preview utility helps adjust screen bounds; it is not shown as wired into the assistant because no such connection is evidenced. The excerpts establish the main calls, though omitted portions limit detail on frame-loop dispatch.
Main entry points: Minesweeper.py Screen capture loop · google_minesweeper_solver.py Move inference · screen-config.py Capture preview
Components 9
Live assistant
- Screen capture loop
Minesweeper.py - Grid detection
Minesweeper.py - Move overlay
Minesweeper.py - Board HUD
Minesweeper.py
Constraint solver
- Move inference
google_minesweeper_solver.py - Manual board CLI
google_minesweeper_solver.py
Capture configuration
- Capture preview
screen-config.py
Other components
- Operator
- Desktop display
Connections 9
- Operator → Screen capture loop: starts and controls
README.md - Screen capture loop → Grid detection: passes frames
Minesweeper.py - Grid detection → Move inference: passes board
Minesweeper.py - Manual board CLI → Move inference: passes board
google_minesweeper_solver.py - Screen capture loop → Move overlay: draws suggestions
Minesweeper.py - Screen capture loop → Board HUD: renders status
Minesweeper.py - Move overlay → Desktop display: shows frame
Minesweeper.py - Board HUD → Desktop display: shows panel
Minesweeper.py - Capture preview → Operator: previews bounds
screen-config.py