[BACK]Return to bs.6 CVS log [TXT][DIR] Up to [local] / src / games / bs

File: [local] / src / games / bs / bs.6 (download)

Revision 1.6, Fri Jul 9 13:35:55 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.5: +2 -2 lines

- remove all trailing whitespace
     * except when it is escaped with a `\' at the end of the line
- fix remaining .Nm usage as well
- this is from a patch I received from kwesterback@home.com, who has been
  working on some scripts for fixing formatting errors in mdoc'd man pages

Ok, so there could be a cost/benefit debate with this commit, but since I have
the patch we might as well commit it...

.\"	$OpenBSD: bs.6,v 1.6 1999/07/09 13:35:55 aaron Exp $
.\"
.\" Copyright (c) 1997, Jason Downs.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"      This product includes software developed by Jason Downs for the
.\"      OpenBSD system.
.\" 4. Neither the name(s) of the author(s) nor the name OpenBSD
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd August 4, 1997
.Dt BATTLESHIPS 6
.Os
.Sh NAME
.Nm bs
.Nd battleships game
.Sh SYNOPSIS
.Nm bs
.Op Fl b | s
.Op Fl c
.Sh DESCRIPTION
This program allows you to play the familiar Battleships game against the
computer on a 10x10 board.  The interface is visual and largely
self-explanatory; you place your ships and pick your shots by moving the
cursor around the
.Sq sea
with the rogue/hack motion keys
.Em hjklyubn .
.Pp
Note that when selecting a ship to place, you must type the capital letter
(these are, after all, capital ships).  During ship placement, the
.Sq r
command may be used to ignore the current position and randomly place your
currently selected ship.  The
.Sq R
command will place all remaining ships randomly.  The ^L
command (form feed, ASCII 12) will force a screen redraw).
.Sh OPTIONS
The command-line arguments control game modes.
.Bl -tag -width XxXXX
.It Fl b
Selects a
.Sq blitz
variant.  This allows a side to shoot for as long as it continues to score
hits.
.It Fl s
Selects a
.Sq salvo
variant.  This allows a player one shot per turn for each of his/her
ships still afloat.  This puts a premium on scoring hits early and knocking out
some ships and also makes it much harder, for example, when you face a superior
force with only your PT-boat.
.It Fl c
Permits ships to be placed adjacently.  Normally, ships must be separated by
at least one square of open water.  This disables that check and allows them
to close-pack.
.El
.Sh NOTES
The algorithm the computer uses once it has found a ship to sink is provably
optimal.  The dispersion criterion for the random-fire algorithm may not be.
.Sh AUTHORS
Originally written by one Bruce Holloway in 1986.
Salvo mode added by Chuck A.  DeGaul (cbosgd!cad).
Visual user interface,
.Sq closepack
option, code rewrite
and manual page by Eric S. Raymond <esr@snark.thyrsus.com> August 1989.