HiLo - A Number Guessing Bame

The computer has invented a random number somewhere between 0 and 100

Your task is to guess the number using the least number of turns.

Let's PLAY!

<back


Code:

<?php
 // new game
   $mystery = rand(0,100);   // number to be guessed
   $up = 100;                // upper boundary of guess range
   $down = 0;                // lower boundary of guess range
   $guess = "";              // initial value of guess
   $numguesses = 0;          // tally for guessses taken
   $feedback = "Let's PLAY!";
   echo $feedback . "<br>";
?>