Post Reply 
(15C) Memory Game
01-21-2018, 07:13 PM (This post was last modified: 01-21-2018 07:35 PM by Dieter.)
Post: #2
RE: (15C) Memory Game
(01-19-2018 11:32 AM)Gamo Wrote:  This game first appeared in the V6N5P10 PPC Journal in August 1979 by Bill Derrick.

It is also mentioned on one of Gene's rskey.org pages.

(01-19-2018 11:32 AM)Gamo Wrote:  This program originally for HP-25/33 series.
I make some correction to work for HP-15C

The 15C and 11C have their own random number generators, so you don't have to program your own. Entering a seed is not required. Also both calculators feature loop control commands via DSE and ISG. All this allows a more compact version with merely 30 steps:

Code:
LBL A
FIX 0
CLX
STO 1     // initialize n with 0
1
0
STO I     // set loop counter to 10
LBL 1
RAN#
9
x
1
+         // number between 1 and 9,999999999
RCL 1     // n
10^x
x         // shift number by n digits
INT       // (n+1)-digit number between 100... and 999...
STO 0
PSE
CLX
R/S       // enter memorized number here
RCL 0
/
1
x=y?      // is input : number = 1, i.e. was input correct?
STO+1     // then increment n
DSE I     // decrement loop counter
GTO 1
RCL 1     // after 10 loops show success level n
RTN

Registers:
R0  (n+1)-digit number
R1  n = 0, 1, 2, 3...
RI  counter (10...0)

This version also fixes a problem with the original program where it is possible that a number is followed by one with less (!) digits. This happens because the RNG generates numbers between 0 (!) and 999... etc.

The instructions for the above version are the same as for the original one, of course without the seed which is not required (use the calculator's SEED function it you want to). And on the 11C the DSE I near the end is simply DSE.

(01-19-2018 11:32 AM)Gamo Wrote:  The best I can do so far is 7

I once got 8, but this was a number with four zeros in the middle. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(15C) Memory Game - Gamo - 01-19-2018, 11:32 AM
RE: (15C) Memory Game - Dieter - 01-21-2018 07:13 PM
RE: (15C) Memory Game - Carsen - 01-22-2018, 02:05 AM
RE: (15C) Memory Game - Carlos CM (Mexico) - 01-28-2018, 03:57 AM
RE: (15C) Memory Game - Gamo - 01-28-2018, 05:12 AM
RE: (15C) Memory Game - pinkman - 03-15-2018, 01:38 PM



User(s) browsing this thread: 1 Guest(s)