Debian Codegraph @

upstream/debian-unstable/man6/cribbage.6

raw
1 .\" Automatically generated from cribbage/cribbage.6.in. Do not edit.
2 .\" $NetBSD: cribbage.6,v 1.11 2003/08/07 09:37:09 agc Exp $
3 .\"
4 .\" Copyright (c) 1980, 1993
5 .\" The Regents of the University of California. All rights reserved.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\" @(#)cribbage.6 8.1 (Berkeley) 5/31/93
32 .\"
33 .Dd May 31, 1993
34 .Dt CRIBBAGE 6
35 .Os
36 .Sh NAME
37 .Nm cribbage
38 .Nd the card game cribbage
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl eqr
42 .Sh DESCRIPTION
43 .Nm
44 plays the card game cribbage, with the program playing one hand
45 and the user the other.
46 The program will initially ask the user if the rules of the game are
47 needed \(en if so, it will print out the appropriate section from
48 .Em According to Hoyle
49 with
50 .Xr more 1 .
51 .Pp
52 .Nm
53 options include:
54 .Bl -tag -width indent
55 .It Fl e
56 When the player makes a mistake scoring his hand or crib, provide an
57 explanation of the correct score.
58 (This is especially useful for beginning players.)
59 .It Fl q
60 Print a shorter form of all messages \(en this is only recommended for
61 users who have played the game without specifying this option.
62 .It Fl r
63 Instead of asking the player to cut the deck, the program will randomly
64 cut the deck.
65 .El
66 .Pp
67 .Nm
68 first asks the player whether he wishes to play a short game (
69 .Dq once around ,
70 to 61) or a long game (
71 .Dq twice around ,
72 to 121).
73 A response of
74 .Sq Ic s
75 will result in a short game, any other response will play a long game.
76 .Pp
77 At the start of the first game, the program
78 asks the player to cut the deck to determine who gets the first crib.
79 The user should respond with a number between 0 and
80 51, indicating how many cards down the deck is to be cut.
81 The player who cuts the lower ranked card gets the first crib.
82 If more than one game is played, the
83 loser of the previous game gets the first crib in the current game.
84 .Pp
85 For each hand, the program first prints the player's hand,
86 whose crib it is, and then asks the player
87 to discard two cards into the crib.
88 The cards are prompted for one per line, and are typed as explained below.
89 .Pp
90 After discarding, the program cuts the deck (if it is the player's
91 crib) or asks the player to cut the deck (if it's its crib); in the latter
92 case, the appropriate response is a number from 0 to 39 indicating
93 how far down the remaining 40 cards are to be cut.
94 .Pp
95 After cutting the deck, play starts with the non-dealer (the person
96 who doesn't have the crib) leading the first card.
97 Play continues, as per cribbage, until all cards are exhausted.
98 The program keeps track of the scoring of all points and the total of
99 the cards on the table.
100 .Pp
101 After play, the hands are scored.
102 The program requests the player to
103 score his hand (and the crib, if it is his) by printing out the
104 appropriate cards (and the cut card enclosed in brackets).
105 Play continues until one player reaches the game limit (61 or 121).
106 .Pp
107 A carriage return when a numeric input is expected is equivalent
108 to typing the lowest legal value; when cutting the deck this
109 is equivalent to choosing the top card.
110 .Pp
111 Cards are specified as rank followed by suit.
112 The ranks may be specified
113 as one of:
114 .Sq a ,
115 .Sq 2 ,
116 .Sq 3 ,
117 .Sq 4 ,
118 .Sq 5 ,
119 .Sq 6 ,
120 .Sq 7 ,
121 .Sq 8 ,
122 .Sq 9 ,
123 .Sq t ,
124 .Sq j ,
125 .Sq q ,
126 and
127 .Sq k ,
128 or alternatively, one of:
129 .Sq ace ,
130 .Sq two ,
131 .Sq three ,
132 .Sq four ,
133 .Sq five ,
134 .Sq six ,
135 .Sq seven ,
136 .Sq eight ,
137 .Sq nine ,
138 .Sq ten ,
139 .Sq jack ,
140 .Sq queen ,
141 and
142 .Sq king .
143 Suits may be specified as:
144 .Sq s ,
145 .Sq h ,
146 .Sq d ,
147 and
148 .Sq c ,
149 or alternatively as:
150 .Sq spades ,
151 .Sq hearts ,
152 .Sq diamonds ,
153 and
154 .Sq clubs .
155 A card may be specified as:
156 .Dq Ao rank Ac \ Aq suit ,
157 or:
158 .Dq Ao rank Ac of Aq suit .
159 If the single letter rank and suit designations are used, the space
160 separating the suit and rank may be left out.
161 Also, if only one card
162 of the desired rank is playable, typing the rank is sufficient.
163 For example, if your hand was
164 .Dq 2H, 4D, 5C, 6H, JC, and KD
165 and it was desired to discard the king of diamonds, any of
166 the following could be typed:
167 .Sq k ,
168 .Sq king ,
169 .Sq kd ,
170 .Sq k d ,
171 .Sq k of d ,
172 .Sq king d ,
173 .Sq king of d ,
174 .Sq k diamonds ,
175 .Sq k of diamonds ,
176 .Sq king diamonds ,
177 .Sq king of diamonds .
178 .Sh FILES
179 .Bl -tag -width /usr/share/games/bsdgames/cribbage.instr -compact
180 .It Pa /usr/games/cribbage
181 .It Pa /var/games/bsdgames/criblog
182 .It Pa /usr/share/games/bsdgames/cribbage.instr
183 .El
184 .Sh AUTHORS
185 Earl T. Cohen wrote the logic.
186 Ken Arnold added the screen oriented interface.