home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume15 / accordian / part01 / cards.h < prev    next >
C/C++ Source or Header  |  1993-01-27  |  634b  |  36 lines

  1. /*
  2.  * cards.h - the include library with all the definitions for card things
  3.  */
  4.  
  5. #define REVERSE    1    /* the suit should be displayed in reverse */
  6. #define NORMAL    0
  7.  
  8. #define SPADE    0    /* the types of cards */
  9. #define HEART    1    /* this should ALWAYS match the suits[] array */
  10. #define CLUB    2
  11. #define DIAMOND    3
  12.  
  13. #ifndef TRUE
  14. #define TRUE 1
  15. #endif
  16. #ifndef FALSE
  17. #define FALSE 0
  18. #endif
  19.  
  20. struct card {
  21.     int face;
  22.     int suit;
  23. };
  24.  
  25. extern char *cards[];
  26. extern char *cardnames[];
  27. extern char *suits[];
  28. extern char *suitnames[];
  29. extern char *helplist[];
  30. extern struct card deck[52];
  31.  
  32. extern newdeck();
  33. extern shuffle();
  34. extern swap();
  35. extern help();
  36.