Inspiration
A classic text-based adventure simple concept, but a chance to build something with a real story and personality from scratch in one night.
What We Learned
- How to manage program flow across multiple branching paths
- How global state variables work in Python (
recall,checkpoint) - How to use functions to organize a growing codebase
- How to build a checkpoint respawn system to save player progress
How We Built It
Built entirely in Python with no external libraries except random and sys.
The game is structured around a series of interconnected functions — each location
in the world is its own function that calls the next. Player decisions are handled
through while True input loops with validation. A global recall variable tracks
story progression and a checkpoint variable determines where the player respawns
after death.
Challenges
- Managing variable scope across nested functions without breaking game state
- Preventing the story from looping back to the beginning after deaths
- Keeping all branching dialogue paths consistent so every route leads to the same satisfying conclusion
- Building everything in a single hackathon session as a beginner
Log in or sign up for Devpost to join the conversation.