I have just finished a little game for the HP28, but as I have no write access
to the comp.sys.handhelds I thought I'd send it to somebody who can check it
out and 'News' it if it's any good. Feel free to make a better version, as this
one is no 'masterpiece'. 

						Joachim Isaksson
					      (d89-jin@sm.luth.se)

Instructions and program following...

-------------------------------------------------------------------------------

The game of 'INCO'

This is a game based on a 'simple' idea. When you enter a number and press the
'INCO' button the HP28 will start with a 3 by 3 array containing only nines,
mixing it the number of times you entered by picking a row and a column in
which it will decrease all numbers by one. It will then display the resulting
array and your objective is to get the array containing only nines back by
pressing a digit, thereby increasing all numbers in the row/column you picked.
(Hard to explain, but you'll soon pick up the idea)
It isn't very well programmed, but I haven't had my HP28 for more than 3 weeks
so I hope I am excused. If anyone makes a better version, please post it to me
or even better to the net.

INCO [C23C]
<< -> dif
   << { 3 3 } 9 CON 1 dif
      FOR j RAND 9 * 1 + IP ->ARR -
      NEXT ->ADJ 0 SWAP
        DO SWAP 1 + SWAP DUP ->DSP 0
	  DO DROP
	    DO
 	    UNTIL KEY
 	    END
	  UNTIL DUP DUP "1" >= SWAP "9" <= AND
	  END STR-> ->ARR + ->ADJ 100 .01 BEEP
        UNTIL DUP { 3 3 } 9 CON SAME
        END
      ->DSP 10000 .01 BEEP ->STR "   Well done "   | 3 spaces before, 1 after |
      SWAP + " Moves" + 4 DISP
   >>
>>

->DSP [62D9]
<< ->STR "         " -> arr spc			   | 9 spaces |
   << spc arr  4  8 SUB + 1 DISP
      spc arr 15 19 SUB + 2 DISP
      spc arr 26 30 SUB + 3 DISP
      "" 4 DISP
   >>
>>

->ARR [3CDA]
<< DUP 1 - 3 MOD 1 + SWAP 9 SWAP - 3 / 1 + IP -> y x
   << { 3 3 } 0 CON 1 3
        FOR j { x j } 1 PUT { j y } 1 PUT NEXT
   >>
>>

->ADJ [8CB1]
<< ARRY-> DROP 1 9
     FOR j  9 ROLL 10 MOD
     NEXT { 3 3 } ->ARRY
>>


