Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / games / bs / bs.6
CommitLineData
86d7f5d3
JM
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.4 2008/05/02 02:05:03 swildner Exp $
3.Dd August 23, 1989
4.Dt BS 6
5.Os
6.Sh NAME
7.Nm bs
8.Nd battleships game
9.Sh SYNOPSIS
10.Nm
11.Op Fl bsc
12.Sh DESCRIPTION
13This program allows you to play the familiar Battleships game against the
14computer on a 10x10 board.
15The interface is visual and largely self-explanatory;
16you place your ships and pick your shots by moving the
17cursor around the
18.Sq sea
19with the
20.Xr rogue 6
21/
22.Xr hack 6
23motion keys
24.Dq hjklyubn .
25.Pp
26Note that when selecting a ship to place, you must type the capital letter
27(these are, after all, capital ships).
28During ship placement, the `r' command may be used to ignore the current
29position and randomly place your currently selected ship.
30The `R' command will place all remaining ships randomly.
31The \&^L command (form feed, ASCII 12) will force a screen redraw).
32.Pp
33The command-line arguments control game modes.
34.Bl -tag -width ".Fl b"
35.It Fl b
36selects a
37.Dq blitz
38variant
39.It Fl s
40selects a
41.Dq salvo
42variant
43.It Fl c
44permits ships to be placed adjacently
45.El
46.Pp
47The
48.Dq blitz
49variant allows a side to shoot for as long as it continues to score hits.
50.Pp
51The
52.Dq salvo
53game allows a player one shot per turn for each of his/her ships still afloat.
54This puts a premium scoring hits early and knocking out some
55ships and also makes much harder the situation where you face a superior force
56with only your PT-boat.
57.Pp
58Normally, ships must be separated by at least one square of open water.
59The
60.Fl c
61option disables this check and allows them to close-pack.
62.Pp
63The algorithm the computer uses once it has found a ship to sink is provably
64optimal.
65The dispersion criterion for the random-fire algorithm may not be.
66.Sh AUTHORS
67.An -nosplit
68Originally written by one
69.An Bruce Holloway
70in 1986.
71Salvo mode added by
72.An Chuck A. DeGaul Aq cbosgd!cad .
73Visual user interface,
74.Sq closepack
75option, code rewrite and manual page by
76.An Eric S. Raymond Aq esr@snark.thyrsus.com
77August 1989.