How niral-bit/terminal-dungeons works
Terminal Dungeons is a small command-line, turn-based RPG. Running game.py starts a single combat loop: the player chooses attack or heal, the game updates health and reports whether the player or monster wins. The README documents these actions; the implementation combines input, combat arithmetic, and outcome handling in one function. There are no separate storage or integration layers.
Main entry points: game.py Combat loop
Components 9
Combat runtime
- Game entry
game.py - Combat loop
game.py - Action input
game.py - Attack damage
game.py - Healing
game.py - Enemy turn
game.py - Combat outcome
game.py
Other components
- Player
- Random number generator
Connections 13
- Player → Game entry: launches
README.md - Game entry → Combat loop: starts
game.py - Combat loop → Action input: prompts
game.py - Player → Action input: chooses
README.md - Action input → Attack damage: dispatches
game.py - Action input → Healing: dispatches
game.py - Attack damage → Random number generator: draws damage
game.py - Healing → Combat loop: updates HP
game.py - Attack damage → Combat loop: updates enemy HP
game.py - Combat loop → Enemy turn: runs enemy turn
game.py - Enemy turn → Random number generator: draws damage
game.py - Enemy turn → Combat loop: updates player HP
game.py - Combat loop → Combat outcome: selects result
game.py