1. Click the green flag. 2. Think of a number between 1 and 100. 3. The up arrow means higher, the down arrow means lower and the tick means correct.
Based on a python program: #Binary Search while True: print("I am going to try and guess your number.") print("What number is it greater than?") try: min = int(input()) except ValueError: while True: print("Please enter an integer lower than your number!") try: min = int(input()) except: continue if isinstance(min, int): break print("What number is it less than?") try: max = int(input()) except ValueError: while True: print("Please enter an integer higher than your number!") try: max = int(input()) except: continue if isinstance(max, int): break while max > min: guess = (max + min)//2 g = str(guess) print("My guess is " + g + ". Is your number this, less or more?") num = input().lower() if "low" in num or "less" in num: max = guess-1 elif "high" in num or "great" in num or "more" in num: min = guess+1 elif "correct" in num or "right" in num or "this" in num: max = min print("Yay, I guessed your number! Press enter to play again or type anything for exit.") breaker = input() if breaker: print("Thank you for using this number guesser. ^__^") break