My Project
eval.h
Go to the documentation of this file.
1
11#ifndef EDAX_EVAL_H
12#define EDAX_EVAL_H
13
18typedef struct Eval {
19 int *feature;
20 int player;
22
23struct Board;
24struct Move;
25
26extern short ***EVAL_WEIGHT;
27
28
29/* function declaration */
30void eval_open(const char*);
31void eval_close(void);
32void eval_init(Eval*);
33void eval_free(Eval*);
34void eval_set(Eval*, const struct Board*);
35void eval_update(Eval*, const struct Move*);
36void eval_restore(Eval*, const struct Move*);
37void eval_pass(Eval*);
38double eval_sigma(const int, const int, const int);
39
40#endif
41
void eval_close(void)
Free global resources allocated to the evaluation function.
Definition: eval.c:494
void eval_free(Eval *)
Free resources used by the evaluation function.
Definition: eval.c:519
void eval_pass(Eval *)
Update/Restore the features after a passing move.
Definition: eval.c:824
void eval_update(Eval *, const struct Move *)
void eval_set(Eval *, const struct Board *)
void eval_init(Eval *)
Initialize a new evaluation function.
Definition: eval.c:509
double eval_sigma(const int, const int, const int)
Compute the error-type of the evaluation function according to the depths.
Definition: eval.c:843
void eval_restore(Eval *, const struct Move *)
short *** EVAL_WEIGHT
Definition: eval.c:231
void eval_open(const char *)
Load the evaluation function features' weights.
Definition: eval.c:265
Definition: board.h:26
evaluation function
Definition: eval.h:18
int player
Definition: eval.h:20
int * feature
Definition: eval.h:19
Definition: move.h:20