# Check that users have entered a valid # option based on a list def int_check(question): while True: error = "Please enter an integer that is 1 or more" # check for infinite mode to_check = input(question) if to_check == "": return "infinite" try: response = int(to_check) # checks that the number is more than / equal to 13 if response < 1: else: return response except ValueError: return "invalid" # Main Routine Starts here # Inialise game variables # Instructions # Ask user for number of rounds / infinite mode num_rounds = int_check("How many rounds would you like? Push for infinite mode") # Game loop starts here # Game loop ends here # Game History / Statistics area