Home
last modified time | relevance | path

Searched refs:hand (Results 1 – 25 of 830) sorted by relevance

12345678910>>...34

/netbsd-src/games/fish/
H A Dfish.c153 (void)printf("\nYour hand is:"); in usermove()
164 (void)printf("%d cards in my hand, %d in the pool.\n", in usermove()
269 drawcard(int player, int *hand) in drawcard() argument
273 ++hand[card = deck[--curcard]]; in drawcard()
274 if (player == USER || hand[card] == CARDS) { in drawcard()
277 if (hand[card] == CARDS) { in drawcard()
280 chkwinner(player, hand); in drawcard()
288 gofish(int askedfor, int player, int *hand) in gofish() argument
292 if (askedfor == drawcard(player, hand)) { in gofish()
303 goodmove(int player, int move, int *hand, in argument
325 chkwinner(int player,const int * hand) chkwinner() argument
366 printhand(const int * hand) printhand() argument
386 countcards(const int * hand) countcards() argument
396 countbooks(const int * hand) countbooks() argument
[all...]
H A Dfish.instr7 value if you don't have one of them in your hand! If I have any cards of
17 you what you have in your hand. (Don't worry, I don't look at your hand
23 hitting the carriage return key displays how many cards I have in my hand,
/netbsd-src/games/mille/
H A Dmove.c73 if (pp->hand[i] != -1) in domove()
88 if (pp->hand[Card_no] == C_INIT) in domove()
94 if (is_safety(pp->hand[Card_no])) { in domove()
99 Discard = pp->hand[Card_no]; in domove()
100 pp->hand[Card_no] = C_INIT; in domove()
119 pp->hand[0] = *--Topcard; in domove()
130 if (pp->hand[1] == C_INIT && Topcard > Deck) { in domove()
132 pp->hand[1] = *--Topcard; in domove()
153 sort(pp->hand); in domove()
156 if (pp->hand[i] == C_INIT) { in domove()
[all …]
H A Dcomp.c76 card = pp->hand[i]; in calcmove()
118 if (pp->hand[0] == C_INIT && Topcard > Deck) { in calcmove()
131 if (is_safety(pp->hand[i])) { in calcmove()
144 oppos = opposite(pp->hand[i]); in calcmove()
146 !(pp->hand[i] == C_RIGHT_WAY && in calcmove()
182 card = pp->hand[i]; in calcmove()
378 C_name[pp->hand[i]]); in calcmove()
391 if (is_safety(pp->hand[nummin])) { /* NEVER discard a safety */ in calcmove()
399 mvprintw(MOVE_Y + 2, MOVE_X, "%16s", C_name[pp->hand[Card_no]]); in calcmove()
H A Dinit.c59 pp->hand[0] = C_INIT; in init()
65 pp->hand[j] = *--Topcard; in init()
85 sort(Player[PLAYER].hand); in init()
/netbsd-src/games/cribbage/
H A Dscore.c111 scorehand(const CARD hand[], CARD starter, int n, BOOLEAN crb, in scorehand() argument
123 k = hand[0].suit; in scorehand()
125 flag = (flag && (hand[i].suit == k)); in scorehand()
126 if (hand[i].rank == JACK) /* check for his nibs */ in scorehand()
127 if (hand[i].suit == starter.suit) { in scorehand()
132 h[i] = hand[i]; in scorehand()
184 fifteens(const CARD hand[], int n) in fifteens() argument
198 for (endp = &hand[n]; hand < endp; hand++) { in fifteens()
199 i = hand->rank + 1; in fifteens()
H A Dsupport.c134 plyrhand(const CARD hand[], const char *s) in plyrhand() argument
140 prhand(hand, CINHAND, Playwin, FALSE); in plyrhand()
142 i = scorehand(hand, turnover, CINHAND, strcmp(s, "crib") == 0, explain); in plyrhand()
295 anymove(const CARD hand[], int n, int sum) in anymove() argument
301 j = hand[0].rank; in anymove()
303 if (hand[i].rank < j) in anymove()
304 j = hand[i].rank; in anymove()
314 anysumto(const CARD hand[], int n, int s, int t) in anysumto() argument
319 if (s + VAL(hand[i].rank) == t) in anysumto()
H A Dcribbage.n31 with two pegs. Before the first hand, the pegs are placed in the game
57 After seeing his hand, each player lays away two cards face down.
73 Nondealer begins the play by laying a card from his hand face up
121 shows first, then dealer's hand, then crib. The starter
122 is deemed to belong to each hand, so that each hand includes
135 Four cards of the same suit in hand score 4; four
136 cards in hand or crib of same suit as the starter
139 Jack of same suit as the starter, in hand or crib,
147 The highest possible hand is J, 5, 5, 5 with the starter the 5 of
152 count in the total of the hand, since it is pegged before the play.)
[all …]
H A Dio.c173 infrom(const CARD hand[], int n, const char *prompt) in infrom() argument
185 if (!is_one(crd, hand, n)) in infrom()
189 if (hand[i].rank == crd.rank && in infrom()
190 hand[i].suit == crd.suit) in infrom()
201 if (hand[i].rank == crd.rank) in infrom()
207 if (hand[j].rank == crd.rank) in infrom()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/
H A Dinitthread.c356 THREAD_EVENT_HANDLER *hand; in ossl_init_thread_start() local
395 hand = OPENSSL_malloc(sizeof(*hand)); in ossl_init_thread_start()
396 if (hand == NULL) in ossl_init_thread_start()
399 hand->handfn = handfn; in ossl_init_thread_start()
400 hand->arg = arg; in ossl_init_thread_start()
402 hand->index = index; in ossl_init_thread_start()
404 hand->next = *hands; in ossl_init_thread_start()
405 *hands = hand; in ossl_init_thread_start()
/netbsd-src/external/bsd/mdocml/dist/
H A Dmansearch.c320 struct ohash *hand, *h1, *h2; in manmerge_and() local
326 hand = manmerge(e, NULL); in manmerge_and()
333 if (ohash_entries(h2) < ohash_entries(hand)) { in manmerge_and()
335 h2 = hand; in manmerge_and()
337 h1 = hand; in manmerge_and()
338 hand = mandoc_malloc(sizeof(*hand)); in manmerge_and()
339 mandoc_ohash_init(hand, 4, offsetof(struct dbm_res, page)); in manmerge_and()
350 ohash_insert(hand, ohash_lookup_memory(hand, in manmerge_and()
369 return hand; in manmerge_and()
371 for (res = ohash_first(hand, &slot1); res != NULL; in manmerge_and()
[all …]
H A Dpredefs.in20 * predefined strings from (e.g.) tmac/mdoc/doc-nroff. The left-hand
22 * right-hand side is what's produced by libroff.
/netbsd-src/sys/dev/ieee1394/
H A Dfwmem.c322 void (*hand)(struct fw_xfer *)) in fwmem_read_quad()
327 xfer = fwmem_xfer_req(fwdev, (void *)sc, spd, 0, 4, hand); in fwmem_read_quad()
353 void (*hand)(struct fw_xfer *)) in fwmem_write_quad()
358 xfer = fwmem_xfer_req(fwdev, sc, spd, 0, 0, hand); in fwmem_write_quad()
384 void (*hand)(struct fw_xfer *)) in fwmem_read_block()
389 xfer = fwmem_xfer_req(fwdev, sc, spd, 0, roundup2(len, 4), hand); in fwmem_read_block()
416 void (*hand)(struct fw_xfer *)) in fwmem_write_block()
421 xfer = fwmem_xfer_req(fwdev, sc, spd, len, 0, hand); in fwmem_write_block()
448 void *hand) in fwmem_xfer_req() argument
462 xfer->hand = hand; in fwmem_xfer_req()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/doc/include/
H A Dgcc-common.texi40 @c Cause even numbered pages to be printed on the left hand side of
41 @c the page and odd numbered pages to be printed on the right hand
45 @c The text on right hand pages is pushed towards the right hand
46 @c margin and the text on left hand pages is pushed toward the left
47 @c hand margin.
/netbsd-src/external/gpl3/gcc/dist/gcc/doc/include/
H A Dgcc-common.texi40 @c Cause even numbered pages to be printed on the left hand side of
41 @c the page and odd numbered pages to be printed on the right hand
45 @c The text on right hand pages is pushed towards the right hand
46 @c margin and the text on left hand pages is pushed toward the left
47 @c hand margin.
/netbsd-src/sys/dev/mvme/
H A Dvme_two_isr.c240 vmetwo_local_intr_establish(int pri, int vec, int (*hand)(void *), void *arg, struct evcnt *evcnt) in vmetwo_local_intr_establish()
243 vmetwo_intr_establish(vmetwo_sc, pri, pri, vec, 1, hand, arg, evcnt); in vmetwo_local_intr_establish()
248 vmetwo_intr_establish(void *csc, int prior, int lvl, int vec, int first, int (*hand)(void *), void … in vmetwo_intr_establish()
269 vme_two_handlers[vec - VME2_VECTOR_LOCAL_MIN].isr_hand = hand; in vmetwo_intr_establish()
271 hand = vmetwo_local_isr_trampoline; in vmetwo_intr_establish()
290 (*sc->sc_isrlink)(sc->sc_isrcookie, hand, arg, prior, vec, evcnt); in vmetwo_intr_establish()
H A Dpcctwo.c133 int (*hand)(void *), in pcctwointr_establish()
159 (*sys_pcctwo->sc_isrlink)(sys_pcctwo->sc_isrcookie, hand, arg, in pcctwointr_establish()
/netbsd-src/games/canfield/canfield/
H A Dcanfield.c156 static struct cardtype *talon, *hand, *stock, *basecard; variable
708 hand = deck[18]; in initgame()
734 this.hand = costofhand; in startgame()
735 game.hand += costofhand; in startgame()
736 total.hand += costofhand; in startgame()
895 transit(&talon, &hand); in movetotalon()
923 transit(&hand, &talon); in movetotalon()
984 for ( row = cnewrow, col = cnewcol, ptr = hand; in showstat()
1071 for (ptr = hand; ptr != NIL; ptr = ptr->next) { in showcards()
1125 thiscosts = this.hand + this.inspection + this.game + in updatebettinginfo()
[all …]
/netbsd-src/sbin/resize_ffs/
H A Dresize_ffs.c659 static int hand = 0; /* hand rotates through all frags in the fs */ in find_freespace() local
669 cgn = dtog(newsb, hand); in find_freespace()
670 fwc = dtogd(newsb, hand); in find_freespace()
671 secondpass = (hand == 0); in find_freespace()
679 return (hand + 1 - run); in find_freespace()
683 hand++; in find_freespace()
689 hand = 0; in find_freespace()
713 static int hand = 0; /* hand rotates through all frags in fs */ in find_freeblock() local
721 cgn = dtog(newsb, hand); in find_freeblock()
722 fwc = dtogd(newsb, hand); in find_freeblock()
[all …]
/netbsd-src/external/mpl/dhcp/dist/keama/tests/samples/
H A Dsimple.json27 # not to hand out leases for it.
32 # But we do want to hand out leases for the 192.168.1.0/24
/netbsd-src/games/canfield/cfscores/
H A Dcfscores.c123 if (i == 0 || total.hand == 0) { in printuser()
135 printf("| Hands %8ld |\n", total.hand); in printuser()
/netbsd-src/sys/arch/news68k/dev/
H A Dhb.c123 hb_intr_establish(int hbvect, int (*hand)(void *), int ipl, void *arg) in hb_intr_establish()
136 isrlink_vectored(hand, arg, ipl, hbvect); in hb_intr_establish()
/netbsd-src/external/mit/libcbor/dist/doc/source/api/
H A Dtype_2.rst17 …00`` and ``0xff``. This on one hand enables streaming messages even before they are fully generate…
/netbsd-src/sys/arch/mvme68k/dev/
H A Dpcc.c248 pccintr_establish(int pccvec, int (*hand)(void *), int lvl, void *arg, in pccintr_establish()
263 isrlink_vectored(hand, arg, lvl, pccvec + PCC_VECBASE, evcnt); in pccintr_establish()
/netbsd-src/external/ibm-public/postfix/dist/
H A DRELEASE_NOTES-3.272 maps now support spaces in left-hand field of the lookup table
73 "source text". Use double quotes (") around a left-hand field that
75 in a left-hand field. There is no change in the processing of the
76 right-hand field.

12345678910>>...34