1 /* 2 * Copyright (c) 1982 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 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 15 static char sccsid[] = "@(#)table.c 5.4 (Berkeley) 06/01/90"; 16 #endif /* not lint */ 17 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 39