How m-mueller/minesweeper works
This is a terminal Minesweeper game: a player chooses a game and difficulty, navigates the board, marks or reveals cells, and sees a win/loss result. The curses controller creates and updates the game; rendering presents its state. Internally, the game rules operate on a 2D table that stores mines, flags, and hints. The README documents the curses launch; the sampled source shows the controller, game, and table interactions.
Main entry points: minesweeper_curses.py Game controller · minesweeper.py Random board setup · table.py 2D table
Components 7
Terminal interface
- Game controller
minesweeper_curses.py - Game menus
minesweeper_curses.py - Screen renderer
minesweeper_curses.py
Game logic
- Random board setup
minesweeper.py - Game rules
minesweeper.py
Board data
- 2D table
table.py
Other components
- Player
Connections 7
- Player → Game controller: plays through
README.md - Game controller → Game menus: opens menus
minesweeper_curses.py - Game controller → Random board setup: creates game
minesweeper_curses.py - Game controller → Game rules: updates game
minesweeper_curses.py - Game controller → Screen renderer: draws screen
minesweeper_curses.py - Random board setup → 2D table: initializes tables
minesweeper.py - Game rules → 2D table: reads and updates
minesweeper.py