How davidgamzu/wog works
World of Games is a command-line Python game with three difficulty-based modes. The user starts at main.py, enters their name and selects a game and difficulty in app.py; the selected game returns a win/loss result, which the app displays and records on a win. A separate Flask score page reads the same score file. The graph preserves the three documented game modes and the score viewer; the currency-conversion dependency is shown as external. Relationships reflect the provided excerpts, not unsampled source.
Main entry points: app.py Game menu · utils.py Input and results · currency_roulette_game.py Currency roulette · main.py CLI entry
Components 12
Command-line flow
- CLI entry
main.py - Game menu
app.py - Input and results
utils.py
Game modes
- Memory game
games/memory_game.py - Guess game
games/guess_game.py - Currency roulette
games/currency_roulette_game.py
Score recording
- Score update
score.py - Scores file
Scores.txt
Score viewer
- Score web app
main_score.py
Other components
- Player
- Currency converter
- Web visitor
Connections 16
- Player → CLI entry: starts
main.py - CLI entry → Game menu: calls
main.py - Game menu → Player: prompts
app.py - Game menu → Input and results: gets input
app.py - Game menu → Memory game: runs
app.py - Game menu → Guess game: runs
app.py - Game menu → Currency roulette: runs
app.py - Memory game → Input and results: uses input
games/memory_game.py - Guess game → Input and results: uses input
games/guess_game.py - Currency roulette → Input and results: validates input
games/currency_roulette_game.py - Currency roulette → Currency converter: converts currency
games/currency_roulette_game.py - Game menu → Input and results: shows result
app.py - Input and results → Score update: records win
utils.py - Score update → Scores file: reads and writes
score.py - Web visitor → Score web app: requests page
main_score.py - Score web app → Scores file: reads score
main_score.py