eval.h
Go to the documentation of this file.
1 
11 #ifndef EDAX_EVAL_H
12 #define EDAX_EVAL_H
13 
18 typedef struct Eval {
19  int *feature;
20  int player;
21 } Eval;
22 
23 struct Board;
24 struct Move;
25 
26 extern short ***EVAL_WEIGHT;
27 
28 
29 /* function declaration */
30 void eval_open(const char*);
31 void eval_close(void);
32 void eval_init(Eval*);
33 void eval_free(Eval*);
34 void eval_set(Eval*, const struct Board*);
35 void eval_update(Eval*, const struct Move*);
36 void eval_restore(Eval*, const struct Move*);
37 void eval_pass(Eval*);
38 double eval_sigma(const int, const int, const int);
39 
40 #endif
41 
void eval_set(Eval *, const struct Board *)
struct Eval Eval
evaluation function
void eval_pass(Eval *)
Update/Restore the features after a passing move.
Definition: eval.c:824
void eval_update(Eval *, const struct Move *)
Definition: move.h:20
Definition: board.h:26
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_init(Eval *)
Initialize a new evaluation function.
Definition: eval.c:509
evaluation function
Definition: eval.h:18
short *** EVAL_WEIGHT
Definition: eval.c:231
int player
Definition: eval.h:20
void eval_open(const char *)
Load the evaluation function features' weights.
Definition: eval.c:265
int * feature
Definition: eval.h:19
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_restore(Eval *, const struct Move *)