home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
games
/
batship.zip
/
BATSHIP.DOC
next >
Wrap
Text File
|
1986-03-31
|
2KB
|
31 lines
This Battleship program was originally written in C for the XENIX
operating system in June of 1985. At that time I was using ANSI escape codes
to do cursor movement and all the standard output routines for text. This
current version is IBM PC/compatibles specific and uses special functions I
wrote with the Macro Assembler. The functions use INT10 in the ROM BIOS to
do all text output and cursor positioning. The main source is still in C
and was compiled with Microsoft C using the /Gs and /Ot switches.
Here are a couple of hints for playing the game. During setup you
should first select the letter of the ship you will place. NOTE: ALL INPUTS
SHOULD BE IN LOWER CASE. Next you will select the direction that the main
body of the ship will be placed starting from the row and column that you
will pick next. Enter the row and column with no intervening spaces. If
you decide that you don't like where you have placed one of your ships you
may enter it's letter again and the old ship will be erased. When you are
satisfied with the placement of all your ships type the letter q and the
computer will randomly place it's ships. When the computer has placed it's
ships the battle will start, you shoot first then the computer shoots. Enter
the row and column of your shot the same way as when you placed your ships.
If you want to leave the game at any time type a Ctrl-C or Ctrl-Break.
I will welcome any ideas or suggestions that players of this game
may have and I would greatly appreciate a donation of $10 or so. Also, if
anyone was interested I might be persuaded to give up the source for my INT10
functions or the Battleship program itself. Send any correspondence to:
David T. Hamilton
7000 Etiwanda #20
Reseda, Ca. 91335