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