score4.c File Reference

Play a game of Score Four against a human - source file. More...

#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 <time.h>
#include <unistd.h>
#include "aggression.h"
#include "alpha_beta.h"
#include "assert.h"
#include "h_init.h"
#include "heuristic.h"
#include "learn.h"
#include "makemove.h"
#include "pboard.h"
#include "score4.h"
#include "win.h"
#include "win_table.h"

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.


Detailed Description

Play a game of Score Four against a human - source file.

Author:
Stephen A. Broeker
Copyright (c) 1989 Stephen A. Broeker All Rights Reserved.

Function Documentation

int main int  argc,
char *  argv[]
 


Variable Documentation

int debug_1
 


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