How giaputc/game_uno works
This is a Pygame UNO game with solo-versus-bot and three-/four-player modes. The user selects a mode and difficulty, then plays through a controller that applies game rules and updates the matching game view; bot strategies choose AI moves. The README also documents scoring, UNO penalties, and mode-dependent stacking rules. The graph follows relationships visible in excerpts, the SOURCE INDEX, or README; unsampled capabilities are included where documented, but their internal links are not asserted without evidence.
Main entry points: app_manager.py App Manager · single_controller.py Solo Controller · multi_controller.py Multiplayer Controller · font_helper.py Text Rendering
Components 24
App Runtime
- Game Entry
main.py - App Manager
Controller/app_manager.py - Game Settings
settings.py
Game Interface
- Menu Screens
view/menu_view.py - Guide Screens
view/role_view.py - Difficulty Screen
view/DonNguoiChoi/difficulty_view.py - Player Count Screen
view/DaNguoiChoi/multi_select_view.py - Solo Game View
view/DonNguoiChoi/single_game_view.py - Multiplayer View
view/DaNguoiChoi/multi_game_view.py - Text Rendering
view/font_helper.py - Sound Effects
view/sfx_manager.py - Landing Animation
model/landing_page.py
Gameplay
- Solo Controller
Controller/DonNguoiChoi/single_controller.py - Multiplayer Controller
Controller/DaNguoiChoi/multi_controller.py - Game Rules
model/game_logic.py - Alternate Game Model
model/uno_game.py - Alternate Play Controller
Controller/DonNguoiChoi/play_controller.py - Card Deck
model/deck.py - Card Model
model/card.py - Player State
model/player.py
Bot Strategies
- Easy Bot
bots/easy_bot.py - Normal Bot
bots/normal_bot.py - Hard Bot
bots/hard_bot.py
Other components
- Player
Connections 41
- Player → Game Entry: starts game
README.md - Game Entry → App Manager: creates
main.py - App Manager → Game Settings: loads buttons
Controller/app_manager.py - App Manager → Menu Screens: displays
Controller/app_manager.py - App Manager → Guide Screens: displays
Controller/app_manager.py - App Manager → Difficulty Screen: displays
Controller/app_manager.py - App Manager → Player Count Screen: displays
Controller/app_manager.py - App Manager → Solo Controller: dispatches
Controller/app_manager.py - App Manager → Multiplayer Controller: dispatches
Controller/app_manager.py - App Manager → Landing Animation: updates
Controller/app_manager.py - App Manager → Sound Effects: initializes
Controller/app_manager.py - Solo Controller → Game Rules: creates game
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Player State: creates players
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Solo Game View: updates and draws
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Easy Bot: selects strategy
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Normal Bot: selects strategy
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Hard Bot: selects strategy
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Text Rendering: renders text
Controller/DonNguoiChoi/single_controller.py - Solo Controller → Sound Effects: plays effects
Controller/DonNguoiChoi/single_controller.py - Multiplayer Controller → Game Rules: creates game
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Player State: creates players
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Multiplayer View: updates and draws
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Easy Bot: selects strategy
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Normal Bot: selects strategy
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Hard Bot: selects strategy
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Text Rendering: renders text
Controller/DaNguoiChoi/multi_controller.py - Multiplayer Controller → Sound Effects: plays effects
Controller/DaNguoiChoi/multi_controller.py - Game Rules → Card Deck: uses deck
model/game_logic.py - Card Deck → Card Model: creates cards
model/deck.py - Alternate Play Controller → Alternate Game Model: controls game
Controller/DonNguoiChoi/play_controller.py - Alternate Play Controller → Solo Game View: uses view
Controller/DonNguoiChoi/play_controller.py - Alternate Game Model → Card Deck: uses deck
model/uno_game.py - Alternate Game Model → Easy Bot: selects strategy
model/uno_game.py - Alternate Game Model → Normal Bot: selects strategy
model/uno_game.py - Alternate Game Model → Hard Bot: selects strategy
model/uno_game.py - Menu Screens → Text Rendering: renders text
view/menu_view.py - Guide Screens → Text Rendering: renders text
view/role_view.py - Difficulty Screen → Text Rendering: renders text
view/DonNguoiChoi/difficulty_view.py - Player Count Screen → Text Rendering: renders text
view/DaNguoiChoi/multi_select_view.py - Solo Game View → Text Rendering: renders text
view/DonNguoiChoi/single_game_view.py - Multiplayer View → Text Rendering: renders text
view/DaNguoiChoi/multi_game_view.py