xref: /csrg-svn/games/mille/table.c (revision 33181)
130208Sbostic /*
230208Sbostic  * Copyright (c) 1982 Regents of the University of California.
3*33181Sbostic  * All rights reserved.
4*33181Sbostic  *
5*33181Sbostic  * Redistribution and use in source and binary forms are permitted
6*33181Sbostic  * provided that this notice is preserved and that due credit is given
7*33181Sbostic  * to the University of California at Berkeley. The name of the University
8*33181Sbostic  * may not be used to endorse or promote products derived from this
9*33181Sbostic  * software without specific prior written permission. This software
10*33181Sbostic  * is provided ``as is'' without express or implied warranty.
1130208Sbostic  */
1230208Sbostic 
1330208Sbostic #ifndef lint
14*33181Sbostic char copyright[] =
15*33181Sbostic "@(#) Copyright (c) 1982 Regents of the University of California.\n\
16*33181Sbostic  All rights reserved.\n";
17*33181Sbostic #endif /* not lint */
1830208Sbostic 
19*33181Sbostic #ifndef lint
20*33181Sbostic static char sccsid[] = "@(#)table.c	5.2 (Berkeley) 12/29/87";
21*33181Sbostic #endif /* not lint */
22*33181Sbostic 
23*33181Sbostic 
2430208Sbostic # define	DEBUG
2530208Sbostic 
2630208Sbostic /*
2730208Sbostic  * @(#)table.c	1.1 (Berkeley) 4/1/82
2830208Sbostic  */
2930208Sbostic 
3030208Sbostic # include	"mille.h"
3130208Sbostic 
3230208Sbostic main() {
3330208Sbostic 
3430208Sbostic 	reg int	i, j, count;
3530208Sbostic 
3630208Sbostic 	printf("   %16s -> %5s %5s %4s %s\n", "Card", "cards", "count", "need", "opposite");
3730208Sbostic 	for (i = 0; i < NUM_CARDS - 1; i++) {
3830208Sbostic 		for (j = 0, count = 0; j < DECK_SZ; j++)
3930208Sbostic 			if (Deck[j] == i)
4030208Sbostic 				count++;
4130208Sbostic 		printf("%2d %16s -> %5d %5d %4d %s\n", i, C_name[i], Numcards[i], count, Numneed[i], C_name[opposite(i)]);
4230208Sbostic 	}
4330208Sbostic }
4430208Sbostic 
45