A very simple guess the number game. You choose a random number and the computer will try and guess it. Start by telling the computer the possible range of numbers you are choosing from, say 1 to 1000, or 50 to 200000, or whatever you choose. The computer will then attempt to guess your secret number. It can make up to 10 guesses before it loses the game and you win by choosing a number the computer couldn’t guess.
Use the mouse to tell the computer whether your secret chosen number is higher or lower than the one the computer has guessed.