xref: /original-bsd/games/monop/deck.h (revision 100ae74e)
1 /*
2  * Copyright (c) 1987 Regents of the University of California.
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.
11  *
12  *	@(#)deck.h	5.1 (Berkeley) 01/02/88
13  */
14 
15 # define	bool	char
16 
17 # define	CC_D	deck[0]
18 # define	CH_D	deck[1]
19 
20 struct dk_st {			/* deck description structure		*/
21 	int	num_cards;		/* number of cards in deck	*/
22 	int	last_card;		/* number of last card picked	*/
23 	bool	gojf_used;		/* set if gojf card out of deck	*/
24 	long	*offsets;		/* offests for start of cards	*/
25 };
26 
27 typedef struct dk_st	DECK;
28