A simple text-based terminal adventure game built with Python.
You play as a student in a magical academy who discovers a mysterious glowing light from the forbidden forest—and your choices determine what happens next (including a battle vs a giant python snake 🐍).
- Player name input (defaults to Steve if empty)
- Branching story choices (forest → cave vs river)
- Turn-based battle system:
- Attack deals random damage
- Defend restores random HP (capped at max HP)
- Randomized damage/heal using Python’s
random - Replay system (play again
y/n)
- Python 3.x
- No external libraries needed (only built-in
random)
-
Save your game file, for example:
terminal_game.py
-
Run it in terminal:
python terminal_game.py