# Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. print("Welcome, user, to Rock Paper Scissors, or RPS for short.") #functions go here def yes_no(question): """Checks user response to a question is yes / no (y/n), returns 'yes' or 'no' """ while True: response = input(question).lower() # check if the user says yes or no if response == "yes" or response == "y": return "yes" elif response == "no" or response == "n": return "no" else: print("nah twan u tweakin frfr (please enter yes/no) ") def instructions(): """prints instructions""" print(""" ⋆⁺。˚⋆˙‧₊☽ Instructions ☾₊‧˙⋆˚。⁺⋆ first select an ability to use: Rock, Paper, Or Scissors. the enemy will then also select an ability to use. Rock beats scissors, scissors beats paper, and paper beats rock. if the enemy beats you, you lose EXP. But if you win, you gain EXP. beat as many enemies as you can to gain points and climb up the leaderboard! good luck traveller, i have faith in you. hone your skills and im sure you will become a great fighter. """) def int_check(): error = "please enter an integer more than or equal to 13." while True: try: response = int(input("What is the game goal? ")) if response < 13: print(error) else: return response except ValueError: print(error) # Main Routine # ask the user if they want instructions (check if they say yes/no) want_instructions = yes_no("Would you like to read the rules? ") #display the instructions if the user wants to see them... if want_instructions == "yes": instructions() print() print("BIOMETRIC SCAN COMPLETE") print("Continuing with program...") game_goal = int_check() print(game_goal)