.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 "