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