Home

Hewlett Packard

HighLow Game
MasterMind Game
Memory Allocation

Caving Program
Calculator Museum
Calculator Reference
Online MasterMind

HP-15C MasterMind Game

This HP-15C MasterMind Game lets you guess four non-repeating, non-zero digits in the proper order. The computer generates the four non-repeating, non-zero digits and then lets you start guessing. To play, you enter four digits and the computer will tell you how many of them are correct and how many are correct AND in the right position. Keep guessing until you get all four digits correct AND in the right position.

    19 38 57 76 95
1 f  LBL B g TEST 5 f  LBL 1 X x~y RCL 5
2 g CF 9 GTO 0 R/S g INT g TEST 5 g TEST 6
3 f  FIX 0 x~y STO 0 g TEST 6 GTO 5 GTO 8
4 f  REG RCL 2 0 GTO 3 f  DSE I RCL 8
5 4 g TEST 5 STO 5 EEX GTO 4 g SF 9
6 ENTER GTO 0 1 3 GTO 6 f  LBL 8
7 EEX x~y STO + 8 STO + 5 f LBL 5 RCL 0
8 5 RCL 3 f  FIX 4 f  DSE I EEX +
9 CHS g TEST 5 RCL 6 GTO 2 2 GTO 1
10 + GTO 0 STO I GTO 7 STO + 5  
11 STO I x~y f  LBL 2 f  LBL 3 f  LBL 6  
12 STO 6 RCL 4 1 RCL I RCL 7  
13 f  LBL 0 g TEST 5 0 STO 7 STO I  
14 f  RAN # GTO 0 STO ÷ 0 RCL 6 f  DSE I  
15 1 x~y RCL (i) STO I GTO 2  
16 0 STO (i) RCL 0 R ! f  LBL 7  
17 X f  DSE I f  FRAC R ! 4  
18 g INT GTO 0 1 f  LBL 4 EEX  
19 RCL 1 0 0 RCL (i) 3  

User Instructions

Press f  B to start. The initial display is 0. Enter four (non-repeating, non-zero) digits and press R/S. The program will run and return one of two displays.

Incorrect Guess
AB00.NNNN where
A = number of digits correct AND in the right position
B = number of digits correct but in the wrong position
NNNN = redisplay of the most recent guess

Correct Guess
C.NNNN (flashing) where
C = number of guesses it took
NNNN = the correct MasterMind digits

If your guess is not correct then enter a new guess and press R/S. Continue guessing until you get the correct flashing result.

 


fatpat Software · PO Box 1785 · Charlottesville, VA 22902 · (804) 977-1652