Commit | Line | Data |
---|---|---|
8427dd1d KB |
1 | /* |
2 | * Copyright (c) 1982 Regents of the University of California. | |
d6bad537 KB |
3 | * All rights reserved. |
4 | * | |
7c5ab767 | 5 | * %sccs.include.redist.c% |
8427dd1d KB |
6 | */ |
7 | ||
8 | #ifndef lint | |
d6bad537 KB |
9 | char copyright[] = |
10 | "@(#) Copyright (c) 1982 Regents of the University of California.\n\ | |
11 | All rights reserved.\n"; | |
12 | #endif /* not lint */ | |
13 | ||
14 | #ifndef lint | |
7c5ab767 | 15 | static char sccsid[] = "@(#)table.c 5.4 (Berkeley) %G%"; |
d6bad537 KB |
16 | #endif /* not lint */ |
17 | ||
8427dd1d KB |
18 | # define DEBUG |
19 | ||
20 | /* | |
21 | * @(#)table.c 1.1 (Berkeley) 4/1/82 | |
22 | */ | |
23 | ||
24 | # include "mille.h" | |
25 | ||
26 | main() { | |
27 | ||
28 | reg int i, j, count; | |
29 | ||
30 | printf(" %16s -> %5s %5s %4s %s\n", "Card", "cards", "count", "need", "opposite"); | |
31 | for (i = 0; i < NUM_CARDS - 1; i++) { | |
32 | for (j = 0, count = 0; j < DECK_SZ; j++) | |
33 | if (Deck[j] == i) | |
34 | count++; | |
35 | printf("%2d %16s -> %5d %5d %4d %s\n", i, C_name[i], Numcards[i], count, Numneed[i], C_name[opposite(i)]); | |
36 | } | |
37 | } | |
38 |