aboutsummaryrefslogtreecommitdiff
path: root/bs/bs.6
blob: 65f61b3b574d27cf795e32e0cc568d3d6d053437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" $FreeBSD: src/games/bs/bs.6,v 1.1.1.1.12.1 2001/07/22 11:32:10 dd Exp $
.Dd August 23, 1989
.Dt BS 6
.Os
.Sh NAME
.Nm bs
.Nd battleships game
.Sh SYNOPSIS
.Nm
.Op Fl bsc
.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
.Xr rogue 6
/
.Xr hack 6
motion keys
.Dq 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 `r' command may be used to ignore the current
position and randomly place your currently selected ship.
The `R' command will place all remaining ships randomly.
The \&^L command (form feed, ASCII 12) will force a screen redraw).
.Pp
The command-line arguments control game modes.
.Bl -tag -width ".Fl b"
.It Fl b
selects a
.Dq blitz
variant
.It Fl s
selects a
.Dq salvo
variant
.It Fl c
permits ships to be placed adjacently
.El
.Pp
The
.Dq blitz
variant allows a side to shoot for as long as it continues to score hits.
.Pp
The
.Dq salvo
game allows a player one shot per turn for each of his/her ships still afloat.
This puts a premium scoring hits early and knocking out some
ships and also makes much harder the situation where you face a superior force
with only your PT-boat.
.Pp
Normally, ships must be separated by at least one square of open water.
The
.Fl c
option disables this check and allows them to close-pack.
.Pp
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
.An -nosplit
Originally written by one
.An Bruce Holloway
in 1986.
Salvo mode added by
.An Chuck A. DeGaul Aq cbosgd!cad .
Visual user interface,
.Sq closepack
option, code rewrite and manual page by
.An Eric S. Raymond Aq Mt esr@snark.thyrsus.com ,
August 1989.