xref: /csrg-svn/games/mille/table.c (revision 60812)
130208Sbostic /*
2*60812Sbostic  * Copyright (c) 1982, 1993
3*60812Sbostic  *	The Regents of the University of California.  All rights reserved.
433181Sbostic  *
542579Sbostic  * %sccs.include.redist.c%
630208Sbostic  */
730208Sbostic 
830208Sbostic #ifndef lint
9*60812Sbostic static char copyright[] =
10*60812Sbostic "@(#) Copyright (c) 1982, 1993\n\
11*60812Sbostic 	The Regents of the University of California.  All rights reserved.\n";
1233181Sbostic #endif /* not lint */
1330208Sbostic 
1433181Sbostic #ifndef lint
15*60812Sbostic static char sccsid[] = "@(#)table.c	8.1 (Berkeley) 05/31/93";
1633181Sbostic #endif /* not lint */
1733181Sbostic 
1830208Sbostic # define	DEBUG
1930208Sbostic 
2030208Sbostic /*
2130208Sbostic  * @(#)table.c	1.1 (Berkeley) 4/1/82
2230208Sbostic  */
2330208Sbostic 
2430208Sbostic # include	"mille.h"
2530208Sbostic 
main()2630208Sbostic main() {
2730208Sbostic 
2830208Sbostic 	reg int	i, j, count;
2930208Sbostic 
3030208Sbostic 	printf("   %16s -> %5s %5s %4s %s\n", "Card", "cards", "count", "need", "opposite");
3130208Sbostic 	for (i = 0; i < NUM_CARDS - 1; i++) {
3230208Sbostic 		for (j = 0, count = 0; j < DECK_SZ; j++)
3330208Sbostic 			if (Deck[j] == i)
3430208Sbostic 				count++;
3530208Sbostic 		printf("%2d %16s -> %5d %5d %4d %s\n", i, C_name[i], Numcards[i], count, Numneed[i], C_name[opposite(i)]);
3630208Sbostic 	}
3730208Sbostic }
3830208Sbostic 
39