home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 January / PSL Monthly Shareware CD-ROM (Public Software Library) (January 1994).iso / games / dos / board / backgam.com / BKG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1979-11-30  |  1.5 KB  |  63 lines

  1. /*P*/
  2. /****************************************************************/
  3. /*                                */
  4. /* main.h ( backgammon )                    */
  5. /*                                */
  6. /****************************************************************/
  7.  
  8. #define        KAYPRO
  9.  
  10. #define        TRUE        1
  11. #define        FALSE        0
  12.  
  13. #define        DYE        0x0a    /* Dice color in IBM PC    */
  14. #define        CUBE_COLOR    0x0a    /* Double cube color    */
  15. #define        BOARD_COLOR    0x0c    /* Board color for PC    */
  16. #define        NUM_COLOR    0x04    /* Number color on PC    */
  17. #define        TEXT_COLOR    0x07    /* Information color    */
  18. #define        ALERT_COLOR    0x0d    /* Special information.    */
  19.  
  20. #define        X_INFO        18
  21. #define        Y_INFO        0
  22. #define        X_PROMPT    19
  23. #define        Y_PROMPT    0
  24. #define        X_DIE1        3
  25. #define        Y_DIE1        64
  26. #define        X_DIE2        9
  27. #define        Y_DIE2        69
  28. #define        CTEOL        0x18
  29. #define        WHITE        0
  30. #define        BLACK        1
  31. #define        NOBODY        2
  32. #define        FIRST        1
  33. #define        LAST        24
  34. #define        SIZE        26
  35. #define        B_BAR        0
  36. #define        W_BAR        25
  37. #define        B_HOME        25
  38. #define        W_HOME        0
  39. #define        BAR        ( me ? B_BAR : W_BAR )
  40. #define        OTHER_BAR    ( me ? 25 : 0 )
  41. #define        OTHER        ( me ? WHITE : BLACK )
  42. #define        NAME        ( me ? "Black" : "White" )
  43. #define        BOARD_IN_BYTES    156
  44. #define        DBL_TABLE    9
  45.  
  46. #ifdef        KAYPRO
  47. #define        extern
  48. #endif
  49.  
  50. #ifdef        MAIN
  51.  
  52. int        me, fast, debug, r_test;
  53. int        board[ SIZE ][ 3 ], prob[ 25 ];
  54.  
  55. #endif
  56.  
  57. #ifndef        MAIN
  58.  
  59. extern int    me, fast, debug, r_test;
  60. extern int    board[ SIZE ][ 3 ], prob[ 25 ];
  61.  
  62. #endif
  63.