BSD 4_1_snap release
[unix-history] / usr / man / man6 / cribbage.6
CommitLineData
e3758c96
C
1.TH CRIBBAGE 6
2.UC 4
3.SH NAME
4cribbage \- the card game cribbage
5.SH SYNOPSIS
6.B /usr/games/cribbage
7[
8-[r][e][q]
9] name ...
10.SH DESCRIPTION
11.I Cribbage
12plays the card game cribbage, with the program playing one hand
13and the user the other. The program will initially ask the user if
14the rules of the game are needed -- if so, it will print out
15the appropriate section from
16.I According to Hoyle
17with
18.I more (I).
19.PP
20.I Cribbage
21options include:
22.TP
23.B \-e
24When the player makes a mistakes scoring his hand or crib, provide an
25explanation of the correct score. (This is especially useful for
26beginning players.)
27.TP
28.B \-q
29Print a shorter form of all messages -- this is only recommended for
30users who have played the game without specifying this option.
31.TP
32.B \-r
33Instead of asking the player to cut the deck, the program will randomly
34cut the deck.
35.PP
36.I Cribbage
37first asks the player whether he wishes to play a short game
38(\*(lqonce around\*(rq, to 61) or a long game (\*(lqtwice around\*(rq, to 121). A
39response of `s' will result in a short game, any other response will
40play a long game.
41.PP
42At the start of the first game, the program
43asks the player to cut the deck to determine who gets the
44first crib. The user should respond with a number between 0 and
4551, indicating how many cards down the deck is to be cut. The player
46who cuts the lower ranked card gets the first crib.
47If more than one game is played, the
48loser of the previous game gets the first crib in the current game.
49.PP
50For each hand, the program first prints the player's hand,
51whose crib it is, and then asks the player
52to discard two cards into the crib. The cards are prompted for
53one per line, and are typed as explained below.
54.PP
55After discarding, the program cuts the deck (if it is the player's
56crib) or asks the player to cut the deck (if it's its crib); in the later
57case, the appropriate response is a number from 0 to 39 indicating
58how far down the remaining 40 cards are to be cut.
59.PP
60After cutting the deck, play starts with the non-dealer (the person
61who doesn't have the crib) leading the first card.
62Play continues, as per cribbage, until all cards are exhausted. The
63program keeps track of the scoring of all points and the total of
64the cards on the table.
65.PP
66After play, the hands are scored. The program requests the player to
67score his hand (and the crib, if it is his) by printing out the
68appropriate cards (and the cut card enclosed in brackets).
69Play continues until one player reaches the game limit (61 or 121).
70.PP
71A carriage return when a numeric input is expected is equivalent
72to typing the lowest legal value; when cutting the deck this
73is equivalent to choosing the top card.
74.PP
75Cards are specified as rank followed by suit. The ranks may be specified
76as one of:
77`a', `2', `3', `4', `5', `6', `7', `8', `9', `t', `j', `q', and `k',
78or alternatively, one of: \*(lqace\*(rq, \*(lqtwo\*(rq, \*(lqthree\*(rq, \*(lqfour\*(rq, \*(lqfive\*(rq, \*(lqsix\*(rq,
79\*(lqseven\*(rq, \*(lqeight\*(rq, \*(lqnine\*(rq, \*(lqten\*(rq, \*(lqjack\*(rq, \*(lqqueen\*(rq, and \*(lqking\*(rq.
80Suits may be specified as: `s', `h', `d', and `c', or alternatively as:
81\*(lqspades\*(rq, \*(lqhearts\*(rq, \*(lqdiamonds\*(rq, and \*(lqclubs\*(rq.
82A card may be specified as: <rank> \*(lq \*(rq <suit>, or: <rank> \*(lq of \*(rq <suit>.
83If the single letter rank and suit designations are used, the space
84separating the suit and rank may be left out. Also, if only one card
85of the desired rank is playable, typing the rank is sufficient.
86For example, if your hand was \*(lq2H, 4D, 5C, 6H, JC, KD\*(rq and it was
87desired to discard the king of diamonds, any of the following could be typed:
88\*(lqk\*(rq, \*(lqking\*(rq, \*(lqkd\*(rq, \*(lqk d\*(rq, \*(lqk of d\*(rq, \*(lqking d\*(rq, \*(lqking of d\*(rq, \*(lqk diamonds\*(rq,
89\*(lqk of diamonds\*(rq, \*(lqking diamonds\*(rq, or \*(lqking of diamonds\*(rq.
90.SH FILES
91.ta 2i
92/usr/games/cribbage
93.SH AUTHOR
94Earl T. Cohen
95.SH BUGS