OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CARDS
(Results
1 - 7
of
7
) sorted by relevancy
/src/games/cribbage/
extern.c
58
int knownum = 0; /* number of
cards
we know */
64
CARD deck[
CARDS
]; /* a deck */
65
CARD known[
CARDS
]; /*
cards
we have seen */
deck.h
35
* define structure of a deck of
cards
and other related things
39
#define
CARDS
52 /* number
cards
in deck */
43
#define CINHAND 4 /* #
cards
in cribbage hand */
44
#define FULLHAND 6 /* #
cards
in dealt hand */
cribbage.h
34
extern CARD deck[
CARDS
]; /* a deck */
40
extern CARD known[
CARDS
]; /*
cards
we have seen */
41
extern int knownum; /* # of
cards
we know */
cards.c
1
/* $NetBSD:
cards
.c,v 1.9 2009/08/12 05:48:04 dholland Exp $ */
35
static char sccsid[] = "@(#)
cards
.c 8.1 (Berkeley) 5/31/93";
37
__RCSID("$NetBSD:
cards
.c,v 1.9 2009/08/12 05:48:04 dholland Exp $");
51
* Initialize a deck of
cards
to contain one of each type.
70
* Given a deck of
cards
, shuffle it -- i.e. randomize it
79
for (j =
CARDS
; j > 0; --j) {
88
* return true if the two
cards
are equal...
97
* is_one returns TRUE if a is in the set of
cards
b
111
* remove the card a from the deck d of n
cards
127
* Sort a hand of n
cards
[
all
...]
crib.c
241
i = (rand() >> 4) %
CARDS
; /* random cut */
243
j = (rand() >> 4) %
CARDS
;
346
* deal
cards
to both players from deck
409
"How many
cards
down do you wish to cut the deck? ");
412
i = (rand() >> 4) % (
CARDS
- pos);
422
i = (rand() >> 4) % (
CARDS
- pos) + pos;
487
Tcnt = 0; /* index to table of
cards
played */
488
sum = 0; /* sum of
cards
played */
support.c
240
* the crib and puts the best two
cards
at the end
245
CARD d[
CARDS
], h[FULLHAND], cb[2];
253
nc =
CARDS
;
254
for (i = 0; i < knownum; i++) { /* get all other
cards
*/
326
* return the number of
cards
in h having the given rank value
342
* makeknown remembers all n
cards
in h for future recall
/src/games/fish/
fish.c
62
#define
CARDS
4
63
#define TOTCARDS RANKS *
CARDS
69
static const char *const
cards
[] = {
variable
73
#define PRC(card) (void)printf(" %s",
cards
[card])
164
(void)printf("%d
cards
in my hand, %d in the pool.\n",
183
for (p =
cards
; *p; ++p)
190
n = p -
cards
;
203
(void)printf("You don't have any %s's!\n",
cards
[n]);
221
} while (!comphand[lmove] || comphand[lmove] ==
CARDS
);
225
(void)printf("I ask you for: %s.\n",
cards
[lmove])
[
all
...]
Completed in 19 milliseconds
Indexes created Sat Feb 21 16:20:20 UTC 2026