home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Desktop Works 1995 - 1996
/
desktopworks1995-1996.iso
/
scrnsave
/
win_maze
/
maze3d.doc
< prev
next >
Wrap
Text File
|
1996-01-01
|
2KB
|
59 lines
May 12, 1994
MAZE3D
Display mazes in three dimensions under Microsoft Windows 3.1.
"Action", "Style", and "Help" appear on the menu bar.
The following options are available under Action:
New -- generate another maze.
Solve -- outline the solution (of a completed maze).
Clear -- remove the solution.
Either square or hexagonal rooms may be selected under "Style".
Use the horizontal scroll bar to vary the rotation form 0 to 360 degrees.
Use the vertical scroll bar to vary the tilt from 0 to 90 degrees.
Resizing the window yields a new maze. The size of the rooms remains the
same.
All of the Borland C++ 4.0 source code is supplied (with comments). In
order to use MAKE to process the source code, you will have to change the
directories in (the first 3 lines of) MAZE3D.MAK.
The following pieces of source code are specific to maze generation:
CELL.* -- Each instance of this class represents a room in a maze.
HEXMAZE.* -- each instance of this class is a maze having hexagonal
rooms.
SQRMAZE.* -- each instance of this class is a maze having square
rooms.
MAZE3D.CPP -- the source for MAZE3D.EXE.
The following pieces may find application in other programs:
ORACLE.* -- Each object derived from this class is a random number
generator. "random_number()" returns integers uniformly distributed
between 0 and max_r_n_plus_1-1.
PLOT3D.* -- plots z=f(x,y) in three dimensions.
SPIKE.CPP demonstrates using PLOT3D.* to plot a simple mathematical
function; SPIKE.EXE is the corresponding executable code.
I am the author of all the code in this package. It may be freely
distributed.
-- James L. Dean
csvcjld@nomvs.lsumc.edu