How koljutsii/minesweeper works
This is a single-file Tkinter Minesweeper game. The user selects a board size, plays by opening or marking cells, and sees a win or loss before restarting. Board selection and gameplay are distinct stages, but their implementations are interleaved in one file. The excerpts show the selection-to-game transition and event bindings; other internal relationships are kept within the gameplay component rather than inferred from omitted code.
Main entry points: minesweeper_2.py Board Selection
Components 4
Other components
- Player
- Board Selection
minesweeper_2.py - Game Board
minesweeper_2.py - Tkinter UI
Connections 5
- Player → Board Selection: chooses size
minesweeper_2.py - Board Selection → Game Board: starts game
minesweeper_2.py - Player → Game Board: plays
minesweeper_2.py - Board Selection → Tkinter UI: draws choices
minesweeper_2.py - Game Board → Tkinter UI: draws board
minesweeper_2.py