[comp.sys.handhelds] Update to H. Piper! ver 1.1

vapsppr@prism.gatech.EDU (Paul Raines) (05/22/91)

Below is an update (Version 1.1) to H. Piper! for SUPER-CHIP.
The following bugs are fixed.

        - The starting pipe can no longer be replaced.
        - Too high a score would end the game prematurely.

Several improvements

        - The score is now shown in 3 digits at the smaller
          font so you don't have to remember if it rolled
          over.
        - The score needed to be able to continue at a
          certain level is shown at the bottom right
          corner of the grid.
        - A bonus for flowing through all grid sites. The
          score for that job is automatically 255. (Note:
          in a later version, I will probably add a bonus
          to the already obtained score, but for now this
          was the easiest way to do it.)
        - Random placement on the grid of the starting
          pipe. (Don't worry about getting an impossible
          starting pipe. That disallowed)
        - The score for the last round is shown during
          the total score screen for reference.
        - Cute, memory wasting graphic of a dripping
          pipe during the total score screen.
        - If exit is made by way of the (SPACE) key
          instead of the (DEL) key, the total score
          is written to user flags.  The user lang
          program below, SCORE, will read the score from
          the flags and put it on the stack in decimal
          form while clearing the user flag. (Note: if
          you want some kind of memory wasting, graphical
          high score screen, this returns the value you
          need to make one.)

Enjoy!

Comments and suggestions welcome.
Paul Raines vapsppr@prism.gatech.edu

-----( cut here for ASC version )-------------------------------
%%HP: T(3)A(D)F(.);
"C2A20D6C0000FF86A4218105E202251696E65637028236920213939313000E7A
280662169336003FE10D5136500780036421227A69068616200D51078026502F
E10D517A0A068616A20D51078026502FE10D5118081865064608517A630F332F
5636A546931F923D5437502F923D5408086A4D0F556A6E060016000D21078003
06216746206ACB06000DC46A8C06800DC447C043E32108660062446710635021
49162306016A6F0D6107800306212A160006066AAB0D2117201383210BD64032
0AE60332CA328B16207AE206010D8107800306218C17801323216C3C703710CC
03C701C8433C3038E57AC63FE11F56B80028019802080C52CA52AFA620760062
A7626906FF0F5106700E1A328306800E1A322506300E1A32C606600E1A326806
100E1A32E206F00E1A86200F70040032EC31206244080D084E52CA00EE320A32
8B080D07FF04FF0600D800320A328B06700E1A31A400EE320A328B080D071004
A00690D800320A328B06800E1A314600EE32CA328B080E070F040F0600E80032
CA328B06300E1A31E700EE32CA328B080E070104060605E80032CA328B06600E
1A318900EE080D070652467AE50D4100EE080E07A052467A650D8100EE080E08
4D52467AE40D8100EE0F510F700300316C00EE0809160F08210400312EA35031
2EB8390670B820A710280AB30031EE2680285A080B0865086503004101B30027
FF080C524618427A260D11F4004105A41041A74105B35041023608248041C238
65271041613610248041C238E527104122180308037A631F557A63080C524617
3093304164A4404184A3500D21F4004105A41041A7A380414662A7773062A7A6
0062E052AF94B041A708087400074B0F5100EE06B00EE941070E1A414700EE06
300F8142E6000E260036007ACB2FE11F56272038412387416834C376FF7AE71F
560847F30017107AE71F5568005801368246827AA76F332F560F033DA437B01F
033DA437B02F033DA437B06A6D3DA47AA75F332F5637B01F033DA437B02F033D
A462A76A4D0F56880084208780878F0865164618507851F40051C1526306B016
0026007ACB2FE11F552720238741EF060026007A472FE11F552720236051E021
817AAA06A216810D51078026502FE10D5152637AE71F561F5700DF6A6E362046
803D846AEF36A03D847A4B36E046013D740650324C06B00E1A51263D74472044
8351643D7451C400EE1800F60F182F1865F6F0082F08E508E508E50701172000
EE070F17EF08650865086518E5084100EE7ACB1800F6F0182F18E51FE1F60F08
2F0865180018651865084108E50FE100EE380052C81F56560003B056FF140051
2C16301F8151ED52AE080352460D81080352C8160008021F55080252AE080352
460D8162A7784574FF760062A700EE16F0082108E508E508E56A6D0FE100EE08
0C52C81F569800080C52C8080916101F5500EE0600B4600610B4300601B40006
0FB45006FF180C1840F60F182F140F41A7140641A7180C1840F6F0182F14F041
A714A041A7C84000EE1C707A461FE10F565800463036007A473FE10F56280052
AE06400D847A473FE108050F5552AE06400D8447C0580237103350612500EE7A
A77F332F560F92369646903D5437601F923D5437602F923D5400EE080807EF08
650865086516A018507AA71F332F561F03368646233DA437B02F033DA400EE8F
8F0C0C0C0C0C0C0C0C0C0C0CFF3030303030303030303030FF00000000000000
0000003C3C3C3C3C3C3C3CFFFF00000000FFFF3C3C000000003C3CFFFFFFFFFF
FFFFFFFFFF303030303C3CFFFF0C0C0C0C3C3CFFFF0C0C0C0CFFFFFFFF303030
30FFFF3C3C3C3C3C3CFFFFFFFF3C3C3C3C3C3C00E724242424E7000000000000
0000003C3C0C0C0C0CFFFF3C3C30303030FFFF000081C3C38100000001010707
010100008181E781001020D15161E1303060705080009030A000000000000000
000000000000003A2A3E2AAABB293921A3BB2A3B22A388888804849D292D259D
B3AA3BAAB2A929A9199D4B4A4B4263AEAAEA4A4EEEA8EC989E0202078F8F8F07
00B000B000B000B000B000B000B000B000B000B000B000B000B000B000B000B0
00B000B000B000B000B000B000B000B000B000B000B000B000B000B000B000B0
00B000B000B000B000B000B000B000B000B000B000B000B000B000B000B000B0
00B000B000B000B000B000B000B000B000B000B000B000B0005A52"
-----( cut here for ASC version )-------------------------------
Once above is in CHIP usable form, BYTES gives
   # 25A5h
    1601.5

Below is the short user lang program SCORE described above:

%%HP: T(3)A(D)F(.);
\<< RCLF 2 GET B\->R
RCLF 2 # 0d PUT
STOF
\>>

----------------------------------------------
-- 
Paul Raines
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!vapsppr
Internet: vapsppr@prism.gatech.edu

bson@rice-chex.ai.mit.edu (Jan Brittenson) (05/22/91)

In a posting of [22 May 91 03:27:03 GMT]
   vapsppr@prism.gatech.EDU (Paul Raines) writes:

 > Below is an update (Version 1.1) to H. Piper! for SUPER-CHIP.  The
 > following bugs are fixed.

   You didn't mention whether it would now properly restart on
[ENTER]. The previous behavior was slightly, uhm, unpredictable...

Oh, and what does the `H' stand for?

						-- Jan Brittenson
						   bson@ai.mit.edu

egraeler@uceng.UC.EDU (Eric S Graeler) (05/22/91)

> In a posting of [22 May 91 03:27:03 GMT]
>    vapsppr@prism.gatech.EDU (Paul Raines) writes:
> 
>  > Below is an update (Version 1.1) to H. Piper! for SUPER-CHIP.  The
>  > following bugs are fixed.

When I ran this program it left my Hp displaying the data with .'s instead of
/'s.  ie. 5.20.91 instead of 5/20/91.  A reset would not fix the problem or
and ON-C.  The only thing that would fix it was ON-A-F.  Anyone else encounter
this problem?
			
					Eric Graeler
					egraeler@uceng.uc.edu

p.s. Also, how about some instructions on game play.  I can't finish level one.
How do you finish a level?

vapsppr@prism.gatech.EDU (Paul Raines) (05/23/91)

In article <16081@life.ai.mit.edu> bson@rice-chex.ai.mit.edu (Jan Brittenson) writes:
>In a posting of [22 May 91 03:27:03 GMT]
>   vapsppr@prism.gatech.EDU (Paul Raines) writes:
>
> > Below is an update (Version 1.1) to H. Piper! for SUPER-CHIP.  The
>
>   You didn't mention whether it would now properly restart on
>[ENTER]. The previous behavior was slightly, uhm, unpredictable...

Sorry, I haven't given it the ability to restart yet. I really should.
The thing is if you restart using the [ENTER] key, you lose that
score, i.e. you can't you the user lang program SCORE to get the
decimal score from the user flags.  Therefore I never really
bothered with it.  However, I am sure plenty of people have accidently
hit the [ENTER] key instead of the [7] key and screwed everything up.
And of course, if your score is lousy or you are losing in a big way,
you want a quick restart.  I will make it top priority.

Does anyone think that the [ENTER] - [7] key problem is big
enough to change the place key to another key?

As soon as I make this fix, I will post my code as I have had
several requests. 

>
>Oh, and what does the `H' stand for?
>
Hewlett Packard <--> H. Piper (groan)


-- 
Paul Raines
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!vapsppr
Internet: vapsppr@prism.gatech.edu

vapsppr@prism.gatech.EDU (Paul Raines) (05/23/91)

In article <8551@uceng.UC.EDU> egraeler@uceng.UC.EDU (Eric S Graeler) writes:
>> In a posting of [22 May 91 03:27:03 GMT]
>>    vapsppr@prism.gatech.EDU (Paul Raines) writes:
>> 
>>  > Below is an update (Version 1.1) to H. Piper! for SUPER-CHIP.  The
>
>When I ran this program it left my Hp displaying the data with .'s instead of
>/'s.  ie. 5.20.91 instead of 5/20/91.  A reset would not fix the problem or
>and ON-C.  The only thing that would fix it was ON-A-F.  Anyone else encounter
>this problem?
>			
I will have to pass the buck on this one to the writer of SUPER-CHIP.  The 
original CHIP would not work when the clock display was on.  This was supposed
to be fixed in SUPER-CHIP, but there might be some peculiarities like this
nonetheless. How 'bout it Erik? (erikmb@etek.chalmers.se) I never use either
date or clock so I really can't comment.

>
>p.s. Also, how about some instructions on game play.  I can't finish level one.
>How do you finish a level?

Sorry. I posted this update so soon after the original which contained the 
instructions, I didn't want to waste bandwidth with another copy.  Tomorrow,
when I post the [ENTER] key fix, I will reprint the instructions.

As far as finishing the level, the small number right below the right bottom
corner of the grid is the score you need to get to get a new screen.  There
is no specific place you have to direct the flow to, you just try to hold
on as long as possible.  In a later version, I might give a bonus for having
the flow end at a particular grid site (provided of course that you lay
enough pipe to warrant it).

Hope this helps.
Paul

-- 
Paul Raines
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!vapsppr
Internet: vapsppr@prism.gatech.edu

bson@rice-chex.ai.mit.edu (Jan Brittenson) (05/23/91)

In a posting of [22 May 91 18:23:05 GMT]
   vapsppr@prism.gatech.EDU (Paul Raines) writes:

 >> [[ENTER] key to restart]

 > And of course, if your score is lousy or you are losing in a big way,
 > you want a quick restart.  I will make it top priority.

   That's how I found it out! :-) I'm not a game fanatic, but H.Piper!
is a winner. Is there a possibility of improving the graphics somewhat
- for instance, to make the pipe bends curved? H.Piper! has the same
qualities as Tetris: almost hypnotic in its simplicity. That's what
makes it a great game. (I haven't visited an arcade the last, er, 7
years I think.)

   Now, how's work proceeding on the Qix, the Centipede (I wrote one
in Macro-11 to run over a fixed 1200 bps muxed line on an ASCII
terminal in 1983 :-)), the Pac-Man (with a little more genuine feeling
than the previous CHIP post), and... :-)

   Oh, another thing. About games and random generators... My personal
opinion (gosh, I'm starting to sound like an arcade rat!) is that they
ought to be *banned*. The more that's under the player's control, the
better. A Centipede, for instance, might appear on the left/right side
depending on whether an even/odd number of shots have been fired since
the last Centipede segment was mushroomed. The starting point of an
H.Piper! round can be wherever the last round finished. Likewise, the
actual pieces selected seemingly on random, but the True Arcade Rat
knows better! :-) Choosing these "random" algorithms is probably what
is the most difficult part of designing a game. (We all know what
result is if you don't do it *right*!)

 >> Oh, and what does the `H' stand for?

 > Hewlett Packard <--> H. Piper (groan)

*Sigh*.  :-)

						-- Jan Brittenson
						   bson@ai.mit.edu

vapsppr@prism.gatech.EDU (Paul Raines) (05/23/91)

In article <16101@life.ai.mit.edu> bson@rice-chex.ai.mit.edu (Jan Brittenson) writes:
>
>............ Is there a possibility of improving the graphics somewhat
>- for instance, to make the pipe bends curved? H.Piper! has the same
>qualities as Tetris: almost hypnotic in its simplicity. That's what
>makes it a great game. (I haven't visited an arcade the last, er, 7
>years I think.)

I agree that the biggest problem with the program now is just the
visual realiztion of what pipe is what once you have a random ;-)
collaboration on the board.  I don't want to increase the size of
the pipe graphics at the cost of losing dimensions on the grid, but
I have soom ideas I am looking into.

>
>   Oh, another thing. About games and random generators... My personal
>opinion (gosh, I'm starting to sound like an arcade rat!) is that they
>ought to be *banned*. The more that's under the player's control, the
>better. A Centipede, for instance, might appear on the left/right side
>depending on whether an even/odd number of shots have been fired since
>the last Centipede segment was mushroomed. The starting point of an
>H.Piper! round can be wherever the last round finished. Likewise, the
>actual pieces selected seemingly on random, but the True Arcade Rat
>knows better! :-) Choosing these "random" algorithms is probably what
>is the most difficult part of designing a game. (We all know what
>result is if you don't do it *right*!)
>
Once again, I agree.  I hate randomness in most games too.  When I
see a new board game, the first thing I do is see if it has dice.
If it does, I generally don't buy it. Understandably, by favorite
games are chess, Diplomacy, and Empire Builder (or British Rails).
I will work on this too.  I like your suggestion about where to
put the starting pipe.  The new pipe selection will take some
creativity.  Incidentally, I did a test on the fairness of CHIP's
random generator and it is pretty fair.


Paul Raines
vapsppr@prism.gatech.edu


-- 
Paul Raines
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!vapsppr
Internet: vapsppr@prism.gatech.edu

akcs.falco@hpcvbbs.UUCP (Andrey Dolgachev) (05/24/91)

Jan,
 For what PDP did you write Centipede for?  At least I'm assuming that
you used a PDP-11 for the MAcro-11 program.
   --Falco

erikmb@etek.chalmers.se (Erik Bryntse) (05/24/91)

Paul Raines writes:
>In article <8551@uceng.UC.EDU> egraeler@uceng.UC.EDU (Eric S Graeler) writes:
>>
>>When I ran this program it left my Hp displaying the data with .'s instead of
>>/'s.  ie. 5.20.91 instead of 5/20/91.  A reset would not fix the problem or
>>and ON-C.  The only thing that would fix it was ON-A-F.  Anyone else encounter
>>this problem?
>>			
>I will have to pass the buck on this one to the writer of SUPER-CHIP.  The 
>original CHIP would not work when the clock display was on.  This was supposed
>to be fixed in SUPER-CHIP, but there might be some peculiarities like this
>nonetheless. How 'bout it Erik? (erikmb@etek.chalmers.se) I never use either
>date or clock so I really can't comment.
>

Well, I tried it on my 48 with H. Piper ver 1.2 and it worked OK. I
don't know of anything that could mess up the system flags in S-CHIP,
but then you never know... Does it happen every time?

Erik Bryntse
 

bson@rice-chex.ai.mit.edu (Jan Brittenson) (05/24/91)

In a posting of [23 May 91 21:40:05 GMT]
   akcs.falco@hpcvbbs.UUCP (Andrey Dolgachev) writes:

 > For what PDP did you write Centipede for?  At least I'm assuming that
 > you used a PDP-11 for the MAcro-11 program.

   A PDP-11/70 running RSTS/E V6 or V7, using the RT-11 RTS. I may
still have the code on tape/pack somewhere. The terminals (VC404) only
had 25 lines, which made playing slightly difficult. (But it worked,
and it was one of the very first Macro-11 programs I ever wrote.) Not
to mention that the poor PDP-11 was heavily overused and tended to
swap badly. But this really belongs in alt.folklore, not
comp.sys.handhelds; a PDP-11/70 is not precisely a handheld (unless
your hand is caught under a foot - ouch)...

So, when do I get to play nethack on the HP-48? :-)

						-- Jan Brittenson
						   bson@ai.mit.edu