Project File
ARTIFICIAL INTELLIGENCE (417)
Three Door Adventure
submitted by:
Ananya Agrawal
X Confucius
Roll no. 9
Lotus Valley International School, Noida
Subject Teacher's Name: Mrs Vanisha Katyal
Certificate of Completion
This is to certify that the project titled “Three Door Adventure” has been successfully
completed and submitted by Ananya Agrawal: X Confucius: Roll Number 9 under the
guidance of Mrs Vanisha Katyal, as part of the academic requirements for the course.
This project reflects the sincere effort, research, and creativity of the student.
Teacher’s Signature:
Date:
Acknowledgment
I would like to express our sincere gratitude to Mrs Vanisha Katyal for their valuable guidance and
continuous support throughout this project. We also extend our appreciation to Lotus Valley
International School, Noida , for providing the necessary resources and a supportive learning
environment. Lastly, I thank my classmates and family for their encouragement and help during the
completion of this project.
Index
1. Introduction
2. Problem Scoping
3. Data Acquisition and Data Sources
4. Data Modeling
5. Evaluation
6. Conclusion
7. References
8. Bibliography
1. Introduction
This project presents a simple text-based adventure game
created using Python. The game is designed around the idea
of choice: the player stands in front of three mysterious doors
and must decide which one to enter. Each door leads to a
different scenario — a dragon’s cave, a golden treasure
chamber, or a magical forest filled with puppies. The game
aims to demonstrate basic Python programming concepts
such as loops, conditional statements, user input handling,
and logical decision-making.
2. Problem Scoping
The objective of this project was to create an
engaging, easy-to-understand game using only
fundamental Python concepts like for loops and
if-else statements.
The game needed to:
Provide multiple paths and outcomes
Allow user choice at every stage
Demonstrate clear flow control
Keep the story simple yet fun
Run entirely in the terminal / command line
Since the game had to avoid complexity, no
external libraries, graphics, or advanced functions
were used. The focus was strictly on beginner-
friendly logic construction.
3. Data Acquisition and Data Sources
This game does not use external datasets or files.
Instead, all data is collected directly from the user
during gameplay.
Examples of user inputs:
Choosing a door (1, 2, or 3)
Selecting an item inside a room
Choosing which puppy to pet
These inputs act as the “data” that determine how
the game progresses.
No external source, API, or dataset was used. The
only data source is the player’s choices entered via
the keyboard.
4. Data Modeling
The game’s entire logic is based on decision-based
branching.
The modeling involves:
A for loop to display doors
User input stored in variables
Nested if-elif-else statements
Each choice leading to a new outcome
Independent endings for each path
Example of the model:
Door 1 → Dragon cave → Pick sword/shield → Ending
Door 2 → Treasure room → Choose chest → Ending
Door 3 → Puppy forest → Pick a puppy → Ending
The structure ensures every input leads to a clear
result, making the game simple while still giving
the player a sense of agency.
5. Evaluation
The game was tested multiple times to ensure:
Every input leads to the correct branch
All endings appear as intended
Invalid inputs are handled with default responses
The code runs without errors in a standard Python
environment
All three doors and all sub-choices were tested
individually to confirm the logic works
consistently.
The game successfully met its goals: it is
functional, entertaining, and demonstrates
beginner-level Python logic clearly.
6. Conclusion
This project helped demonstrate how simple
Python concepts can be used to build an
interactive game. Through conditional statements
and user input, even basic code can create
multiple storylines and outcomes.
The game fulfills its objective of being
educational and enjoyable while staying within
the constraints of beginner-level Python
programming.
Overall, this project enhanced logical thinking,
creativity, and understanding of flow control in
Python.
7. References
Classroom notes on Python basics
Teacher-provided instructions
Python documentation (for basic input and
print syntax)
8. Bibliography
Introduction to Python Programming
Online articles on simple text-based games
(general reading)
Inspiration from classic “choose your
adventure” stories