home *** CD-ROM | disk | FTP | other *** search
- /*P*/
- /****************************************************************/
- /* */
- /* main.h ( backgammon ) */
- /* */
- /****************************************************************/
-
- #define KAYPRO
-
- #define TRUE 1
- #define FALSE 0
-
- #define DYE 0x0a /* Dice color in IBM PC */
- #define CUBE_COLOR 0x0a /* Double cube color */
- #define BOARD_COLOR 0x0c /* Board color for PC */
- #define NUM_COLOR 0x04 /* Number color on PC */
- #define TEXT_COLOR 0x07 /* Information color */
- #define ALERT_COLOR 0x0d /* Special information. */
-
- #define X_INFO 18
- #define Y_INFO 0
- #define X_PROMPT 19
- #define Y_PROMPT 0
- #define X_DIE1 3
- #define Y_DIE1 64
- #define X_DIE2 9
- #define Y_DIE2 69
- #define CTEOL 0x18
- #define WHITE 0
- #define BLACK 1
- #define NOBODY 2
- #define FIRST 1
- #define LAST 24
- #define SIZE 26
- #define B_BAR 0
- #define W_BAR 25
- #define B_HOME 25
- #define W_HOME 0
- #define BAR ( me ? B_BAR : W_BAR )
- #define OTHER_BAR ( me ? 25 : 0 )
- #define OTHER ( me ? WHITE : BLACK )
- #define NAME ( me ? "Black" : "White" )
- #define BOARD_IN_BYTES 156
- #define DBL_TABLE 9
-
- #ifdef KAYPRO
- #define extern
- #endif
-
- #ifdef MAIN
-
- int me, fast, debug, r_test;
- int board[ SIZE ][ 3 ], prob[ 25 ];
-
- #endif
-
- #ifndef MAIN
-
- extern int me, fast, debug, r_test;
- extern int board[ SIZE ][ 3 ], prob[ 25 ];
-
- #endif