Task

Write a game (computer program) that follows the following rules:

 The computer chooses a number between given set limits.
 The player is asked for repeated guesses until the the target number is guessed correctly
 At each guess, the computer responds with whether the guess is:
 higher than the target,
 equal to the target, 
 less than the target,   or
 the input was inappropriate. 


Related task

   Guess the number/With Feedback (Player)


  [ say "Guess the number (1-100 inclusive.)"
    cr cr
    100 random 1+
    [ $ "Your guess... " input
      trim reverse trim reverse
      $->n
      not iff
        [ drop
          say "That is not a number." cr ]
        again
      2dup != while
      over < iff
        [ say "Too small." cr ]
        again
      say "Too large." cr
      again ]
    say "Well done! "
    echo say " is correct. " cr
    drop ]                                   is guess-the-number ( --> )