I had a vary fruitful discussion with Ian Frechett, giving me some 
ideas to
improve the game.  Here is the result.  I made the following 
improvements:
- You can mark atoms on the display that you think you know.
- Cheating is impossible: after you saw the atoms, you get a count 
of right
        and wrong guessed atoms.
- You can see the last move even if you are typing in the next one.
- The number of atoms is visible in the upper left corner.
- The input routine is improved.
- Strings with a line-feed in the will download without problems.

For people who don't know the game yet, here an introduction:
Here is the game HEXATOM for the HP48SX.  If you never heard about 
it, that's
OK, because I invented it a few years ago with a friend.
It looks a little bit like the game "Black Box" (trademark of ?).

The rules are as follows:
There is a board consisting of 50 hexagons.  In those hexagons, there
is a number of atoms hidden by your opponenent (in this case, the 
calculator).
You must try to find the atoms by sending light rays through the 
grid.
You can send a light ray from any side of the board, so that there 
are six
directions.

A light ray is absorbed if it runs into an atom, and it bounces off 
if it
comes close to an atom:
          _   _   _   _           _   _   _   _  
        _/ \_/ \_/ \_/ \_       _/ \_/ \_/ \_/ \_
         \_/ \_/*\_/ \_/         \_/ \_/*\_/ \_/ 
        _/ \_/.\_/ \_/ \_       _/ \_/ \_/ \_/ \_
         \_/.\_/ \_/ \_/         \_/ \_/.\_/ \_/ 
        _/.\_/ \_/ \_/ \_       _/ \_/.\_/.\_/ \_
        .\_/ \_/ \_/ \_/         \_/.\_/ \_/.\_/ 
        _/ \_/ \_/ \_/ \_       _/.\_/ \_/ \_/.\_
         \_/ \_/ \_/ \_/        .\_/ \_/ \_/ \_/.
        Absorbed by an atom     Reflected

A move is done by sending a light ray.  As reply you get the edge 
of the board
at which the ray left the board, and "---" if it is absorbed.
Watch out for combinations like this:
          _   _   _   _           _   _   _   _  
        _/ \_/*\_/ \_/ \_       _/ \_/ \_/ \_/ \_
         \_/ \_/ \_/ \_/         \_/ \_/*\_/ \_/ 
        _/ \_/.\_/ \_/ \_       _/ \_/ \_/*\_/ \_
         \_/.\_/*\_/ \_/         \_/ \_/.\_/ \_/ 
        _/.\_/ \_/ \_/ \_       _/ \_/.\_/ \_/ \_
        .\_/ \_/ \_/ \_/         \_/.\_/.\_/ \_/ 
        _/ \_/ \_/ \_/ \_       _/.\_/ \_/ \_/ \_
         \_/ \_/ \_/ \_/        .\_/ \_/.\_/ \_/ 
        Absorbed by two atoms   Double reflection
There is also a triple reflection, which in effect reverses the ray.

The game is started by pressing PLAY (the first variable), and then
entering the number of atoms you like.  It gets harder with more 
atoms,
of course.  I recommend using 2 (boring) to 10 (almost impossible) 
atoms.

The program draws a board on the screen, with the atoms hidden.
You now have the following options:
1-5 selects a row of tiles (rather wiggly)
A-J selects a column of tiles
S-X selects a side of the tile where the ray will enter the board
Backspace erases the selection
ENTER sends a ray, and tells you the entry and exit position of the 
ray.
* shows where the atoms are.  Press any key to exit the game.
+ enters a guessed atom at the selected location.  To remove a 
location,
        just select it again and press + again.
(blue) OFF turns the calculator off in the middle of a game.  
Convenient as
        boss key :-) .

If the game is over, the calculator computes the number of guessed 
atoms
that are on the correct and incorrect positions.  It also gives the 
number
of moves and the number of hidden atoms.

Some remarks:
- I had a nice idea to get the large GROB to donwload without
        problems.  Probably at lot of people thought of this, but 
it is
        handy.
- The routine CHECK is nominated for the obfuscated RPL contest.
- I like to have the routine SCAN as fast as possible.  Does 
someone already
        have the right SYSEVALs handy?  Please contact me if you 
do.  Saves
        me a lot of time.
Happy playing!

@HEXATOM written by Jurjen N.E. Bos
@Revised version
@August, 1990

