""" ------------------------------------------------- Project: Take-Away Game Standard: 91883 (AS1.7) v.1 School: Tauranga Boys' College Author: JORDAN RICHARDS Date: THE DATE YOU COMPLETED THE CODE Python: 3.11.9 ------------------------------------------------- """ """21 GAME, EACH PLAYER TAKES UP TO 3 CHIPS UNTIL IT REACHES ZERO, WHOEVER TAKES THE LAST CHIP WINS""" max_chips = 21 chipsleft = 0 player1 = input("What is your name, Player 1? -> ") player2 = input("Hi "+player1+", now what is Player 2's name? -> ") chipstaken1 = 0 chipstaken2 = 0 chipsleft = max_chips while chipsleft > 0: print(chipsleft) chipstaken1 = input("Player one, how many chips will you take? ") if chipstaken1 > 0 and < 4: chipsleft -= chipstaken1 if chipsleft < 1: player1score += 1 print("Player 1 has won. Run this file again to continue.") break else: print("You cannot take more or less than 1-3 chips.") print(chipsleft) chipstaken2 = input(player2, ", how many chips will you take? ") if chipstaken2 > 0 and < 4: chipsleft -= chipstaken2 if chipsleft < 1: player1score += 1 print("Player 2 has won. Run this file again to continue.") break else: print("You cannot take more or less than 1-3 chips.")