home *** CD-ROM | disk | FTP | other *** search
- /*
- * cards.h - the include library with all the definitions for card things
- */
-
- #define REVERSE 1 /* the suit should be displayed in reverse */
- #define NORMAL 0
-
- #define SPADE 0 /* the types of cards */
- #define HEART 1 /* this should ALWAYS match the suits[] array */
- #define CLUB 2
- #define DIAMOND 3
-
- #ifndef TRUE
- #define TRUE 1
- #endif
- #ifndef FALSE
- #define FALSE 0
- #endif
-
- struct card {
- int face;
- int suit;
- };
-
- extern char *cards[];
- extern char *cardnames[];
- extern char *suits[];
- extern char *suitnames[];
- extern char *helplist[];
- extern struct card deck[52];
-
- extern newdeck();
- extern shuffle();
- extern swap();
- extern help();
-