Commit | Line | Data |
---|---|---|
4b51bf40 C |
1 | |
2 | ||
3 | ||
4 | CRIBBAGE(6) BSD Reference Manual CRIBBAGE(6) | |
5 | ||
6 | ||
7 | N\bNA\bAM\bME\bE | |
8 | cribbage - the card game cribbage | |
9 | ||
10 | S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS | |
11 | /\b/u\bus\bsr\br/\b/g\bga\bam\bme\bes\bs/\b/c\bcr\bri\bib\bbb\bba\bag\bge\be [ -\b-r\bre\beq\bq ] _\bn_\ba_\bm_\be _\b._\b._\b. | |
12 | ||
13 | D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN | |
14 | _\bC_\br_\bi_\bb_\bb_\ba_\bg_\be plays the card game cribbage, with the program | |
15 | playing one hand and the user the other. The program will | |
16 | initially ask the user if the rules of the game are needed | |
17 | - if so, it will print out the appropriate section from | |
18 | _\bA_\bc_\bc_\bo_\br_\bd_\bi_\bn_\bg _\bt_\bo _\bH_\bo_\by_\bl_\be with _\bm_\bo_\br_\be _\b(_\bI_\b)_\b. | |
19 | ||
20 | _\bC_\br_\bi_\bb_\bb_\ba_\bg_\be options include: | |
21 | ||
22 | -\b-e\be When the player makes a mistake scoring his hand or | |
23 | crib, provide an explanation of the correct score. | |
24 | (This is especially useful for beginning players.) | |
25 | ||
26 | -\b-q\bq Print a shorter form of all messages - this is only | |
27 | recommended for users who have played the game | |
28 | without specifying this option. | |
29 | ||
30 | -\b-r\br Instead of asking the player to cut the deck, the | |
31 | program will randomly cut the deck. | |
32 | ||
33 | _\bC_\br_\bi_\bb_\bb_\ba_\bg_\be first asks the player whether he wishes to play a | |
34 | short game ("once around", to 61) or a long game ("twice | |
35 | around", to 121). A response of `s' will result in a | |
36 | short game, any other response will play a long game. | |
37 | ||
38 | At the start of the first game, the program asks the | |
39 | player to cut the deck to determine who gets the first | |
40 | crib. The user should respond with a number between 0 and | |
41 | 51, indicating how many cards down the deck is to be cut. | |
42 | The player who cuts the lower ranked card gets the first | |
43 | crib. If more than one game is played, the loser of the | |
44 | previous game gets the first crib in the current game. | |
45 | ||
46 | For each hand, the program first prints the player's hand, | |
47 | whose crib it is, and then asks the player to discard two | |
48 | cards into the crib. The cards are prompted for one per | |
49 | line, and are typed as explained below. | |
50 | ||
51 | After discarding, the program cuts the deck (if it is the | |
52 | player's crib) or asks the player to cut the deck (if it's | |
53 | its crib); in the latter case, the appropriate response is | |
54 | a number from 0 to 39 indicating how far down the remain- | |
55 | ing 40 cards are to be cut. | |
56 | ||
57 | After cutting the deck, play starts with the non-dealer | |
58 | ||
59 | ||
60 | ||
61 | 4th Berkeley Distribution May 31, 1993 1 | |
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | CRIBBAGE(6) BSD Reference Manual CRIBBAGE(6) | |
71 | ||
72 | ||
73 | (the person who doesn't have the crib) leading the first | |
74 | card. Play continues, as per cribbage, until all cards | |
75 | are exhausted. The program keeps track of the scoring of | |
76 | all points and the total of the cards on the table. | |
77 | ||
78 | After play, the hands are scored. The program requests | |
79 | the player to score his hand (and the crib, if it is his) | |
80 | by printing out the appropriate cards (and the cut card | |
81 | enclosed in brackets). Play continues until one player | |
82 | reaches the game limit (61 or 121). | |
83 | ||
84 | A carriage return when a numeric input is expected is | |
85 | equivalent to typing the lowest legal value; when cutting | |
86 | the deck this is equivalent to choosing the top card. | |
87 | ||
88 | Cards are specified as rank followed by suit. The ranks | |
89 | may be specified as one of: `a', `2', `3', `4', `5', `6', | |
90 | `7', `8', `9', `t', `j', `q', and `k', or alternatively, | |
91 | one of: "ace", "two", "three", "four", "five", "six", | |
92 | "seven", "eight", "nine", "ten", "jack", "queen", and | |
93 | "king". Suits may be specified as: `s', `h', `d', and | |
94 | `c', or alternatively as: "spades", "hearts", "diamonds", | |
95 | and "clubs". A card may be specified as: <rank> " " | |
96 | <suit>, or: <rank> " of " <suit>. If the single letter | |
97 | rank and suit designations are used, the space separating | |
98 | the suit and rank may be left out. Also, if only one card | |
99 | of the desired rank is playable, typing the rank is suffi- | |
100 | cient. For example, if your hand was "2H, 4D, 5C, 6H, JC, | |
101 | KD" and it was desired to discard the king of diamonds, | |
102 | any of the following could be typed: "k", "king", "kd", "k | |
103 | d", "k of d", "king d", "king of d", "k diamonds", "k of | |
104 | diamonds", "king diamonds", or "king of diamonds". | |
105 | ||
106 | F\bFI\bIL\bLE\bES\bS | |
107 | /usr/games/cribbage | |
108 | ||
109 | A\bAU\bUT\bTH\bHO\bOR\bRS\bS | |
110 | Earl T. Cohen wrote the logic. Ken Arnold added the | |
111 | screen oriented interface. | |
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
122 | ||
123 | ||
124 | ||
125 | ||
126 | ||
127 | 4th Berkeley Distribution May 31, 1993 2 | |
128 | ||
129 | ||
130 | ||
131 | ||
132 |