""" ------------------------------------------------- Project: Take-Away Game Standard: 91883 (AS1.7) v.1 School: Tauranga Boys' College Author: Monty Page Date: THE DATE OF COMPLETION Python: 3.5 ------------------------------------------------- """ #imports import random import time #variables reset_guesses = 0 rounds = 3 user_score = 0 AI_score = 0 round_won = True round = 1 start_new_round = 'y' play_again = 'y' AI_number = random.randint(1, 1000) #introduction print("GUESS THE NUMBER!") time.sleep(1) name = input("Whats your name?") print("Hello", name) time.sleep(1) print("Welcome to GUESS THE NUMBER") time.sleep(1) print("in this game you have to keep guessing the randomly generated number.") time.sleep(1) print("Though this may seem hard you are told either to guess higher or lower with a limit of 10 guesses per game!") #Round loop while play_again == 'y': while True: if AI_number < your_number: your_number = input ("Try and guess the number im thinking of in a range of 1 to 1000!")