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