""" ------------------------------------------------- Project: 21 chip ganme Standard: TE PUNGA - Programming Assessment School: Tauranga Boys' College Author: Izaak heyder Date: March 2025 Python: 3.7.4 ------------------------------------------------- """ rounds_played = 0 rounds = 0 max_chips = 21 round_won = True Player1_score = 0 Player2_score = 0 take = 0 Title = "21 Chip Game" print(Title) name1 = input("player 1 What is your name ? ") name2 = input("player 2 what is your name ?") rounds = int(input("how many rounds do you want to play")) print(" Hello" ,name1, "and" ,name2, "welcome to the 21 chip game. in this game you will have how ever many rounds to determin who is the best player Good Luck " ) while rounds > 0: chips_left = max_chips while chips_left > 0: print(name1,"score:", Player1_score ,) print(name2 ,"score:", Player2_score ,) print("chips left", chips_left) take = int(input("Player 1 How many chips do you want to take, 1,3 ")) chips_left = chips_left - take print() if chips_left < 1: print() print(name1, "has won the round") Player1_score+=1 break print("chips left", chips_left) take = int(input("player 2 how many chips do you want to take 1,3 ")) print() chips_left = chips_left - take if chips_left <1: print() print(name2, "has won the round") Player2_score+=1 break rounds-=1