import Checker import ai def StartGame(): name = input("What is your name? ") while True: if not Checker.CheckNull(name): break name = input("Please enter your name? ") print(f"Wellocm {name} to Rock Paper Scissors") numberRounds = input("How many rounds do you want to play? ") while True: if Checker.isNumber(numberRounds): break numberRounds = input("Please enter a number: ") numberRounds = int(numberRounds) GameLoop(name, numberRounds) def GameLoop(name, numberRounds): playerScore = 0 aiScore = 0 for round in range(1, numberRounds + 1): print(f"Round: {round}\nScore: {name} {playerScore} - {aiScore} AI") hand = input("Please enter your hand: ") handNumber = 0 while True: handNumber = Checker.CheckRps(hand) if not handNumber == 0: break hand = input("Please enter a valid hand: ") aiHand = ai.GetHand() result = Checker.winORLoss(handNumber, aiHand) if result == 1: playerScore =+ 1 print("You Won") elif result == -1: aiScore =+ 1 print("AI won") else: print("Draw") print(f"Final Score: {name} {playerScore} - {aiScore} AI")