How ritikkumar27/pokecatch_cli_game works
PokéCatch is a terminal Pokémon-catching game. The main workflow is to hunt a rarity-weighted encounter, choose a Poké Ball to attempt a catch, and build a Pokédex while earning XP. Players can inspect inventory and stats, and use the rotating store’s documented buying and selling features. The graph includes the sampled command routing and core modules; README-described capabilities are retained, but unsampled details such as store rotation are not assigned speculative implementation links.
Main entry points: player.py Profile and Pokédex · hunting.py Hunt and catch · utils.py JSON and sprite helpers · store.py Store and sales
Components 10
Command interface
- CLI commands
pokecatch/__main__.py
Hunting and catching
- Hunt and catch
pokecatch/core/hunting.py
Trainer progress
- Profile and Pokédex
pokecatch/core/player.py - Store and sales
pokecatch/core/store.py
Game data and display
- Game rules and paths
pokecatch/config.py - JSON and sprite helpers
pokecatch/utils.py - Pokémon catalog
pokecatch/data/pokemon_data.json - Pokémon sprites
pokecatch/sprites/pokemons - Player and encounter saves
pokecatch/utils.py
Other components
- Player
Connections 19
- Player → CLI commands: runs
Readme.md - CLI commands → Hunt and catch: routes hunt/catch
pokecatch/__main__.py - CLI commands → Profile and Pokédex: routes profile views
pokecatch/__main__.py - CLI commands → Store and sales: routes store actions
pokecatch/__main__.py - Hunt and catch → Game rules and paths: reads rules
pokecatch/core/hunting.py - Hunt and catch → JSON and sprite helpers: loads and saves
pokecatch/core/hunting.py - Hunt and catch → Profile and Pokédex: loads and updates
pokecatch/core/hunting.py - Hunt and catch → Pokémon catalog: loads catalog
pokecatch/core/hunting.py - Hunt and catch → Player and encounter saves: reads and writes encounter
pokecatch/core/hunting.py - Profile and Pokédex → Game rules and paths: reads save paths
pokecatch/core/player.py - Profile and Pokédex → JSON and sprite helpers: loads and saves
pokecatch/core/player.py - Profile and Pokédex → Player and encounter saves: reads and writes player data
pokecatch/core/player.py - Store and sales → Game rules and paths: reads store rules
pokecatch/core/store.py - Store and sales → JSON and sprite helpers: loads and saves
pokecatch/core/store.py - Store and sales → Profile and Pokédex: loads and saves player
pokecatch/core/store.py - Store and sales → Player and encounter saves: reads and writes sales data
pokecatch/core/store.py - JSON and sprite helpers → Game rules and paths: gets sprite path
pokecatch/utils.py - JSON and sprite helpers → Pokémon sprites: renders sprites
pokecatch/utils.py - Profile and Pokédex → JSON and sprite helpers: renders Pokédex sprites
pokecatch/core/player.py