Home
last modified time | relevance | path

Searched refs:deck (Results 1 – 21 of 21) sorted by relevance

/openbsd-src/games/monop/
H A Dinitdeck.c59 DECK deck[2]; variable
94 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
95 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf); in main()
96 fwrite(&deck[0].gojf_used, sizeof(deck[0].gojf_used), 1, outf); in main()
98 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
99 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf); in main()
100 fwrite(&deck[0].gojf_used, sizeof(deck[0].gojf_used), 1, outf); in main()
109 deck[0].num_cards = htons(deck[0].num_cards); in main()
110 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
111 deck[0].top_card = htons(deck[0].top_card); in main()
[all …]
H A Dcards.c63 if (fread(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, deckf) != 1) in init_decks()
65 if (fread(&deck[0].top_card, sizeof(deck[0].top_card), 1, deckf) != 1) in init_decks()
67 if (fread(&deck[0].gojf_used, sizeof(deck[0].gojf_used), 1, deckf) != 1) in init_decks()
69 deck[0].num_cards = ntohs(deck[0].num_cards); in init_decks()
70 deck[0].top_card = ntohs(deck[0].top_card); in init_decks()
72 if (fread(&deck[1].num_cards, sizeof(deck[1].num_cards), 1, deckf) != 1) in init_decks()
74 if (fread(&deck[1].top_card, sizeof(deck[1].top_card), 1, deckf) != 1) in init_decks()
76 if (fread(&deck[1].gojf_used, sizeof(deck[1].gojf_used), 1, deckf) != 1) in init_decks()
78 deck[1].num_cards = ntohs(deck[1].num_cards); in init_decks()
79 deck[1].top_card = ntohs(deck[1].top_card); in init_decks()
H A Dexecute.c226 fprintf(outf, "%d %d %d\n", (int)(deck[i].num_cards), in save()
227 (int)(deck[i].top_card), (int)(deck[i].gojf_used)); in save()
228 for (j = 0; j < deck[i].num_cards; j++) in save()
229 fprintf(outf, "%ld ", (long)(deck[i].offsets[j])); in save()
369 j > t1 || t1 != deck[i].num_cards || j < 0 || in rest_f()
372 deck[i].top_card = j; in rest_f()
373 deck[i].gojf_used = t2; in rest_f()
380 for (j = 0; j < deck[i].num_cards; j++) { in rest_f()
384 deck[i].offsets[j] = tl; in rest_f()
435 t1 -= (deck[i].gojf_used == TRUE); in rest_f()
H A Ddeck.h37 #define CC_D deck[0]
38 #define CH_D deck[1]
H A Dmonop.ext35 #include "deck.h"
44 extern DECK deck[2];
H A Dmonop.def35 #include "deck.h"
100 DECK deck[2]; /* Chance and Community Chest */
/openbsd-src/games/cribbage/
H A Dcrib.c174 makedeck(deck); in game()
175 shuffle(deck); in game()
200 msgcard(deck[i], FALSE); in game()
203 msgcard(deck[j], FALSE); in game()
205 flag = (deck[i].rank == deck[j].rank); in game()
209 shuffle(deck); in game()
212 compcrib = (deck[i].rank > deck[j].rank); in game()
232 shuffle(deck); in game()
309 phand[i] = deck[j++]; in deal()
310 chand[i] = deck[j++]; in deal()
[all …]
H A Dextern.c55 CARD deck[CARDS]; /* a deck */ variable
H A Dcribbage.h40 extern CARD deck[ CARDS ]; /* a deck */
/openbsd-src/games/fish/
H A Dfish.c65 int asked[RANKS], comphand[RANKS], deck[TOTCARDS]; variable
254 ++hand[card = deck[--curcard]]; in drawcard()
399 deck[i] = i % RANKS; in init()
404 temp = deck[i]; in init()
405 deck[i] = deck[i+j]; in init()
406 deck[i+j] = temp; in init()
409 ++userhand[deck[--curcard]]; in init()
410 ++comphand[deck[--curcard]]; in init()
H A Dfish.instr2 cards, and the rest of the deck is kept to be drawn from later. The
11 that you draw a card from the deck. If you draw the card you asked me
16 your turn to move, I'll draw cards from the deck for you, and I'll tell
24 how many are left in the deck, and which books I've gotten.
/openbsd-src/games/canfield/canfield/
H A Dcanfield.c137 struct cardtype *deck[decksize]; variable
499 initdeck(struct cardtype *deck[]) in initdeck() argument
510 deck[i] = &cards[i]; in initdeck()
524 shuffle(struct cardtype *deck[]) in shuffle() argument
530 deck[i]->visible = FALSE; in shuffle()
531 deck[i]->paid = FALSE; in shuffle()
536 temp = deck[i]; in shuffle()
537 deck[i] = deck[j]; in shuffle()
538 deck[j] = temp; in shuffle()
679 deck[i]->visible = TRUE; in initgame()
[all …]
/openbsd-src/gnu/llvm/libcxx/utils/
H A Dzos_rename_dll_side_deck.sh20 Usage: $(basename $0) <side deck file> <old dll name> <new dll name>:
/openbsd-src/gnu/llvm/libcxxabi/src/
H A DCMakeLists.txt200 COMMENT "Rename dll name inside the side deck file"
/openbsd-src/gnu/llvm/libcxx/src/
H A DCMakeLists.txt221 COMMENT "Rename dll name inside the side deck file"
/openbsd-src/share/dict/
H A Dweb2a2959 awning deck
5098 bell deck
5393 berth deck
6617 boat deck
7991 bridge deck
15998 deck beam
15999 deck block
16000 deck board
16001 deck boy
16002 deck bridg
[all...]
H A Dweb249537 deck
/openbsd-src/gnu/usr.bin/perl/cpan/perlfaq/lib/
H A Dperlfaq4.pod1757 my $deck = shift; # $deck is a reference to an array
1758 return unless @$deck; # must not be empty!
1760 my $i = @$deck;
1763 @$deck[$i,$j] = @$deck[$j,$i];
/openbsd-src/gnu/usr.bin/perl/pod/
H A Dperlport.pod1067 $ deck/dollars="__END__"
/openbsd-src/games/fortune/datfiles/
H A Dfortunes210221 In "Decameron Nights", Louis Jourdain stands on the deck of his
13427 the world. Nude sunbathing on the back deck was combined with phone calls to
31459 the ace is missing from his deck altogether."
33774 Son, someday a man is going to walk up to you with a deck of cards on which
33776 make the Ace of Spades jump out of the deck and squirt cider in your ears.
33811 murdered mate when tossed by pirates from the midnight deck; for hours he fell
35104 The boy stood on the burning deck,
H A Dfortunes2-o3876 Once round the deck, They nailed her tits,