1CRIBBAGE(6)                      Games Manual                      CRIBBAGE(6)
2
3
4

NAME

6       cribbage - the card game cribbage
7

SYNOPSIS

9       /usr/games/cribbage [ -req ] name ...
10

DESCRIPTION

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

FILES

82       /usr/games/cribbage
83

AUTHORS

85       Earl T. Cohen wrote the logic.  Ken Arnold added  the  screen  oriented
86       interface.
87
88
89
904th Berkeley Distribution         May 6, 1986                      CRIBBAGE(6)
Impressum