home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume4 / nobs / defs.h < prev    next >
Text File  |  1988-03-24  |  688b  |  41 lines

  1. /*
  2.  *    defs.h - definitions.
  3.  */
  4.  
  5. /*    Suit has 3 bits, so we can use the green suit for estimating the cut.
  6.  */
  7. #define RANK(x) ((x)&0017)
  8. #define    SUIT(x) (((x)&0160)>>4)
  9. #define    SAMESUIT(x,y) (!((x^y)&0160))
  10. #define    MAKECARD(r,s) ((r)|((s)<<4))
  11.  
  12. typedef    char    PLAYER;
  13.  
  14. #define    PROGRAM    0
  15. #define    HUMAN    1
  16.  
  17. #define    SCOREUP(a,b) {if (scoreup((a),(b))) {gameover++; return;}}
  18. #define    CABBAGE    4
  19. #define    SPADE    3
  20. #define    HEART    2
  21. #define    DIAMOND    1
  22. #define    CLUB    0
  23.  
  24. #define    KING    13
  25. #define    QUEEN    12
  26. #define    KNAVE    11
  27. #define    TEN    10
  28. #define    NINE    9
  29. #define    EIGHT    8
  30. #define    SEVEN    7
  31. #define    SIX    6
  32. #define    FIVE    5
  33. #define    FOUR    4
  34. #define    TREY    3
  35. #define    DEUCE    2
  36. #define    ACE    1
  37.  
  38. typedef    char    CARD;
  39.  
  40. void    shuf();
  41.