mm.6: Add a manpage. manpage manpage/manpage
authorMark Wooding <mdw@distorted.org.uk>
Sun, 12 Mar 2006 16:36:15 +0000 (16:36 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 12 Mar 2006 18:22:29 +0000 (18:22 +0000)
Makefile.am
mm.6 [new file with mode: 0644]

index c6df28a..2f61c6c 100644 (file)
@@ -29,6 +29,8 @@ AUTOMAKE_OPTIONS = foreign
 
 bin_PROGRAMS = mm
 
+man_MANS = mm.6
+
 mm_SOURCES = mm.c
 
 ##----- That's all, folks ---------------------------------------------------
diff --git a/mm.6 b/mm.6
new file mode 100644 (file)
index 0000000..a806fd5
--- /dev/null
+++ b/mm.6
@@ -0,0 +1,32 @@
+.TH mm 6 "Mark Wooding"
+.SH NAME
+mm \- simple Mastermind game
+.SH SYNOPSIS
+.B mm
+.RB [ \-CHS ]
+.RI [ holes " " colours ]
+.RI [ code ...]
+.SH DESCRIPTION
+The
+.B mm
+program plays the game of Mastermind.
+.SS "About the game"
+In the original game, there are a collection of coloured code pegs, and
+a board.  The board has a number of rows of holes.  There are two
+players.  One player \(en the code setter \(en chooses a `code' \(en a
+sequence of coloured pegs \(en and enters it at his end of the board,
+concealed by a small screen from the other player.  The other player
+\(en the code guesser \(en attempts to guess the code.
+.PP
+In each turn, the guesser makes a guess by filling in a row of holes
+with coloured pegs.  The setter then
+.I scores
+the guess.  He awards a black scoring peg for each peg in the guess
+which matches the corresponding peg in the code, i.e., the right colour
+in the right place.  He awards a white scoring peg for each guess peg
+which matches a code peg in colour but not in position, i.e., the right
+colour in the wrong place.  Each guess peg can be scored at most once.
+.PP
+The game ends either if the guesser guesses the code correctly, or if he
+runs out of guessing rows on the board.
+.SS "
\ No newline at end of file