score4.h

Go to the documentation of this file.
00001 
00023 #ifndef __SCORE4_H__
00024 #define __SCORE4_H__
00025 
00026 
00027 /*******************************************************************************
00028  *
00029  *  Constants
00030  *
00031  ******************************************************************************/
00032 
00033 
00042 #define CUBE_DIM        4
00043 
00044 
00055 #define NUM_PLAINS      ((3 * CUBE_DIM) + 6)
00056 
00057 
00066 #define PLAIN_SZ        8
00067 
00068 
00077 #define MAX_INT     0x7FFFFFFF
00078 
00079 
00088 #define MAX_VALUE       (MAX_INT - 1)
00089 
00090 
00099 #define WIN_VALUE       (MAX_VALUE - 1)
00100 
00101 
00110 #define THREE_ROW       (MAX_VALUE - 1)
00111 
00112 
00121 #define TRAP1_VALUE     (THREE_ROW / 14)
00122 
00123 
00132 #define TRAP2_VALUE     (TRAP1_VALUE / 14)
00133 
00134 
00143 #define COMP_MOVE       5
00144 
00145 
00154 #define OPP_MOVE        1
00155 
00156 
00165 #define TRUE        1
00166 
00167 
00176 #define FALSE       0
00177 
00178 
00187 #define NOTSET      2
00188 
00189 
00198 #define MAX_ROWS        7
00199 
00200 
00209 #define MAX_PLY     2
00210 
00211 
00220 #define LEN_WTABLE      512
00221 
00222 
00231 #define MEM_FILE        "score4.m"
00232 
00233 
00242 #define NUM_ROWS        76
00243 
00244 
00253 #define NUM_VALUES      5
00254 
00255 
00273 #define PLAYOFF_LEN     (NUM_VALUES * NUM_VALUES * NUM_VALUES)
00274 
00275 
00284 #define MAX_COEF        MAX_INT
00285 
00286 
00295 #define INTERVAL_SZ     (MAX_COEF / NUM_VALUES)
00296 
00297 
00298 /*******************************************************************************
00299  *
00300  *  Structures
00301  *
00302  ******************************************************************************/
00303 
00304 
00313 typedef struct
00314 {
00315 
00316     short  *plain;      
00317 
00318     int  pos;           
00319 
00320 } MOVE;
00321 
00322 
00331 typedef struct
00332 {
00333 
00334     short  a_plain;     
00335 
00336     short  b_plain;     
00337 
00338 
00339 } W_ENTRY;
00340 
00341 
00342 #endif // __SCORE4_H__ 
00343 

Generated on Sat Sep 24 09:00:12 2011 for ScoreFour by  doxygen 1.4.5