Rautenberg Logo


for the HP49G/g+

MINES is a reprogramming of the famous HP48-game MINEHUNT. It is half as big but twice as comfortable. And it solves the main problem of the original game: spontaneous garbage collection when moving in the battlefield. MINES has a new library command for setting the number of mines and toggling hidden/visible mines. No need for a global variable Nmines anymore, and no disturbing LIBDAT in the menu if suspending the game with STO. MINES is very fast on the HP49+. Tested on HP49G in ROM 1.19-6, as well on HP49+ with ROM 1.24 and 2.0.

NEW in version 1.2005
Adapted to ROM 2.0.

NEW in version 7.2003
MINES only 1.9 KB. Problems with buggy HP49g+ sound effects fixed.

NEW in version 6.2002
MINEHUNT in 2 versions. A second library command is added, see below.

NEW in version 2.2002
No disturbing garbage collection anymore during the game. STO hides a not yet finished game outside the current directory. Sound effects added.

You are standing in the upper-left corner of an 8 x 16 battlefield grid. Your goal is to isolate the invisible mines by creating largest possible mine-free areas and to travel safely to the lower-right corner. The headline tells you how many mines are under the 8 squares adjacent to your position. The larger the mine-free area the higher the score. Use the arrow keys or number to cross the battlefield, one square at a time. 8, 6, 2, 4 work like the arrow keys, 7, 9, 1, 3 move diagonally. CANCEL aborts as usual. STO suspends a running game and saves it. When you next start MINES, the suspended game will be resumed to bring it to an end or to store it again. Winning or loosing the game is announced by a corresponding message and sound (if the beep flag is active).   

You can change the number of mines in the battlefield by pressing the command SetX. The default is 20 hidden mines, displayed in the command line. Overwrite it as you like with any numer, and ENTER your setting. At most 64 mines are admissable. The sign of the number can be toggled with the +/- key. If negative, the mines are visible during the game. A game with about 50 visible mines presents a really attractive labyrinth game not only for newbees and children which may not yet draw optimal conclusions from the adjacent-mines count in the headline if playing with hidden mines.

A way to the right-lower corner in a field with 50 mines
HP49G screen
A way to the right-lower corner in a field with 60 mines
HP49G+ screen (ROM 1.24)

Remark 1. If you want MINES to be included into GAMES on the APPS key, load a recent APPSman version and store a list in APAR8 containing the commands Mines and SetX. Or add them to the list in APAR8 if already existent. Another possibility is add the item { MINES 292 TMENU } to APAR8. A third possibility is to load TETRI which creates the GAMES category in APPS and to procede as above. A fourth possibility is to load Libman and to create an extra page for games when pressing on the LIB key.

Remark 2 for experts. Both the signed number of mines and a suspended game data are stored in the Hidden directory in the variables VPAR and PPAR which are normally not used there. MINESHUNT was first ported from the HP48 to the HP49 by Daniel Lidström. Our version uses parts of this porting and messages from the built-in library 231 (or 226 since ROM 2.0).

Credits. Thanks to Daniel Lidstöm for porting, to Otto Praxl and Philip for beta-testing.

Wolfgang Rautenberg †