Merge from vendor branch GDB:
[dragonfly.git] / games / bs / bs.6
1 .\" $FreeBSD: src/games/bs/bs.6,v 1.1.1.1.12.1 2001/07/22 11:32:10 dd Exp $
2 .\" $DragonFly: src/games/bs/bs.6,v 1.2 2003/06/17 04:25:23 dillon Exp $
3 .TH BATTLESHIPS 6 "Aug 23, 1989"
4 .SH NAME
5 bs \- battleships game
6 .SH SYNOPSIS
7 bs [ -b | -s ] [ -c ]
8 .SH DESCRIPTION
9 This program allows you to play the familiar Battleships game against the
10 computer on a 10x10 board. The interface is visual and largely
11 self-explanatory; you place your ships and pick your shots by moving the
12 cursor around the `sea' with the rogue/hack motion keys hjklyubn.
13 .PP
14 Note that when selecting a ship to place, you must type the capital letter
15 (these are, after all, capital ships). During ship placement, the `r' command
16 may be used to ignore the current position and randomly place your currently
17 selected ship. The `R' command will place all remaining ships randomly. The ^L
18 command (form feed, ASCII 12) will force a screen redraw).
19 .PP
20 The command-line arguments control game modes.
21
22 .nf
23         -b selects a `blitz' variant
24         -s selects a `salvo' variant
25         -c permits ships to be placed adjacently
26 .fi
27
28 The `blitz' variant allows a side to shoot for as long as it continues to
29 score hits.
30 .PP
31 The `salvo' game allows a player one shot per turn for each of his/her ships
32 still afloat.  This puts a premium scoring hits early and knocking out some
33 ships and also makes much harder the situation where you face a superior force
34 with only your PT-boat.
35 .PP
36 Normally, ships must be separated by at least one square of open water. The
37 -c option disables this check and allows them to close-pack.
38 .PP
39 The algorithm the computer uses once it has found a ship to sink is provably
40 optimal. The dispersion criterion for the random-fire algorithm may not be.
41 .SH AUTHORS
42 Originally written by one Bruce Holloway in 1986. Salvo mode added by Chuck A.
43 DeGaul (cbosgd!cad). Visual user interface, `closepack' option, code rewrite
44 and manual page by Eric S. Raymond <esr@snark.thyrsus.com> August 1989.