HP-41 Catch the Goufer's Game

Back to main page | Email me at: Gene!


This game originally appeared in the PPC Journal V8N6P44 by Thomas Fange from Goteborg Sweden. Thanks to Thomas wherever he is today!

Goufers are small, disagreeable furious, fluffy, ugly animals. They live in a 9 room cave (see diagram below). Your mission is to kill all goufers. You have 10 shots. The goufers position will be shown to you in the form of a quick R-C-N prompt, with R being the ROW, C being the column, and N being the number of goufers remaining. When this is shown, you have about 1 second during a pause to enter the right key to shoot the goufer. When you shoot (or if you are too slow and don't get to shoot), a message will scroll around the screen indicating whether you got the goufer or missed him. At the end, you will be told how many you killed. Let the hunt begin.

It's not a very complicated game, but it's not all THAT easy to do with only one pause command in there.


Program Listing: The listing is presented below. It is 181 bytes long and requires 5 data memories.
Line      Instruction
01         LBL "GOUF"
02         FIX 0
03         CF 29
04         CF 21
05         SF 27
06         "SEED?"
07         PROMPT
08         STO 00
09         LBL A
10         10
11         STO 01
12         CLX
13         STO 04
14         "-----"
15         LBL 13
16         SF 25
17         AVIEW
18         SF 99
19         XEQ 00
20         9
21         *
22         1
23         +
24         INT
25         STO 02
26         XEQ IND 02
27         ->"-"
28         ARCL 01
29         XEQ 00
30         37
31         *
32         9
33         +
34         INT
35         STO 03
36         LBL 10
37         DSE 03
38         GTO 10
39         AVIEW
40         PSE
41         RCL 02
42         X NE Y?
43         GTO 11
44         "GOT HIM"
45         1
46         ST+ 04
47         GTO 12
48         LBL 11
49         "MISSED"
50         LBL 12
51         DSE 01
52         GTO 13
53         AVIEW
54         PSE
55         "GOT "
56         ARCL 4
57         PROMPT
58         LBL 00
59         RCL 00
60         997
61         *
62         FRC
63         STO 00
64         RTN
65         LBL 01
66         "1-1"
67         RTN
68         LBL 02
69         "1-2"
70         RTN
71         LBL 03
72         "1-3"
73         RTN
74         LBL 04
75         "2-1"
76         RTN
77         LBL 05
78         "2-2"
79         RTN
80         LBL 06
81         "2-3"
82         RTN
83         LBL 07
84         "3-1"
85         RTN
86         LBL 08
87         "3-2"
88         RTN
89         LBL 09
90         "3-3"
91         END

That's it. Short but kinda fun. Enjoy!