How omghonasgi/581-p2-maintenance works
This is a Pygame Minesweeper game. The main workflow starts the game, lets a player choose a mine count, then handles board moves and displays the result. The README documents safe first clicks, flood-fill reveals, flags, number clues, and win/loss detection; the sampled executive code also indicates AI play and difficulty selection. Most behavior lives in executive.py, so several distinct responsibilities share that path. The source excerpts do not expose the full AI implementation or all event-handling calls.
Main entry points: executive.py Reveal and flood fill · main.py Game launcher · cell.py Cell state
Components 15
Game runtime
- Game launcher
main.py - Game controller
executive.py
Board and gameplay
- Cell state
cell.py - Board setup
executive.py - Safe first click
executive.py - Mine counts
executive.py - Reveal and flood fill
executive.py - Flagging
executive.py - Win and loss
executive.py - AI play
executive.py
Player interface
- Mine-count slider
executive.py - AI difficulty
executive.py - Board and screens
executive.py - Game sounds
executive.py
Other components
- Player
Connections 15
- Player → Game launcher: starts
README.md - Game launcher → Game controller: runs
main.py - Game controller → Cell state: uses
executive.py - Player → Mine-count slider: chooses mines
README.md - Mine-count slider → Board setup: sets mine count
README.md - Player → Reveal and flood fill: reveals cell
README.md - Board setup → Safe first click: protects first move
README.md - Reveal and flood fill → Mine counts: shows clues
README.md - Reveal and flood fill → Win and loss: checks completion
README.md - Player → Flagging: toggles flag
README.md - Player → AI difficulty: selects difficulty
executive.py - AI play → Reveal and flood fill: uncovers cell
executive.py - Game controller → Board and screens: draws screens
executive.py - Reveal and flood fill → Game sounds: plays sound
executive.py - Win and loss → Board and screens: shows result
executive.py