|
Defines |
| #define | BUF_SIZE 512 |
| | Buffer size.
|
Functions |
| static void | _get_move (int move) |
| | Get the user's next move.
|
| static void | _info (int argc, char *argv[]) |
| | Parse user supplied options.
|
| static void | _init (void) |
| | Perform initialization for Score Four.
|
| static void | _play (void) |
| | Referee a game of Score Four between computer and human.
|
| static void | _usage (void) |
| | Print usage message for Score Four.
|
| int | main (int argc, char *argv[]) |
Variables |
| short * | alpha_ptr_1 |
| | Alpha board ptr.
|
| short * | beta_ptr_1 |
| | Beta board ptr.
|
| short | a_board_1 [NUM_PLAINS] |
| | Alpha board.
|
| short | b_board_1 [NUM_PLAINS] |
| | Beta board.
|
| char | mach_ch_1 |
| | Machine stone - wither 'O' or 'X'.
|
| char | user_ch_1 |
| | User stone - wither 'O' or 'X'.
|
| MOVE | c_move_1 |
| | Move chosen by Alpha.
|
| MOVE | o_move_1 |
| | Move chosen by get_move(). Used by learn().
|
| int | debug_1 |
| int * | coeff_1 |
| | Coefficients.
|
| static int | user_first |
| | Does the user go first?
|
| static int | total_time |
| | Non-zero -> total time used to make moves.
|
| static int | max_time |
| | Maximum time used by heuristic to make moves.
|