#------------------------------------------------ # Project: Pick-Up Game # Standard: 91883 (AS1.7) v.1 # School: Tauranga Boys College # Author: Shay McDonald # Date: Finish Date # Python: 3.5 #------------------------------------------------ import time total_chips = 21 rounds_played = 0 round_number = 1 name1_score = 0 name2_score = 0 while True: play = input("Would you like to play? (y/n): ") if play.lower() != "y": break name1 = input("Player 1 Name: ") name2 = input("Player 2 Name: ") rounds = int(input("How many rounds would you like to play?: ")) while rounds_played < rounds : print("") print("Round", round_number, "Is Starting...") time.sleep(1) while total_chips >= -1 : print("") print(name1 + "'s", "Turn") print("") chips_taken = int(input("Pick a number between 1-3: ")) total_chips = total_chips - chips_taken print("") print("There Are", total_chips, "Chips Remaining") print("") print(name2 + "'s", "Turn") print("") chips_taken = int(input("Pick a number between 1-3: ")) total_chips = total_chips - chips_taken print("") print("There Are", total_chips, "Chips Remaining") round_number += 1 print("ROUND OVER") print("") print("0 Chips Remaining") print("") print(name1 + "'s Score =", name1_score) print(name2 + "'s Score =", name2_score)