How trungmegalikeit/mastercarogame works
This is a small Pygame Caro (gomoku-style) game. The user launches the app, uses the start/settings screens to enter a match, places alternating stones on the board, and wins by making a line of five. The graph follows the documented screen routing and the calls visible in sampled source; it omits uncertain details for unsampled files.
Main entry points: app.py App loop · gameScreen.py Game screen · screen.py Screen base · Button.py Buttons
Components 12
Game runtime
- Game entry
main.py - App loop
app.py - Screen states
states.py - Game configuration
settings.py
Game screens
- Start screen
startScreen.py - Settings screen
settingScreen.py - Game screen
gameScreen.py - Screen base
screen.py
Board gameplay
- Caro board
board.py
UI and rendering
- Buttons
Button.py - Generated textures
textures.py
Other components
- Player
Connections 24
- Player → Game entry: launches
main.py - Game entry → App loop: starts
main.py - App loop → Start screen: creates
app.py - App loop → Settings screen: creates
app.py - App loop → Game screen: creates
app.py - App loop → Screen states: selects state
app.py - Start screen → App loop: navigates
startScreen.py - Settings screen → App loop: navigates
settingScreen.py - Game screen → App loop: navigates
gameScreen.py - Game screen → Caro board: owns
gameScreen.py - Start screen → Screen base: inherits
startScreen.py - Settings screen → Screen base: inherits
settingScreen.py - Game screen → Screen base: inherits
gameScreen.py - Screen base → Buttons: dispatches events
screen.py - Screen base → Game configuration: reads colors
screen.py - Start screen → Buttons: creates
startScreen.py - Settings screen → Buttons: creates
settingScreen.py - Game screen → Buttons: creates
gameScreen.py - Game screen → Game configuration: reads layout
gameScreen.py - Caro board → Game configuration: reads rules
board.py - Caro board → Generated textures: creates background
board.py - Buttons → Generated textures: creates surfaces
Button.py - Buttons → Game configuration: reads style
Button.py - Caro board → Screen base: receives events
screen.py