Python Forum
Choose your own adventure game
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Choose your own adventure game
#1
I get confused when creating these. I want to end the code if you choose one option so that route stops but carry on in the other. Please help.
import time
Gamertag = input("What is your Gamertag? ")
print("Welcome" ,Gamertag)
time.sleep(3)

game = input("Do you want to play a game? ")

if game == "yes":
    print("LOADING... ")

elif game == "no":
    print("Quitting application")
Reply


Messages In This Thread
Choose your own adventure game - by noahc2004 - Jun-26-2020, 08:24 AM
RE: Choose your own adventure game - by DPaul - Jun-26-2020, 09:44 AM
RE: Choose your own adventure game - by DPaul - Jun-26-2020, 02:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac os choose file name howard687 1 1,910 Jan-05-2022, 06:54 AM
Last Post: Larz60+
  Loop with choose Irv1n 5 3,309 Sep-16-2021, 09:31 PM
Last Post: deanhystad
  loop adventure game ilikedofs 1 1,749 May-26-2021, 12:43 AM
Last Post: bowlofred
  how to make a hotkey for text adventure game myn2018 2 2,027 Jan-06-2021, 10:39 PM
Last Post: myn2018
  Choose an element from multidimensional array quest_ 2 2,689 Nov-25-2020, 12:59 AM
Last Post: quest_
  Need help implmenting if/else or case statements for option to choose file format. samlee916 1 2,048 Jul-22-2020, 06:06 PM
Last Post: Larz60+
  Please help a newbie choose which programming language to learn. yeto 2 3,565 Feb-25-2019, 12:56 AM
Last Post: yeto
  Waiting in a text adventure StickyLizard 1 47,888 Jan-19-2019, 10:45 PM
Last Post: ichabod801
  Errors in simple text adventure game? ecloev 5 4,980 Apr-10-2018, 05:55 PM
Last Post: nilamo
  User Input to Choose from Dictionary anelliaf 9 25,970 Mar-27-2018, 02:22 PM
Last Post: anelliaf

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020