random
module (exciting + easy)You're trapped inside a mysterious cave system filled with monsters, traps, and treasures. Your only goal?
Escape through 5 deadly rooms alive.
You’ll need smart choices, quick decisions, and a bit of luck.
✅ Feature | 💡 Python Concept Used |
---|---|
Game loop | while loops, break |
User input | input() function |
Decisions | if , elif , else |
Random events | random.randint() (new module) |
Room mechanics | functions |
Health system | Variables + conditions |
Inventory | Lists (optional) |
Loop control | break , continue , pass |
String operations | e.g. "open" in command |
import random # For randomness in events
damage = random.randint(5, 20)
This makes the game exciting and unpredictable!