-
Notifications
You must be signed in to change notification settings - Fork 0
/
evaluationfunction.h
61 lines (42 loc) · 1.25 KB
/
evaluationfunction.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
// evaluationfunction.h: interface for the evaluationfunction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EVALUATIONFUNCTION_H__87003B7B_4B9A_471B_8383_72883322FF37__INCLUDED_)
#define AFX_EVALUATIONFUNCTION_H__87003B7B_4B9A_471B_8383_72883322FF37__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class evaluationfunction
{
public:
evaluationfunction();
void copy(BYTE position[][12]);
void kingmovesearch();
void queenmovesearch();
void mobilitysearch();
void mobilityaccount();
void t1account();
void t2account();
void c1account();
void c2account();
void waccount();
void aaccount();
double evaluation(BYTE position[][12],int side);
virtual ~evaluationfunction();
// Generated message map functions
int nside;//0-white,1-black;
BYTE kingmovewhite[12][12];
BYTE queenmovewhite[12][12];
BYTE kingmoveblack[12][12];
BYTE queenmoveblack[12][12];
BYTE curposition[12][12];
BYTE mobility[12][12];
double t1;
double t2;
double c1;
double c2;
double w;
int awhite[4];
int ablack[4];
};
#endif // !defined(AFX_EVALUATIONFUNCTION_H__87003B7B_4B9A_471B_8383_72883322FF37__INCLUDED_)