HomeSort by: relevance | last modified time | path
    Searched refs:hand (Results 1 - 25 of 143) sorted by relevancy

1 2 3 4 5 6

  /src/games/canfield/canfield/
betinfo.h 36 long hand; /* cost of dealing hand */ member in struct:betinfo
37 long inspection; /* cost of inspecting hand */
  /src/games/fish/
fish.c 153 (void)printf("\nYour hand is:");
164 (void)printf("%d cards in my hand, %d in the pool.\n",
269 drawcard(int player, int *hand)
273 ++hand[card = deck[--curcard]];
274 if (player == USER || hand[card] == CARDS) {
277 if (hand[card] == CARDS) {
280 chkwinner(player, hand);
288 gofish(int askedfor, int player, int *hand)
292 if (askedfor == drawcard(player, hand)) {
303 goodmove(int player, int move, int *hand, int *opphand
    [all...]
  /src/games/mille/
move.c 73 if (pp->hand[i] != -1)
88 if (pp->hand[Card_no] == C_INIT)
94 if (is_safety(pp->hand[Card_no])) {
99 Discard = pp->hand[Card_no];
100 pp->hand[Card_no] = C_INIT;
119 pp->hand[0] = *--Topcard;
130 if (pp->hand[1] == C_INIT && Topcard > Deck) {
132 pp->hand[1] = *--Topcard;
149 * computer's hand was sorted, the randomness for picking
153 sort(pp->hand);
    [all...]
comp.c 76 card = pp->hand[i];
117 /* No Coup Forre. Draw to fill hand, then restart, as needed. */
118 if (pp->hand[0] == C_INIT && Topcard > Deck) {
131 if (is_safety(pp->hand[i])) {
144 oppos = opposite(pp->hand[i]);
146 !(pp->hand[i] == C_RIGHT_WAY &&
182 card = pp->hand[i];
378 C_name[pp->hand[i]]);
391 if (is_safety(pp->hand[nummin])) { /* NEVER discard a safety */
399 mvprintw(MOVE_Y + 2, MOVE_X, "%16s", C_name[pp->hand[Card_no]])
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/
thread-unwindonsignal.exp 16 # Test use of unwind-on-signal when a hand function call that gets interrupted
21 standard_testfile interrupted-hand-call.c
63 "hand-call interrupted by signal in another thread"
72 # not the thread with the hand-called function.
84 # Continuing now should exit the hand-call and pop the dummy frame.
86 gdb_test "continue" ".*" "finish hand-call"
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
thread-unwindonsignal.exp 16 # Test use of unwind-on-signal when a hand function call that gets interrupted
21 standard_testfile interrupted-hand-call.c
63 "hand-call interrupted by signal in another thread"
72 # not the thread with the hand-called function.
84 # Continuing now should exit the hand-call and pop the dummy frame.
86 gdb_test "continue" ".*" "finish hand-call"
  /src/games/cribbage/
score.c 107 * Score the given hand of n cards and the starter card.
111 scorehand(const CARD hand[], CARD starter, int n, BOOLEAN crb,
123 k = hand[0].suit;
125 flag = (flag && (hand[i].suit == k));
126 if (hand[i].rank == JACK) /* check for his nibs */
127 if (hand[i].suit == starter.suit) {
132 h[i] = hand[i];
181 * Return number of fifteens in hand of n cards
184 fifteens(const CARD hand[], int n)
198 for (endp = &hand[n]; hand < endp; hand++)
    [all...]
support.c 131 * Evaluate and score a player hand or crib
134 plyrhand(const CARD hand[], const char *s)
140 prhand(hand, CINHAND, Playwin, FALSE);
142 i = scorehand(hand, turnover, CINHAND, strcmp(s, "crib") == 0, explain);
165 * Handle scoring and displaying the computers hand
292 * returns true if some card in hand can be played without exceeding 31
295 anymove(const CARD hand[], int n, int sum)
301 j = hand[0].rank;
303 if (hand[i].rank < j)
304 j = hand[i].rank
    [all...]
io.c 154 * Print a hand of n cards
169 * reads a card, supposedly in hand, accepting unambigous brief
173 infrom(const CARD hand[], int n, const char *prompt)
185 if (!is_one(crd, hand, n))
186 msg("That's not in your hand");
189 if (hand[i].rank == crd.rank &&
190 hand[i].suit == crd.suit)
201 if (hand[i].rank == crd.rank)
204 msg("No such rank in your hand");
207 if (hand[j].rank == crd.rank
    [all...]
  /src/usr.bin/make/unit-tests/
cond-token-var.mk 28 # A variable that appears on the left-hand side must be defined.
34 # A variable that appears on the right-hand side must be defined.
62 # A variable on the left-hand side must be defined.
67 # A variable on the right-hand side must be defined.
104 # The left-hand side of a comparison must not be an unquoted word.
109 # The left-hand side of a comparison must not be an unquoted word.
114 # The left-hand side of a comparison must not be an unquoted word.
139 # The left-hand side of a comparison must not be an undefined expression with
148 # The right-hand side of a comparison must not be an undefined expression with
parse-var.mk 53 # in a condition, left-hand side, unquoted
54 # in a condition, left-hand side, quoted
55 # in a condition, right-hand side, unquoted
56 # in a condition, right-hand side, quoted
57 # left-hand side of a variable assignment
58 # right-hand side of a ':=' variable assignment
59 # right-hand side of a '!=' variable assignment
79 # In variable assignments, there may be spaces in the middle of the left-hand
dotwait.mk 43 # recursive: all children of the left hand side of the .WAIT
44 # must be made before any child of the right hand side.
51 # the right hand side of the .WAIT.
cond-op-and.mk 22 # The right-hand side is not evaluated since the left-hand side is already
cond-op-or.mk 22 # The right-hand side is not evaluated since the left-hand side is already
cond-short.mk 3 # Demonstrates that in conditions, the right-hand side of an && or ||
9 # Before 2020-06-28, the right-hand side of an && or || operator was always
151 # The left-hand side of the '&&' evaluated to false, which should have made
152 # the right-hand side irrelevant.
154 # On the right-hand side of the '&&', the expression ${INDIR_UNDEF} was
156 # undefined. The right hand side "${INDIR_UNDEF}" still needed to be parsed,
159 # right hand side of the '&&' should have been irrelevant, the two sides of
184 # recursive'. The condition '0' evaluated to false, which made the right-hand
227 # Due to the quotes around the left-hand side of the '<', the operand is
237 # The right-hand side of '||' is irrelevant and thus not evaluated
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/
initthread.c 356 THREAD_EVENT_HANDLER *hand; local
395 hand = OPENSSL_malloc(sizeof(*hand));
396 if (hand == NULL)
399 hand->handfn = handfn;
400 hand->arg = arg;
402 hand->index = index;
404 hand->next = *hands;
405 *hands = hand;
  /src/crypto/external/apache2/openssl/dist/crypto/
initthread.c 389 THREAD_EVENT_HANDLER *hand; local
426 hand = OPENSSL_malloc(sizeof(*hand));
427 if (hand == NULL)
430 hand->handfn = handfn;
431 hand->arg = arg;
433 hand->index = index;
435 hand->next = *hands;
436 *hands = hand;
  /src/sys/dev/ieee1394/
fwmem.c 322 void (*hand)(struct fw_xfer *))
327 xfer = fwmem_xfer_req(fwdev, (void *)sc, spd, 0, 4, hand);
353 void (*hand)(struct fw_xfer *))
358 xfer = fwmem_xfer_req(fwdev, sc, spd, 0, 0, hand);
384 void (*hand)(struct fw_xfer *))
389 xfer = fwmem_xfer_req(fwdev, sc, spd, 0, roundup2(len, 4), hand);
416 void (*hand)(struct fw_xfer *))
421 xfer = fwmem_xfer_req(fwdev, sc, spd, len, 0, hand);
448 void *hand)
462 xfer->hand = hand
    [all...]
  /src/games/canfield/cfscores/
cfscores.c 123 if (i == 0 || total.hand == 0) {
135 printf("| Hands %8ld |\n", total.hand);
  /src/external/gpl3/gcc/dist/libgcc/config/avr/libf7/
f7renames.sh 19 Auto-generated file, do not change by hand.
  /src/external/gpl3/gcc.old/dist/libgcc/config/avr/libf7/
f7renames.sh 19 Auto-generated file, do not change by hand.
  /src/sys/dev/mvme/
vme_two_isr.c 240 vmetwo_local_intr_establish(int pri, int vec, int (*hand)(void *), void *arg, struct evcnt *evcnt)
243 vmetwo_intr_establish(vmetwo_sc, pri, pri, vec, 1, hand, arg, evcnt);
248 vmetwo_intr_establish(void *csc, int prior, int lvl, int vec, int first, int (*hand)(void *), void *arg, struct evcnt *evcnt)
269 vme_two_handlers[vec - VME2_VECTOR_LOCAL_MIN].isr_hand = hand;
271 hand = vmetwo_local_isr_trampoline;
290 (*sc->sc_isrlink)(sc->sc_isrcookie, hand, arg, prior, vec, evcnt);
pcctwo.c 133 int (*hand)(void *),
159 (*sys_pcctwo->sc_isrlink)(sys_pcctwo->sc_isrcookie, hand, arg,
  /src/sys/arch/news68k/dev/
hb.c 123 hb_intr_establish(int hbvect, int (*hand)(void *), int ipl, void *arg)
136 isrlink_vectored(hand, arg, ipl, hbvect);
  /src/external/bsd/mdocml/dist/
mansearch.c 323 struct ohash *hand, *h1, *h2; local
329 hand = manmerge(e, NULL);
336 if (ohash_entries(h2) < ohash_entries(hand)) {
338 h2 = hand;
340 h1 = hand;
341 hand = mandoc_malloc(sizeof(*hand));
342 mandoc_ohash_init(hand, 4, offsetof(struct dbm_res, page));
353 ohash_insert(hand, ohash_lookup_memory(hand,
    [all...]

Completed in 28 milliseconds

1 2 3 4 5 6