Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Treasure Island

A text-based adventure game built with Python where players navigate choices to find hidden treasure or encounter game-ending scenarios.

How It Works

  1. The player starts at a crossroads and chooses to go "left" or "right".
  2. Depending on the choice, the story progresses to a lake where the player can "wait" for a boat or "swim" across.
  3. Upon reaching the island, the player selects a door color-red, blue, or yellow-with each choice leading to different outcomes.
  4. The ultimate goal is to find the treasure behind the correct door.

Example Gameplay

Welcome to treasure Island!  
you're at $ symbol, where do you want to go? Type "left" or "right".  
> left  
you've come to lake. There is an island in the middle of the lake. Type "wait" to wait for a boat OR type "swim" to swim across  
> wait  
You have arrived at the island unharmed. There is a house with doors of distinct colours red, blue and yellow which colour will you choose?  
> yellow  
You found the treasure : YOU WIN!  

How to Play

  • Run the script using Python:
python main.py
  • Follow on-screen prompts to make choices by typing responses.

Requirements

  • Python 3.x

ASCII Art Credit

The wonderful treasure map ASCII art was sourced from ascii.co.uk/art to enhance the adventure atmosphere.