TextBased Adventure Rooms Game
def Introduction():
print("TextBased Adventure Room Game")
print("By Usman")
print("Python Basic Coding")
print()
def userinput():
option = ""
while option != "1" and option != "2":
option = input("Please select your room ('1' or '2'): ")
if option == "1":
print("Welcome to room ",option, ", this is the VIP Room")
option1 = input("Do you want to move ahead type 'yes' to quit type 'q'")
if option1 == "yes" or option1 == "y":
option11 = input("Please select your room in Option One ('3' or '4'): ")
if option11 == "3":
print("Welcome to room ", option11, ", this is the VIP 3 Room")
break
if option11 == "4":
print("Welcome to room ", option11, ", this is the VVIP 4 Room")
break
if option1 == "quit" or option1 == "q":
print("Bye Bye Bye")
break
if option == "2":
print("Welcome to room ",option, ", this is the Simple Room")
option1 = input("Do you want to move ahead type 'yes' to quit type 'q'")
if option1 == "yes" or option1 == "y":
option11 = input("Please select your room in Option One ('5' or '6'): ")
if option11 == "5":
print("Welcome to room ", option11, ", this is the Simple 5 Room")
break
if option11 == "6":
print("Welcome to room ", option11, ", this is the Simple 6 Room")
break
if option1 == "quit" or option1 == "q":
print("Bye Bye Bye")
break
Introduction()
userinput()
print("TextBased Adventure Room Game")
print("By Usman")
print("Python Basic Coding")
print()
def userinput():
option = ""
while option != "1" and option != "2":
option = input("Please select your room ('1' or '2'): ")
if option == "1":
print("Welcome to room ",option, ", this is the VIP Room")
option1 = input("Do you want to move ahead type 'yes' to quit type 'q'")
if option1 == "yes" or option1 == "y":
option11 = input("Please select your room in Option One ('3' or '4'): ")
if option11 == "3":
print("Welcome to room ", option11, ", this is the VIP 3 Room")
break
if option11 == "4":
print("Welcome to room ", option11, ", this is the VVIP 4 Room")
break
if option1 == "quit" or option1 == "q":
print("Bye Bye Bye")
break
if option == "2":
print("Welcome to room ",option, ", this is the Simple Room")
option1 = input("Do you want to move ahead type 'yes' to quit type 'q'")
if option1 == "yes" or option1 == "y":
option11 = input("Please select your room in Option One ('5' or '6'): ")
if option11 == "5":
print("Welcome to room ", option11, ", this is the Simple 5 Room")
break
if option11 == "6":
print("Welcome to room ", option11, ", this is the Simple 6 Room")
break
if option1 == "quit" or option1 == "q":
print("Bye Bye Bye")
break
Introduction()
userinput()
Comments
Post a Comment