Rat's perspective inside a maze.  Look for the food caches and find
the exit before you starve.  Graphical maze for the TI-85.


Program:  LABRYNTH
Date:     July 14, 1993

Work a maze from the inside.  Walls are drawn to perspective on the
graph screen.  Get an overview of the maze with you-are-here
indicator at any time.

Run LABRYNTH to start the program.  You get a menu which allows you
to initialize a new maze or reuse an existing maze.

  [ NEW ] [REUSE] [     ] [     ] [QUIT ]

The first time you run the program, select F1 [NEW] to generate a new
maze.  You get to watch the maze be drawn on the graph screen while
its being created.

You begin the maze in the lower left corner.  Your goal is to reach
the upper right corner.  The initial view shows a perspective drawing
of the walls around you.  Press the [GRAPH] key at any time to review
the maze overview.  A dot winks on the overview to show you where you
are.

There are three meters drawn as bar graphs along the right edge of
the perspective display.  Proceeding from left to right, the first
meter displays how much energy you have--the shorter it gets, the
less energy you have.  If this bar drops to zero, you die of
starvation.

The second and third meters display how close to a food source you
are.  The closer you approach to a food source the shorter they get. 
The third bar indicates how close you are to a food source.  The
second bar indicates how close you were from your previous location. 
Use this a reference:  if the third bar is higher than the second
bar, you are moving away from food; shorter, moving closer.  There
are four food sources.  Each is randomly located in each quadrant.

Use the [UP] arrow key to move forward.  [LEFT] and [RIGHT] turn. 
Your view inside the maze is redrawn after each move.

This program is accompanied by two data matrices LG and LV.  Don't
delete them or the program won't work.  It also generates matrices O,
D, F, and T.  Matrix T is very large--it contains the maze layout. 
You may have to delete other programs or data to accomodate matrix T.

The ASCII section of the listing doesn't include data matrices LG and
LV.  Decode the UUE section and download the group file to get the
data matrices and a ready-to-run version of the program.

