How gustavoctrlplay/pypet works
PyPet is a terminal-driven virtual-pet simulator. Its loop loads or creates a pet, advances its needs, accepts care actions, checks whether it remains alive, and displays status; users can also save and reload pet state. Iguana and Cobra specialize play behavior, while status and play can display species-specific images through OpenCV. The only source file is sampled, so the relationships shown are directly supported by it.
Main entry points: pypet2.py Menu loop · imagens Pet images
Components 9
Pet simulation
- Menu loop
pypet2.py - Pet lifecycle
pypet2.py - Iguana play
pypet2.py - Cobra play
pypet2.py
Status and imagery
- Status display
pypet2.py - Pet images
imagens
Other components
- Player
Connections 12
- Player → Menu loop: chooses actions
pypet2.py - Menu loop → Load pet: loads pet
pypet2.py - Menu loop → Pet lifecycle: advances and checks
pypet2.py - Menu loop → Iguana play: creates or plays
pypet2.py - Menu loop → Cobra play: creates or plays
pypet2.py - Menu loop → Save pet: saves pet
pypet2.py - Menu loop → Status display: shows status
pypet2.py - Pet lifecycle → Status display: displays state
pypet2.py - Iguana play → Pet images: reads images
pypet2.py - Cobra play → Pet images: reads images
pypet2.py - Status display → Pet images: reads images
pypet2.py - Save pet → Load pet: writes and reads pet.json
pypet2.py