How leonardozhang67-cloud/minesweeper-sigma-2026-2027 works
This repository is a Tkinter two-player Minesweeper game. Players enter names and choose preset or custom board settings, then take alternating turns revealing or flagging cells on one shared board. The game ensures the first reveal is safe, updates scores, and displays the winner or a tie when all safe cells are open. The graph follows the documented workflow and relationships visible in the supplied excerpts; the separate minesweeper.py implementation is not part of the README-described application flow.
Main entry points: game_flow.py Game Flow · menu_screen.py Main Menu · board.py Shared Board · input_validator.py Input Validation
Components 14
Game Setup
- Main Menu
menu_screen.py - Settings Form
settings_form.py - Difficulty Presets
difficulty.py - Input Validation
input_validator.py - Board Limits
board_limits.py - Game Settings
game_settings.py
Game Rules
- Game Flow
game_flow.py - Shared Board
board.py - Cell Logic
cell.py - Player Scores
Player.py
Game UI
- App Entry
main.py - Turn Status
Player.py - Results Screen
game_flow.py
Other components
- Players
Connections 21
- Players → Main Menu: enters settings
README.md - App Entry → Game Flow: starts
main.py - Game Flow → Main Menu: shows
game_flow.py - Main Menu → Input Validation: validates names
menu_screen.py - Main Menu → Settings Form: collects settings
menu_screen.py - Settings Form → Difficulty Presets: loads presets
settings_form.py - Settings Form → Input Validation: validates custom
settings_form.py - Difficulty Presets → Game Settings: creates presets
difficulty.py - Input Validation → Board Limits: checks limits
input_validator.py - Input Validation → Game Settings: creates custom
input_validator.py - Main Menu → Game Flow: starts game
menu_screen.py - Game Flow → Shared Board: builds board
game_flow.py - Shared Board → Cell Logic: creates cells
board.py - Players → Shared Board: reveals or flags
README.md - Cell Logic → Shared Board: reports reveal
cell.py - Shared Board → Game Flow: forwards result
board.py - Game Flow → Player Scores: updates score
game_flow.py - Game Flow → Turn Status: updates turn
game_flow.py - Turn Status → Player Scores: displays scores
Player.py - Game Flow → Results Screen: shows outcome
game_flow.py - Results Screen → Player Scores: reads scores
game_flow.py