Score Four

Score Four. More...


Files

file  mainpage.h
 Main page - header file.
file  score4.h
 Score Four header file.

Classes

struct  MOVE
 MOVE structure. More...
struct  W_ENTRY
 MOVE structure. More...

Defines

#define CUBE_DIM   4
 Dimensions of a cube.
#define NUM_PLAINS   ((3 * CUBE_DIM) + 6)
 Number of plains in a cube.
#define PLAIN_SZ   8
 sizeof(short) * PLAIN_SZ = 16
#define MAX_INT   0x7FFFFFFF
 Maximum integer - defined for a 32 bit word.
#define MAX_VALUE   (MAX_INT - 1)
 Maximum board value.
#define WIN_VALUE   (MAX_VALUE - 1)
 Maximum win value.
#define THREE_ROW   (MAX_VALUE - 1)
 Three-in-a-row.
#define TRAP1_VALUE   (THREE_ROW / 14)
 Value of a plain that is one move away from a trap.
#define TRAP2_VALUE   (TRAP1_VALUE / 14)
 Value of a plain that is two moves away from a trap.
#define COMP_MOVE   5
 Value of a computer move in the board.
#define OPP_MOVE   1
 Value of an opponent's move in the board.
#define TRUE   1
 True.
#define FALSE   0
 False.
#define NOTSET   2
 Not set.
#define MAX_ROWS   7
 Maximum number of possible wins as a result of 1 move.
#define MAX_PLY   2
 Maximum polynomial.
#define LEN_WTABLE   512
 Length of wtable.
#define MEM_FILE   "score4.m"
 Memory file.
#define NUM_ROWS   76
 There are 76 different rows in the cube.
#define NUM_VALUES   5
 Number of different coefficient values used for statistical analysis.
#define PLAYOFF_LEN   (NUM_VALUES * NUM_VALUES * NUM_VALUES)
 The number of tournaments used for each statistical analysis.
#define MAX_COEF   MAX_INT
 Maximum coefficient value.
#define INTERVAL_SZ   (MAX_COEF / NUM_VALUES)
 Interval size.

Functions

void h_init_1 (void)
 Read in polynomial coefficients.

Detailed Description

Score Four.


Define Documentation

#define COMP_MOVE   5
 

Value of a computer move in the board.

#define CUBE_DIM   4
 

Dimensions of a cube.

#define FALSE   0
 

False.

#define INTERVAL_SZ   (MAX_COEF / NUM_VALUES)
 

Interval size.

#define LEN_WTABLE   512
 

Length of wtable.

#define MAX_COEF   MAX_INT
 

Maximum coefficient value.

#define MAX_INT   0x7FFFFFFF
 

Maximum integer - defined for a 32 bit word.

#define MAX_PLY   2
 

Maximum polynomial.

#define MAX_ROWS   7
 

Maximum number of possible wins as a result of 1 move.

#define MAX_VALUE   (MAX_INT - 1)
 

Maximum board value.

#define MEM_FILE   "score4.m"
 

Memory file.

#define NOTSET   2
 

Not set.

#define NUM_PLAINS   ((3 * CUBE_DIM) + 6)
 

Number of plains in a cube.

Number of Rows + Number of Columns + Number of Levels + 6 diagonals.

#define NUM_ROWS   76
 

There are 76 different rows in the cube.

#define NUM_VALUES   5
 

Number of different coefficient values used for statistical analysis.

#define OPP_MOVE   1
 

Value of an opponent's move in the board.

#define PLAIN_SZ   8
 

sizeof(short) * PLAIN_SZ = 16

#define PLAYOFF_LEN   (NUM_VALUES * NUM_VALUES * NUM_VALUES)
 

The number of tournaments used for each statistical analysis.

That is, the number of tournaments in a playoff.
A value >= 120 relates to a high degree of freecdom in the statistical analysis.
If the value is a perfect cube, then it is easy to form a uniform distribution of coefficient values since there are (NUM_VALUES * NUM_VALUES NUM_VALUES) different combinations for a 3-tuple with NUM_VALUES number of values for each coefficient.
Each coefficient isn a 3-tuple would be a factor in INTERVAL_SZ.

#define THREE_ROW   (MAX_VALUE - 1)
 

Three-in-a-row.

#define TRAP1_VALUE   (THREE_ROW / 14)
 

Value of a plain that is one move away from a trap.

#define TRAP2_VALUE   (TRAP1_VALUE / 14)
 

Value of a plain that is two moves away from a trap.

#define TRUE   1
 

True.

#define WIN_VALUE   (MAX_VALUE - 1)
 

Maximum win value.


Function Documentation

h_init_1 void   ) 
 

Read in polynomial coefficients.

Returns:
void.


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