1CRIBBAGE(6)                    BSD Games Manual                    CRIBBAGE(6)
2

NAME

4     cribbage — the card game cribbage
5

SYNOPSIS

7     cribbage [-eqr]
8

DESCRIPTION

10     cribbage plays the card game cribbage, with the program playing one hand
11     and the user the other.  The program will initially ask the user if the
12     rules of the game are needed – if so, it will print out the appropriate
13     section from According to Hoyle with more(1).
14
15     cribbage options include:
16
17     -e      When the player makes a mistake scoring his hand or crib, provide
18             an explanation of the correct score.  (This is especially useful
19             for beginning players.)
20
21     -q      Print a shorter form of all messages – this is only recommended
22             for users who have played the game without specifying this
23             option.
24
25     -r      Instead of asking the player to cut the deck, the program will
26             randomly cut the deck.
27
28     cribbage first asks the player whether he wishes to play a short game (
29     “once around”, to 61) or a long game ( “twice around”, to 121).  A
30     response of ‘s’ will result in a short game, any other response will play
31     a long game.
32
33     At the start of the first game, the program asks the player to cut the
34     deck to determine who gets the first crib.  The user should respond with
35     a number between 0 and 51, indicating how many cards down the deck is to
36     be cut.  The player who cuts the lower ranked card gets the first crib.
37     If more than one game is played, the loser of the previous game gets the
38     first crib in the current game.
39
40     For each hand, the program first prints the player's hand, whose crib it
41     is, and then asks the player to discard two cards into the crib.  The
42     cards are prompted for one per line, and are typed as explained below.
43
44     After discarding, the program cuts the deck (if it is the player's crib)
45     or asks the player to cut the deck (if it's its crib); in the latter
46     case, the appropriate response is a number from 0 to 39 indicating how
47     far down the remaining 40 cards are to be cut.
48
49     After cutting the deck, play starts with the non-dealer (the person who
50     doesn't have the crib) leading the first card.  Play continues, as per
51     cribbage, until all cards are exhausted.  The program keeps track of the
52     scoring of all points and the total of the cards on the table.
53
54     After play, the hands are scored.  The program requests the player to
55     score his hand (and the crib, if it is his) by printing out the appropri‐
56     ate cards (and the cut card enclosed in brackets).  Play continues until
57     one player reaches the game limit (61 or 121).
58
59     A carriage return when a numeric input is expected is equivalent to typ‐
60     ing the lowest legal value; when cutting the deck this is equivalent to
61     choosing the top card.
62
63     Cards are specified as rank followed by suit.  The ranks may be specified
64     as one of: ‘a’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘t’, ‘j’, ‘q’,
65     and ‘k’, or alternatively, one of: ‘ace’, ‘two’, ‘three’, ‘four’, ‘five’,
66     ‘six’, ‘seven’, ‘eight’, ‘nine’, ‘ten’, ‘jack’, ‘queen’, and ‘king’.
67     Suits may be specified as: ‘s’, ‘h’, ‘d’, and ‘c’, or alternatively as:
68     ‘spades’, ‘hearts’, ‘diamonds’, and ‘clubs’.  A card may be specified as:
69     “⟨rank⟩   ⟨suit⟩”, or: “⟨rank⟩ of ⟨suit⟩”.  If the single letter rank and
70     suit designations are used, the space separating the suit and rank may be
71     left out.  Also, if only one card of the desired rank is playable, typing
72     the rank is sufficient.  For example, if your hand was “2H, 4D, 5C, 6H,
73     JC, and KD” and it was desired to discard the king of diamonds, any of
74     the following could be typed: ‘k’, ‘king’, ‘kd’, ‘k d’, ‘k of d’, ‘king
75     d’, ‘king of d’, ‘k diamonds’, ‘k of diamonds’, ‘king diamonds’, ‘king of
76     diamonds’.
77

FILES

79     /usr/bin/cribbage
80     /var/games//criblog
81     /usr/share/bsd-games//cribbage.instr
82

AUTHORS

84     Earl T. Cohen wrote the logic.  Ken Arnold added the screen oriented
85     interface.
86
87BSD                              May 31, 1993                              BSD
Impressum