aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-09-08 14:28:55 +0000
committerrodri <rgl@antares-labs.eu>2023-09-08 14:28:55 +0000
commit3acb69a3da5b93c13d6e22f11553b382a49fbe5b (patch)
treeeb6b2bdad28dafcd30f9eee911cdbf27544d5445
parentebbadfc6e6a5041bc4dd15d8c8db327b13997b41 (diff)
downloadbattleship-3acb69a3da5b93c13d6e22f11553b382a49fbe5b.tar.gz
battleship-3acb69a3da5b93c13d6e22f11553b382a49fbe5b.tar.bz2
battleship-3acb69a3da5b93c13d6e22f11553b382a49fbe5b.zip
wrote a manual.
-rw-r--r--bts.man62
-rw-r--r--mkfile10
2 files changed, 68 insertions, 4 deletions
diff --git a/bts.man b/bts.man
new file mode 100644
index 0000000..39f8cd4
--- /dev/null
+++ b/bts.man
@@ -0,0 +1,62 @@
+.TH battleship 1
+.SH NAME
+bts, btsd \- multi-user on-line battleship (sink the fleet)
+.SH SYNOPSIS
+.B games/bts
+[
+.B -d
+]
+.I dialstring
+.br
+.B games/btsd
+[
+.B -d
+]
+[
+.B -a
+.I addr
+]
+.SH DESCRIPTION
+.I bts
+and
+.I btsd
+are the client and server for a multi-user, on-line version of
+.IR Battleship ,
+the strategy and guessing board game. It's based on Milton Bradley's
+1990 release, but without the player having to disclose the kind of
+ship the opponent hits.
+.PP
+The
+.I -d
+flag enables debugging for both programs. You can change the server's
+announce address with
+.IR -a ,
+which by default is tcp!*!3047.
+.SH PLAYING
+First each player lays their fleet on their
+.I local
+board.
+.PP
+Then the battle will begin, and each player has a turn to try and
+figure out their opponent's fleet layout, by taking a shot at any
+coordinate in the
+.I target
+board.
+.PP
+There's no timeout, so players can take as long as they want to fire a
+shot. Use this to deploy your PSYOP skills.
+.PP
+The first player to find and sink the enemy fleet wins. If you quit
+or disconnect, you lose.
+.SH SOURCE
+.B /sys/src/games/battleship
+.SH SEE ALSO
+.IR games (1)
+.br
+battleship.pdf,
+.I
+Milton Bradley Company, 1990.
+.SH BUGS
+What are bugs? turns out it's a complicated question.
+.SH HISTORY
+Battleship first appeared in 9front on September, 2023.
diff --git a/mkfile b/mkfile
index ca7218d..850ec44 100644
--- a/mkfile
+++ b/mkfile
@@ -16,10 +16,12 @@ HFILES=\
</sys/src/cmd/mkmany
-install:V: man
+ohman:V:
+ cp bts.man $MAN/battleship
+
+install:V: ohman
uninstall:V:
- for(i in $TARG){
+ for(i in $TARG)
rm -f $BIN/$i
- rm -f $MAN/$i
- }
+ rm -f $MAN/battleship