home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
HANOI10.ZIP
/
HANOI10.DOC
< prev
next >
Wrap
Text File
|
1995-06-15
|
24KB
|
486 lines
TOWERS OF HANOI |
|
version 1.0 |
|
|
A multi-node door for most BBS systems |
Copyright 1995 by DIRT CHEAP SOFTWARE |
Written in C by Bruce Bowman |
|
Released June 20, 1995 |
|
INTRODUCTION
============
>Disclaimer< Throughout this document, I have used the masculine gender
when referring to a "generic" person. This is only to avoid continuous
use of such things as (s)he, which I find annoying. I have total respect
for the females of the species; I even married one. So lighten up. :^)
>Disclaimer #2< The author of this program, Bruce Bowman, promises only
that this program will take up space on your hard drive (and perhaps not
even that). I've put a lot of my time and sweat equity into this, and in
return I ask only that you try it and remit a token sum if you continue
to do so. I make no claims for its suitability for a particular purpose,
and guarantee nothing whatsoever regarding potential damage to your own
computer or hard-acquired files. I can only suggest that you do what I
do, and back up your hard drive frequently. If the unthinkable happens
and some terrible fate should befall you as a direct or indirect result
of using Towers of Hanoi, you will have my utmost sympathy -- but that's
about all. So there. :^)
This software is COPYRIGHTED: You're subject to the associated penalties
of law if you attempt to reverse-engineer it, hack the key routines, or
otherwise steal the benefits of all my aforementioned sweat equity.
QUICK START
===========
See the file QUICK_ST.ART for fast instructions on how to test and set up
Towers of Hanoi.
OVERVIEW
========
Towers of Hanoi is based on an old oriental puzzle. The object of the game
is to move a stack of disks of different sizes from one post to another,
one at a time, without ever putting a larger disk on top of a smaller one.
It sounds simple, but the task is a lot harder than you might think! To do
well, you will need a quick analytical mind and some manual dexterity.
Additional disks increase the difficulty significantly. The door includes
an online Hall of Fame to store the best times!
At only $8 registration, this door is a bargain.
Towers of Hanoi offers the following sysop features (and more I've probably
overlooked in these docs):
- As you would expect, Towers of Hanoi monitors carrier detect functions, to
automatically recover when a user drops carrier.
- Includes a fully-adjustable inactivity timeout monitor. A warning is
sent 5 seconds before the caller is ejected.
- Share-aware file i/o for use in multi-node BBS systems. You must have
DOS's SHARE.EXE loaded for multi-node use.
- Supports most popular BBS door information files, such as DORINFO1.DEF,
EXITINFO.BBS, CHAIN.TXT, DOOR.SYS, etc.
- Integrated chat, simple configuration, "multiple personality" system,
session logging, paging hours, Hall of Fame, supports CUSTOM DROP FILE
FORMATS, and MORE!
- Displays and updates a QuickBBS-style status line, with information
available to the sysop such as user name, location, baud rate, time left,
function keys, ANSI and AVATAR settings, and so on.
- Keeps track of a user "wants-chat" indicator, just like the one in
RemoteAccess, QuickBBS and other BBS systems. Allows for sysop page from
the door, and integrated chat mode.
- Provides the sysop with all the standard function keys for adjusting user
time, hanging up on or even locking out the user -- and sysop shell to DOS.
- Full support for locked baud-rates of up to 115200 baud, using the FOSSIL
driver for maximum compatibility with any system. If a FOSSIL is not
available, Towers of Hanoi will use its own communications routines.
Auto-detect of local operation.
- Towers of Hanoi is also DesqView and Windows aware. It will automatically
check for the presence of a multitasker, and if available, will perform
all of its screen output through the appropriate function calls and
release time slices to other tasks.
COMMAND LINE PARAMETERS
=======================
Most configuration is done via the configuration file. See the HANOI1.CFG
file for an example and instructions on how to edit the paths and other
parameters for your own use. If running multi-node, you'll normally need to
create a separate config file for each node running the door.
Call the program with the following syntax:
HANOI <cfgfile>
Where:
<cfgfile> REQUIRED: Name of the config file. Include the path, if necessary.
The config file used will normally vary depending on the node
using the door. I usually set things up so the node number is
passed on the menu item command line, something like this:
C:\BBS\DOORS\HANOI.EXE C:\BBS\DOORS\HANOI*N.CFG
The *N parameter is a 'metacharacter' that the BBS software uses
to provide the node number to the door. This allows you to set up
a single menu item that will run the program for all nodes without
resorting to batch files.
Examples:
--------
HANOI HANOI1.CFG
Bring up the door with the node 1 config file. Note that this command
assumes that you have already changed to the directory containing the
executable and config files; so it's probably only suitable for use
in a batch file for node 1.
C:\BBS\DOORS\HANOI.EXE C:\BBS\DOORS\HANOI*N.CFG
Run the door from node 2. This example uses the BBS metacharacter to
select the appropriate config file for each node automatically. This
command can therefore be placed directly into the BBS menu item. Once
edited with your own directory paths, the example above should work
for QuickBBS, RemoteAccess, and clones. Note that some BBS software
will not allow you to omit the .EXE extension.
C:\BBS\DOORS\HANOI
ERROR. Config file name is REQUIRED.
What could be simpler?
OTHER COMMAND-LINE OPTIONS
==========================
You MUST be in the Towers of Hanoi directory to use this option!
HANOI LOCAL (Local mode)
Runs Towers of Hanoi with sysop defaults. This mode does not require
a configuration file or any door information (drop) files. It's
mainly used to play with the door a little to see if you like it
prior to setting it up.
CARE AND FEEDING OF TOWERS OF HANOI
===================================
There isn't any. The Towers of Hanoi takes care of itself. The game will
create files called HANOI.BBS and HANOI.HOF to store data it needs. To reset
the Hall of Fame, just delete the HANOI.HOF file.
SYSOP FUNCTIONS
===============
Status Line - By default, the status line is ON. To turn it off, press F10.
The status line lists the name of the user currently on-line, his location,
and baud rate (0 if the door is operating in local mode). You may also find
out how much time the user has left, check for indicators as to whether the
user has ANSI and/or AVATAR modes on, etc. If the user wishes to Chat with
the sysop (ie: they have paged the sysop, but haven't received a response),
a [Want-Chat] indicator will flash on the status line.
The appearance of the status line varies with the "personality" setting
chosen in the config file. The following is for the "Remote Access" style,
but the other styles are similar.
[F1]..[F10] - The Function keys [F1] thru [F10] allows the sysop access to
various types of information on the status line, or to turn
the status line off. These keys are as follows:
[F1] - Display basic door and user information
[F2] - Display phone numbers and important dates
[F3] - Display security flags and up/download info
[F4] - Display system information and current time
[F5] - Display message info and user's settings
[F6] - Display chat reason and sysop's comment
[F9] - Display help information for sysop
[F10] - Toggle the status line on/off
The following other function keys are also available to the sysop:
[UP]/[DOWN] - Use the arrow keys to increase or decrease the amount of
time the caller has left in the door.
[Alt]-[C] - Allows the sysop to break into chat with the caller at any
time. [Alt]-[C] again, or [ESC] will end chat mode. (Notice
that the Want-Chat indicator will also be turned off, if it
was flashing). If your door is running under Apex, Remote
Access or QuickBBS, paging from within the door will also
cause the Want-Chat indicator to stay lit when the user
returns to the BBS.
[Alt]-[J] - Allows the sysop to shell to DOS, if enough memory is
available. Simply type EXIT to return to the door.
[Alt]-[H] - Hang up on the user. Drops carrier and returns to the BBS.
[Alt]-[L] - This key locks the user out of the BBS. It first hangs up
on the user, and then sets their security level to 0, to
prevent them from ever logging on again. This feature may
require use of the EXITINFO.BBS file, depending on what
system the door is running under.
[Alt]-[K] - The "User Keyboard-Off" key allows the sysop to temporarily
prevent the user from typing anything on their keyboard.
This has no effect on the local keyboard, but causes the
door to ignore any keystrokes from remote.
[Alt]-[N] - The "Sysop Next" key, this function reserves the system for
use by the sysop after the user logs off, if the door is
running under an Apex or RA 1.00 or later system.
[Alt]-[D] - "Drop to BBS" key. This function allows the sysop to exit
the door and return the user to the BBS, without hanging up.
USING THE DOOR
==============
The door is menu-driven, and most of the functions are self-explanatory. A
brief overview will be given here.
Towers of Hanoi is an ancient puzzle that is sometimes used in computer
programming texts as a tool for teaching recursive logic. The game consists
of three posts, and a number of disks of increasing size. These disks are
placed on one of the posts, pyramid-fashion, with the smallest disk at the
top. The computer will select a destination post. The object of the game is
to move all the disks to this post in the same configuration, without ever
placing a large disk on a smaller disk.
Just playing the game a few times is the best way to get an idea of what is
going on. Also, be sure to avail yourself of the online help!
The opening screen allows the caller to perform most game operations. To
select an option, type the key in angle brackets.
<Q>uit Door -- Ends the door session and returns to the BBS. You may
select this option at any time, even during a game.
<L>og Off -- Ends the door session and also hangs up the modem. In order
for this option to work, you may need to be using certain types of
BBS software; not all BBS system support a remote logoff.
<P>age Sysop -- Sounds a tone at the local console. The sysop can break
into chat at any time by typing Alt-C. This function allows the
caller to request a chat session, if not outside of paging hours.
<G>ame Rules -- A brief, 1-screen overview of the rules of the game.
<D>oor Hints -- Another 1-screen overview of what the commands do and
a hint on how to approach the puzzle.
<#> of Disks -- Changes the number of disks to be used in your next game.
You cannot change this during a game. Adding one disk requires twice
as many moves to complete the puzzle!
<S>tart a Game -- Sets up a new game using the "current" number of disks.
The timer doesn't start, however, until you begin your first move. To
move, just type a post number, and the top disk will be highlighted.
Then type the destination post for that disk, and the disk will be
moved.
<R>edraw Screen -- This command is active at all time, just in case line
noise messes up the remote screen.
<H>all of Fame -- Displays the Hall of Fame for this level, sorted by
time. The less time you take to complete the puzzle, the higher you'll
end up in the Hall of Fame! Each number of disks has a separate Hall of
Fame.
REGISTRATION
============
To Other Shareware Authors:
I will happily exchange registrations to any of my products, if what you
have interests me at all. Netmail me with the specifics if interested.
(Not responsible for lost or misrouted mail!).
The key consists of a small file that resides in the same directory as
your game file (HANOI.BBS). Ordinarily, I would find this abhorrent --
but I'm just too stupid to figure out a way to patch the executable with
a key entered in a config program (which would also require a config
program!).
Benefits of Registration
------------------------
1) The door will not allow configuration of Maximum games/day or Maximum
disks. For example, to play with more than 6 disks, you'll have to
register.
2) You cannot disable paging or set paging hours unless registered.
3) The door will display a registration delay when opened until registered.
4) The door will display -= UNREGISTERED =- when returning to the BBS
until you register.
5) You will receive preferential support from the author.
6) You will have peace of mind, knowing that you are supporting shareware.
How do you register? Send $8 (US) cash, check or money order, payable to
Bruce Bowman, to the following address:
DIRT CHEAP SOFTWARE
c/o Bruce Bowman
8364 S. State Road 39
Clayton, IN 46118
Allow 2 weeks for personal checks to clear. I'm told it's not a good idea
to send cash via the mail, but I've never had problems with it. If you
decide to do so, and the money gets ripped off, I will feel sorry for you
but I won't waive your registration fee over it.
Accompany this with the form on the following page...or otherwise provide
this information. Registrations without this information WILL be ignored
(I will make a feeble attempt to contact you, and eventually tear up your
check).
On occasion I have attempted to netmail certain individuals keys, only to
get bad connects -- I simply cannot afford this. If your BBS is only online
during certain hours, let me know. If I get two bad connects trying to
netmail a key, I will give up and put it on hold for you and notify you of
this fact via routed netmail (which itself is not very reliable anymore).
NOTE:
Registered keyholders receive FREE UPGRADES when they become available.
You will have to check in though, since I don't plan to notify everyone of
an upgrade individually.
TOWERS OF HANOI REGISTRATION
Version 1.0
IMPORTANT! The BBS name and SYSOP name must match your door IMPORTANT!
IMPORTANT! drop file EXACTLY, or your key won't work. Consider IMPORTANT!
IMPORTANT! sending us a copy of your BBS drop file(s)! IMPORTANT!
*SYSOP NAME: __________________________________________________________
ADDRESS: ______________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
*BBS NAME: ____________________________________________________________
BBS Phone: ____________________________________________________________
BBS Software/Version: _________________________________________________
NETWORK: _______________________________________ (FidoNet, etc, if any)
NETWORK NODE NUMBER: _______ : ________ / ________ (if above completed)
AMOUNT ENCLOSED: ______________________ NOTE: Registration is $8!
HOW DO YOU WANT TO PICK UP THE KEY?
[ ] ... Put on hold for me at 1:231/710 for the Net/Node listed above.
[ ] ... Send via FidoNet crashmail to the node indicated above.
[ ] ... Here's $2.00 Upload it to me as well as the latest version.
Acount Information as Follows:
Account Name: Bruce Bowman
Password: ____________________________________
Miscellaneous Info: ________________________________________
____________________________________________________________
[ ] ... Send on disk to the address above (very slow!) Please add $5 to
cover disk, mailing costs, and my hassle.
Please ship my key and latest copy via [ ] - 5.25" [ ] - 3.5"
[ ] ... YES!! I WANT THE SPECIAL DEAL! Send me latest version of KaBoom!
and its key for only $7 more!!
COMMENTS/SUGGESTIONS/BUGS: ____________________________________________
_______________________________________________________________________
__________________________________________________________________@o.tw
TECHNICAL SUPPORT
-----------------
TECHNICAL SUPPORT IS PROVIDED ONLY THROUGH EMAIL OR CALLING MY BBS!
I have had people ask me to call them long-distance on my dime -- I simply
don't make enough money on Towers of Hanoi to justify this. There seems to
be a perception amongst the sysop community that door authors are getting
rich selling their doors, but the truth is that most sysops never register
their doors.
To obtain support, you must call my BBS or send me email. You will be
given a full-access, temporary account on your first call...so you can
leave me a message or download other DIRT CHEAP programs. You'll have to
call the BBS again to get your reply; or if you're on FidoNet and can
wait, I can send you routed netmail. InterNet email is quicker.
The H.O.M.E. BBS
(317) 539-6579 - 28.8 kbps
FIDONET: 1:231/710
DOORNET: 75:7317/71
INTERNET: beb@lilly.com or
Bruce_Bowman@f710.n231.z1.fidonet.org
FREQUENT COMMENTS
=================
Q: The door can't find the game files, or it can't find my key even though
I've registered. Help!
A: Run the door from the directory containing the game file and the key,
or place the correct path in the config file under "DoorDir." The
executable can be anywhere on your path. Make sure Towers of Hanoi knows
where your drop files are from the "BBSDir" parameter. If your key is
named something else, be sure to rename it to HANOI.KEY. Finally,
try putting your system name and sysop name in the configuration file.
If it still does not recognize your key, you either did not provide
the correct BBS and sysop names on your registration form, or your
system is misconfigured so this information is not appearing in your
drop files. Upload a copy of your drop files to the support BBS or via
email to one of the listed addresses.
Q: When I call the door, the status line quickly flashes on and comes back
to the DOS prompt.
A: You are probably giving Towers of Hanoi a nonexistent config file name.
Make sure you use the correct metacharacter in your menu, and that you
haven't misspelled anything.
Q: The game prints [2;4m brackets and other junk characters all over.
A: The door requires ANSI, AVATAR or RIP graphics capability. Exit the door
and rectify the situation.
Q: The file HANOI.BBS or HANOI.HOF exists, but I occasionally still get
a message from the door saying "Error opening HANOI.BBS/HANOI.HOF!"
A: The door will try 20 times to open the file over a 10-second interval. If
this fails, Towers of Hanoi gives up with an error.
You may be running out of file handles. Increase the number of FILES in
your CONFIG.SYS.
It is also possible that one task in a multi-tasking environment opened
the file, and then crashed without closing it. If so, you will probably
have to reboot to clear the error.
This may also rarely happen during intensive disk activity in a multi-
tasking environment (for example, when copying files to/from floppies).
Use a copy utility (like DVCOPY) that will properly release time slices
to your door.
You *do* have DOS's SHARE.EXE loaded, don't you?
PRODUCT HISTORY
---------------
6/95 Initial release of Towers of Hanoi.