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

1 2 3 4

  /src/games/canfield/canfield/
betinfo.h 36 long hand; /* cost of dealing hand */ member in struct:betinfo
37 long inspection; /* cost of inspecting hand */
canfield.c 156 static struct cardtype *talon, *hand, *stock, *basecard; variable in typeref:struct:cardtype **
301 printw("|ht = hand to talon |");
322 printw("|Costs Hand Game Total |");
708 hand = deck[18];
734 this.hand = costofhand;
735 game.hand += costofhand;
736 total.hand += costofhand;
879 printw("Hand is now empty ");
890 printw("Talon is now the new hand");
895 transit(&talon, &hand);
    [all...]
  /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/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.
varparse-mod.mk 15 # empty left-hand side, thereby appending the string " "value"" to each word
33 # On the other hand, these modifiers ensure that they are followed by a
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...]
cond-token-string.mk 27 # The 'x' produces a "Malformed conditional" since the left-hand side of a
98 # In the conditions in .if directives, the left-hand side of a comparison must
99 # be enclosed in quotes. The right-hand side does not need to be enclosed in
depsrc-use.mk 11 # regarded as a candidate for the main target. On the other hand, a .USE
directive-for-if.mk 29 # Since bare words were not allowed at the left-hand side of a condition,
39 # Since cond.c 1.68 from 2015-05-05, bare words are allowed on the left-hand
66 # 2008.11.30.22.37.55 does not complain about the left-hand side ${var}.
80 # ordinary variables, referring to an undefined variable on the left-hand side
cond-cmp-string.mk 11 # The right-hand side of the comparison may be written without quotes.
16 # The left-hand side of the comparison must be enclosed in quotes.
23 # An expression that occurs on the left-hand side of the comparison must be
110 # comparison is performed. The ".0" in the left-hand side makes the two
  /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/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/sys/arch/mvme68k/dev/
pcc.c 248 pccintr_establish(int pccvec, int (*hand)(void *), int lvl, void *arg,
263 isrlink_vectored(hand, arg, lvl, pccvec + PCC_VECBASE, evcnt);

Completed in 22 milliseconds

1 2 3 4