Day 03 of 100 Days of Code Python Bootcamp by Dr. Angela
Tags: python, programming, beginners, 100daysofcode
Published: 2022-08-03 11:02:46

For Day 03, I created a Create your own Adventure Game using conditional statements like if/else and nested ifs. Along the way, I had exercises like creating bmi calculator and a program that determines if the entered year is leap year or not. 

```python
print('''
*******************************************************************************
          |                   |                  |                     |
 _________|________________.=""_;=.______________|_____________________|_______
|                   |  ,-"_,=""     `"=.|                  |
|___________________|__"=._o`"-._        `"=.______________|___________________
          |                `"=._o`"=._      _`"=._                     |
 _________|_____________________:=._o "=._."_.-="'"=.__________________|_______
|                   |    __.--" , ; `"=._o." ,-"""-._ ".   |
|___________________|_._"  ,. .` ` `` ,  `"-._"-._   ". '__|___________________
          |           |o`"=._` , "` `; .". ,  "-._"-._; ;              |
 _________|___________| ;`-.o`"=._; ." ` '`."\` . "-._ /_______________|_______
|                   | |o;    `"-.o`"=._``  '` " ,__.--o;   |
|___________________|_| ;     (#) `-.o `"=.`_.--"_o.-; ;___|___________________
____/______/______/___|o;._    "      `".o|o_.--"    ;o;____/______/______/____
/______/______/______/_"=._o--._        ; | ;        ; ;/______/______/______/_
____/______/______/______/__"=._o--._   ;o|o;     _._;o;____/______/______/____
/______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_
____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____
/______/______/______/______/______/______/______/______/______/______/_____ /
*******************************************************************************
''')
print("Welcome to Treasure Island.")
print("Your mission is to find the treasure.") 

stage1 = input("You're at a crossroad. 
Where do you want to go? Type \"left\" or \"right\"").lower()

if stage1 == "left":
  stage2 = input("You've come to a lake. There is an 
island in the middle of the lake. Type \"wait\" 
to wait for a boat. Type \"swim\" to swim across.").lower()
  if(stage2 == "wait"):
    stage3 = input("""You arrive at the island unharmed. 
There is a house with 3 doors. One red, one yellow 
and one blue. Which colour do you choose?""").lower()
    if(stage3 == "red"):
      print("It's a room full of fire. Game Over.")
    elif(stage3 == "yellow"):
      print("You Win!")
    elif(stage3 == "blue"):
      print("You enter a room of beasts. Game Over.")
    else: 
      print("GAMEOVER")
  elif(stage2 == "swim"):
    print("You get attacked by an angry trout. Game Over.")
  else: 
    print("You get attacked by an angry trout. Game Over.")
elif(stage1 == "right"): 
  print("You fell into a hole. Game Over.")
else: 
  print("You fell into a hole. Game Over.")
    
   
   
```
Flowchart: 

![Day 03 Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8jzbkwstsbg1fna0kcn.png)
Output: 

![Output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/euo5iu1jsfb3upykj3hu.gif)