/src/games/cribbage/ |
cribbage.h | 34 extern CARD deck[ CARDS ]; /* a deck */ 35 extern CARD phand[ FULLHAND ]; /* player's hand */ 36 extern CARD chand[ FULLHAND ]; /* computer's hand */ 37 extern CARD crib[ CINHAND ]; /* the crib */ 38 extern CARD turnover; /* the starter */ 40 extern CARD known[ CARDS ]; /* cards we have seen */ 61 int adjust(const CARD [], CARD); 62 int anymove(const CARD [], int, int); 64 int cchose(const CARD [], int, int) [all...] |
extern.c | 62 CARD chand[FULLHAND]; /* computer's hand */ 63 CARD crib[CINHAND]; /* the crib */ 64 CARD deck[CARDS]; /* a deck */ 65 CARD known[CARDS]; /* cards we have seen */ 66 CARD phand[FULLHAND]; /* player's hand */ 67 CARD turnover; /* the starter */
|
cards.c | 54 makedeck(CARD d[]) 74 shuffle(CARD d[]) 77 CARD c; 91 eq(CARD a, CARD b) 100 is_one(CARD a, const CARD b[], int n) 111 * remove the card a from the deck d of n cards 114 cremove(CARD a, CARD d[], int n [all...] |
deck.h | 80 } CARD;
|
score.c | 49 static int fifteens(const CARD [], int); 50 static int pairuns(const CARD [], int); 107 * Score the given hand of n cards and the starter card. 111 scorehand(const CARD hand[], CARD starter, int n, BOOLEAN crb, 117 CARD h[(CINHAND + 1)]; 184 fifteens(const CARD hand[], int n) 188 const CARD *endp; 219 * pairuns returns the number of points in the n card sorted hand 225 pairuns(const CARD h[], int n [all...] |
support.c | 54 static int anysumto(const CARD[], int, int, int); 56 static int numofval(const CARD[], int, int); 60 * only called if no playable card will score points 63 cchose(const CARD h[], int n, int s) 134 plyrhand(const CARD hand[], const char *s) 168 comphand(const CARD h[], const char *s) 245 CARD d[CARDS], h[FULLHAND], cb[2]; 292 * returns true if some card in hand can be played without exceeding 31 295 anymove(const CARD hand[], int n, int sum) 310 * anysumto returns the index (0 <= i < n) of the card in hand that bring [all...] |
io.c | 61 static int msgcrd(CARD, BOOLEAN, const char *, BOOLEAN); 62 static void printcard(WINDOW *, unsigned, CARD, BOOLEAN); 63 static int incard(CARD *); 89 msgcard(CARD c, BOOLEAN brief) 99 * Print the value of a card in ascii 102 msgcrd(CARD c, BOOLEAN brfrank, const char *mid, BOOLEAN brfsuit) 121 * Print out a card. 124 printcard(WINDOW *win, unsigned cardno, CARD c, BOOLEAN blank) 131 * Print out a card on the window at the specified location 134 prcard(WINDOW *win, int y, int x, CARD c, BOOLEAN blank [all...] |
crib.c | 221 * player what card to turn. We do a random one, anyway. 238 "Cut to see whose crib it is -- low card wins? "); 374 CARD crd; 377 prompt = (quiet ? "Discard --> " : "Discard a card --> "); 397 * player what card to turn. We do a random one, anyway. 439 * Print out the turnover card with crib indicator 468 static CARD Table[14]; 474 static CARD ch[CINHAND], ph[CINHAND]; 479 CARD crd; 497 if (!anymove(ch, cnum, sum)) { /* if no card to play * [all...] |
/src/games/mille/ |
types.c | 48 is_repair(CARD card) 51 return card == C_GAS || card == C_SPARE || 52 card == C_REPAIRS || card == C_INIT; 56 safety(CARD card) 58 switch (card) {
|
mille.h | 55 #define CARD short 118 #define S_GAS_SAFE 0 /* Gas safety card index */ 119 #define S_SPARE_SAFE 1 /* Tire safety card index */ 120 #define S_DRIVE_SAFE 2 /* Driveing safety card index */ 121 #define S_RIGHT_WAY 3 /* Right-of-Way card index */ 125 * card numbers 177 CARD hand[HAND_SZ]; 178 CARD sh_hand[HAND_SZ]; 179 CARD battle; 180 CARD sh_battle [all...] |
extern.c | 56 static const char *const _cn[NUM_CARDS] = {/* Card name buffer */ 78 const char *const *C_name = &_cn[1]; /* Card names */ 80 int Card_no, /* Card number for current move */ 136 CARD Discard, /* Top of discard pile */ 137 Sh_discard, /* Last discard card shown */ 138 *Topcard; /* Pointer to next card to be picked */ 139 const CARD Opposite[NUM_CARDS] = { /* Opposites of each card */ 144 CARD Deck[DECK_SZ] = { /* Current deck */
|
print.c | 50 static void show_card(int, int, CARD, CARD *); 106 * Show the given card if it is different from the last one shown 109 show_card(int y, int x, CARD c, CARD *lc)
|
move.c | 92 error("no card there"); 148 * move blank card to top by one of two methods. If the 178 CARD card; local in function:check_go 185 card = pp->hand[i]; 186 if (is_safety(card) || canplay(pp, op, card)) { 189 fprintf(outf, "CHECK_GO: can play %s (%d), ", C_name[card], card); 190 fprintf(outf, "is_safety(card) = %d, ", is_safety(card)) 210 CARD card; local in function:playcard 495 int card; local in function:haspicked [all...] |
comp.c | 52 CARD card; local in function:calcmove 59 CARD safe, oppos; 76 card = pp->hand[i]; 77 switch (card) { 80 if ((playit[i] = canplay(pp, op, card)) != 0) 84 if ((playit[i] = canplay(pp, op, card)) 91 if ((playit[i] = canplay(pp, op, card)) 92 && pp->mileage + Value[card] == End) 96 playit[i] = canplay(pp, op, card); 408 CARD bat, spd, card; local in function:onecard [all...] |
init.c | 52 CARD card; local in function:init 67 account(card = *Topcard); 68 if (is_safety(card)) 69 pp->safety[card - S_CONV] = S_IN_HAND; 95 CARD temp; 100 warnx("shuffle: card no. error: %d", r);
|
misc.c | 73 CARD
|
/src/sys/arch/hpc/conf/ |
platid.def | 398 CARD "CARD+"
|
/src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/amlogic/ |
meson-gxl-s805x-libretech-ac.dts | 120 compatible = "amlogic,gx-sound-card"; 251 /* Bank CARD */
|
meson-gxl-s905x-khadas-vim.dts | 68 compatible = "amlogic,gx-sound-card"; 186 /* Bank CARD */
|
meson-gxbb-nanopi-k2.dts | 136 compatible = "amlogic,gx-sound-card"; 262 /* Bank CARD */
|
meson-gxbb-odroidc2.dts | 178 compatible = "amlogic,gx-sound-card"; 318 /* Bank CARD */
|
meson-gxl-s905x-libretech-cc.dts | 103 vcc_card: regulator-vcc-card { 127 /* This is provided by LDOs on the eMMC daugther card */ 137 compatible = "amlogic,gx-sound-card"; 273 /* Bank CARD */ 302 /* SD card */
|
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
meson8b-ec100.dts | 100 compatible = "amlogic,gx-sound-card"; 372 /* SD card */ 420 /* Bank CARD */
|
meson8b-odroidc1.dts | 257 /* Bank CARD */ 340 /* SD card */
|