-
Notifications
You must be signed in to change notification settings - Fork 4
/
midgame.h
81 lines (45 loc) · 1.1 KB
/
midgame.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
File: midgame.h
Created: July 1, 1998
Modified: August 1, 2002
Author: Gunnar Andersson (gunnar@radagast.se)
Contents: The midgame search driver.
*/
#ifndef MIDGAME_H
#define MIDGAME_H
#include "constant.h"
#include "search.h"
#ifdef __cplusplus
extern "C" {
#endif
#define INFINITE_DEPTH 60
/* The minimum depth to perform Multi-ProbCut */
#define MIN_MPC_DEPTH 9
void
setup_midgame( void );
void
toggle_midgame_hash_usage( int allow_read, int allow_write );
void
clear_midgame_abort( void );
int
is_midgame_abort( void );
void
set_midgame_abort( void );
void
toggle_midgame_abort_check( int toggle );
void
calculate_perturbation( void );
void
set_perturbation( int amplitude );
void
toggle_perturbation_usage( int toggle );
int
tree_search( int level, int max_depth, int side_to_move, int alpha,
int beta, int allow_hash, int allow_mpc, int void_legal );
int
middle_game( int side_to_move, int max_depth,
int update_evals, EvaluationType *eval_info );
#ifdef __cplusplus
}
#endif
#endif /* MIDGAME_H */