import random rock = 0 paper = 0 scissors = 0 NPCchoicelist = [0, 1, 2] choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] win = 0 NPCwin = 0 while NPCwin < 2 and win < 2: if choice == "r": print(""" _______ _______ _______ ---' ____) ---' ____) ---' ____) (_____) (_____) (_____) (_____) (_____) (_____) (____) (____) (____) ---.__(___) ---.__(___) ---.__(___)""") print(""" ████████ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████████ ██ ██ ████████████ ██ ██ ████████████████ ██ ██ ██████████████████ ██ ██ ████████████████████ ██ ██ ██████████████████████ ██ ██ ████████████████████████ ██ ██ █████████████████████████████ ██ █████████████████████████████ ██ ████████████████████████████ ██ ██████████████████████████ ██ ████████████████████████ ██ ██████████████████████ ██ ████████████████████ ██ █████████████████ ██ ████████████ ██ ██████ ████""") if NPCchoice == 0: print("Tie!") choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 1: print("loss!") NPCwin += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 2: print("Win!") win += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] elif choice == "p": print(""" _______ _______ _______ ---' ____) ---' ____) ---' ____) (_____) (_____) (_____) (_____) (_____) (_____) (____) (____) (____) ---.__(___) ---.__(___) ---.__(___)""") print(""" ████████████████████████████████████████████ ████████████████████████████████████████████████ ███████████████████████████████████████████████████ ██ █████ ██ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ██ ▌ ▐ █████ ███████████████████████████████████████████████████ ███████████████████████████████████████████████████ ███████████████████████████████████████████████████ ███████████████████████████████████████████████████""") if NPCchoice == 0: print("Win!") win += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 1: print("Tie!") choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 2: print("Loss!") NPCwin += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] elif choice == "s": print(""" _______ _______ _______ ---' ____) ---' ____) ---' ____) (_____) (_____) (_____) (_____) (_____) (_____) (____) (____) (____) ---.__(___) ---.__(___) ---.__(___)""") print(""" _ _ (_) / ) | (/ _+/ //|\ // | ) (/ |/""") if NPCchoice == 0: print("Loss!") NPCwin += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 1: print("Win") win += 1 choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCchoice == 2: print("Tie!") choice = input("[r]ock, [p]aper, [s]cissors?") NPCchoice = NPCchoicelist[random.randint(0, 2)] if NPCwin >= 2: print("You lose :(") if win >= 2: print("You win :)")