Commit | Line | Data |
---|---|---|
8427dd1d KB |
1 | /* |
2 | * Copyright (c) 1982 Regents of the University of California. | |
d6bad537 KB |
3 | * All rights reserved. |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
6 | * provided that this notice is preserved and that due credit is given | |
7 | * to the University of California at Berkeley. The name of the University | |
8 | * may not be used to endorse or promote products derived from this | |
9 | * software without specific prior written permission. This software | |
10 | * is provided ``as is'' without express or implied warranty. | |
8427dd1d KB |
11 | */ |
12 | ||
13 | #ifndef lint | |
d6bad537 KB |
14 | char copyright[] = |
15 | "@(#) Copyright (c) 1982 Regents of the University of California.\n\ | |
16 | All rights reserved.\n"; | |
17 | #endif /* not lint */ | |
18 | ||
19 | #ifndef lint | |
20 | static char sccsid[] = "@(#)table.c 5.2 (Berkeley) %G%"; | |
21 | #endif /* not lint */ | |
22 | ||
8427dd1d KB |
23 | |
24 | # define DEBUG | |
25 | ||
26 | /* | |
27 | * @(#)table.c 1.1 (Berkeley) 4/1/82 | |
28 | */ | |
29 | ||
30 | # include "mille.h" | |
31 | ||
32 | main() { | |
33 | ||
34 | reg int i, j, count; | |
35 | ||
36 | printf(" %16s -> %5s %5s %4s %s\n", "Card", "cards", "count", "need", "opposite"); | |
37 | for (i = 0; i < NUM_CARDS - 1; i++) { | |
38 | for (j = 0, count = 0; j < DECK_SZ; j++) | |
39 | if (Deck[j] == i) | |
40 | count++; | |
41 | printf("%2d %16s -> %5d %5d %4d %s\n", i, C_name[i], Numcards[i], count, Numneed[i], C_name[opposite(i)]); | |
42 | } | |
43 | } | |
44 |