#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <fcntl.h>
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "alpha_beta.h"
#include "aggression.h"
#include "assert.h"
#include "heuristic.h"
#include "makemove.h"
#include "polylearn.h"
#include "tournament_A.h"
#include "win.h"
#include "score4.h"
Defines | |
| #define | BUF_SIZE 512 |
| Buffer size. | |
Functions | |
| static void | _init (int argc, char *argv[]) |
| Perform initialization for Polylearn. | |
| static void | _usage (void) |
| Print usage message for Polylearn. | |
| int | play (int alpha_first) |
| Play a game between Alpha and Beta. | |
| int | main (int argc, char *argv[]) |
Variables | |
| 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 |
| Is the debug flag on? | |
| int * | coeff_1 |
| Coefficients. | |
| int | a_coeff [NUM_COEF] |
| Alpha coefficients. | |
| int | b_coeff [NUM_COEF] |
| Beta coefficients. | |
| short * | alpha_ptr_1 |
| Alpha board ptr. | |
| short * | beta_ptr_1 |
| Beta board ptr. | |
| static int | session |
| Maximum of PLAYOFF_LEN sessions. | |
| static int | n_flag |
| Show games but do not play them? | |
|
||||||||||||
|
|
1.4.5