How jaycasamorin/minesweeper works
A single-file Tkinter Minesweeper game: the player selects a board size, then plays by revealing or flagging cells; the game updates the board display and handles win/loss and restart. All repository behavior is in minesweeper.py; omitted source excerpts limit detail about some UI wiring.
Main entry points: minesweeper.py Game Controller
Components 9
Other components
- Player
- Startup and Setup
minesweeper.py - Game Controller
minesweeper.py - Mine Board
minesweeper.py - Board Display
minesweeper.py - Game Dialogs
minesweeper.py - Tkinter
- Random Module
- NumPy
Connections 16
- Player → Startup and Setup: chooses size
- Startup and Setup → Game Dialogs: prompts size
- Startup and Setup → Game Controller: creates game
- Startup and Setup → Tkinter: opens window
- Game Controller → Mine Board: initializes board
- Mine Board → Random Module: samples mines
- Mine Board → NumPy: allocates array
- Mine Board → Board Display: draws board
- Player → Game Controller: clicks cells
- Game Controller → Mine Board: checks cells
- Game Controller → Board Display: updates cells
- Game Controller → Game Dialogs: reports outcome
- Game Dialogs → Game Controller: requests restart
- Game Controller → Mine Board: regenerates board
- Player → Board Display: zooms view
- Board Display → Game Controller: redraws board