Skip to content

A text-based, choose-your-own-adventure game built with Python to practice conditional logic and control flow

Notifications You must be signed in to change notification settings

ZACKSANGEM/Treasure-Island

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Python Treasure Island This is a text-based, choose-your-own-adventure game built as a beginner Python project. The user navigates through a story by making choices at each step to find a hidden treasure.

Project Description The game presents the user with a series of narrative choices. Based on their input, the story either progresses towards a successful conclusion or ends in a "game over" scenario. The game tests the player's ability to make the correct choices at each turn to reach the final goal.

How to Run Make sure you have Python 3 installed on your system.

Clone this repository to your local machine.

Navigate to the project directory in your terminal or command prompt.

Run the Python script:

python treasure_island.py

Key Learnings Control Flow: This project was a deep dive into using if, elif, and else statements to control the flow of the program.

Nested Logic: I learned how to use nested if statements to create more complex decision-making paths.

String Methods: The use of string methods like .lower() was essential for handling user input and making the game more robust by accepting various capitalization.

Technologies Used Python 3.x

Command Line Interface (CLI)

Disclaimer This project was completed as part of Dr. Angela Yu's "100 Days of Code: The Complete Python Pro Bootcamp" on Udemy (Day 3). It is intended for educational purposes and as a demonstration of foundational programming concepts.

About

A text-based, choose-your-own-adventure game built with Python to practice conditional logic and control flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages