-
Notifications
You must be signed in to change notification settings - Fork 4
/
eval.h
56 lines (30 loc) · 923 Bytes
/
eval.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
File: eval.h
Created: July 1, 1997
Modified: September 15, 2001
Author: Gunnar Andersson (gunnar@radagast.se)
Contents: The interface to the evaluation function.
*/
#ifndef EVAL_H
#define EVAL_H
#include "search.h"
/* An evaluation indicating a won midgame position where no
player has any moves available. */
#define MIDGAME_WIN 29000
/* An eval so high it must have originated from a midgame win
disturbed by some randomness. */
#define ALMOST_MIDGAME_WIN (MIDGAME_WIN - 4000)
void
toggle_experimental( int use );
int
experimental_eval( void );
void
init_eval( void );
int
static_evaluation( int side_to_move );
#define static_evaluation( side_to_move ) \
( INCREMENT_COUNTER( evaluations ) , \
pattern_evaluation( side_to_move ) )
int
terminal_evaluation( int side_to_move );
#endif /* EVAL_H */