🎨
TomsRiver.xyz
  • Welcome!
  • Day 1
    • Activity
  • Day 2
    • Activity
  • Day 3
    • Activity
  • Day 4
    • Activity
  • Day 5
    • Activity
  • Day 6
    • Activity
  • Day 7
    • Activity
  • Day 8
    • Activity
Powered by GitBook
On this page

Was this helpful?

  1. Day 7

Activity

PreviousActivityNextActivity

Last updated 3 years ago

Was this helpful?

Adventure Game Starter Code

# Story Game
# by me

def main():
    print("Welcome to my game!")
    print("By ...")
    done = False
    while not done:
        print("S - Start")
        print("Q - Quit")
        choice = input(":: ")
        if choice == "S":
            intro()
        elif choice == "Q":
            print("Thanks for playing!")
            done = True
        else:
            print("Invalid Choice")

def intro():
    print("Story Game")
    print("by me")
    print("You want to play a game with your friends")
    print("Which do you choose? Roblox or Minecraft")
    choice = input(":: ")
    if choice == "Roblox":
        roblox()
    elif choice == "Minecraft":
        minecraft()
    else:
        print("Invalid Choice")

def roblox():
    print("You decide to play Roblox!")
    # add story and choices

def minecraft():
    print("You decide to play Minecraft!")
    # add story and choices

main()