Implementing the TI 58/59 game described below on an RPN HP calculator is trivial. Now doing it on the HP-17B is not. Congratulations!
HI-LO GAME ML-21
In addition to recreational diversion, this program serves as a nontechnical demonstration of the library
module. The game is easy to play, permitting almost immediate hands-on experience for any user.
The object of the game is to guess a secret number (whole numbers only) from 1 to 1023 that has been
generated in the calculator. The calculator responds with a "too high," "too low," or "correct" indica-
tion to each of your guesses. Your score (number of guesses) is tallied by the calculator.
Also, you may select a number in the range 1 to 1023 and the calculator will attempt to guess this
number as you supply proper responses to each of its guesses. When the calculator has found the num-
ber you selected, its score will be displayed.
An exercise which often cast doubt on the "man over machine" axiom is to have the calculator guess
the same number that it generated for you to guess. Now, follow the User Instructions and seed if you
can uphold the superiority of man.
USER INSTRUCTIONS
STEP PROCEDURE ENTER PRESS DISPLAY
1 Select program 2nd Pgm 21
You Guess
2 Key in number (0 to 199017)* Number A Number
3 Generate secret number B 0.
4 Enter your guess (1 to 1023) Guess C Clue
Clue: -1. if guess was low
1. if gues was high
flashing 0. if your guess was correct
5 Repeat Step 4 as required
6 Display score D Score
7 For a new number, go to Step 3
Calculator Guesses
8 Select a number (1 to 1023)
9 Display calculator's first guess 2nd A' Calc. guess
10 If calculator's guess is
Low 2nd B' Calc. guess
High 2nd C' Calc. guess
Correct 2nd D' Calc. guess
11 Repeat Step 10 as required
12 For a new game, go to Setp 8
*Each number you select will produce a different game.