How gustavoconteudistacna/batalha_turnos works
The repository contains two independent terminal games, not one shared application: desafio.py runs a turn-based player-versus-NPC battle, while aula4.py runs a word-guessing game. The README documents the battle game's input, combat, and victory flow; the other game is evidenced by its source excerpt. The graph separates both workflows and shows their internal state and randomness. Both scripts are sampled in full; there are no shared modules or persistent stores.
Main entry points: desafio.py Battle Round Loop · aula4.py Guessing Loop
Components 11
Turn-Based Battle
- Player
- Battle Round Loop
desafio.py - Action Input
desafio.py - Random NPC Action
desafio.py - Combat Stats
desafio.py - Winner Check
desafio.py
Word Guessing
- Player
- Guessing Loop
aula4.py - Secret Word Choice
aula4.py - Guess State
aula4.py - Win/Loss Check
aula4.py
Connections 10
- Player → Battle Round Loop: starts game
README.md - Battle Round Loop → Action Input: requests action
desafio.py - Action Input → Battle Round Loop: returns choice
desafio.py - Battle Round Loop → Random NPC Action: chooses NPC action
desafio.py - Battle Round Loop → Combat Stats: updates stats
desafio.py - Battle Round Loop → Winner Check: checks outcome
desafio.py - Player → Guessing Loop: starts game
aula4.py - Guessing Loop → Secret Word Choice: selects word
aula4.py - Guessing Loop → Guess State: records guesses
aula4.py - Guessing Loop → Win/Loss Check: checks outcome
aula4.py