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. | |
|
|
Value of a computer move in the board.
|
|
|
Dimensions of a cube.
|
|
|
False.
|
|
|
Interval size.
|
|
|
Length of wtable.
|
|
|
Maximum coefficient value.
|
|
|
Maximum integer - defined for a 32 bit word.
|
|
|
Maximum polynomial.
|
|
|
Maximum number of possible wins as a result of 1 move.
|
|
|
Maximum board value.
|
|
|
Memory file.
|
|
|
Not set.
|
|
|
Number of plains in a cube. Number of Rows + Number of Columns + Number of Levels + 6 diagonals. |
|
|
There are 76 different rows in the cube.
|
|
|
Number of different coefficient values used for statistical analysis.
|
|
|
Value of an opponent's move in the board.
|
|
|
sizeof(short) * PLAIN_SZ = 16
|
|
|
The number of tournaments used for each statistical analysis.
That is, the number of tournaments in a playoff. |
|
|
Three-in-a-row.
|
|
|
Value of a plain that is one move away from a trap.
|
|
|
Value of a plain that is two moves away from a trap.
|
|
|
True.
|
|
|
Maximum win value.
|
|
|
Read in polynomial coefficients.
|
1.4.5