-
Notifications
You must be signed in to change notification settings - Fork 0
/
EvaluationValue.hpp
82 lines (77 loc) · 1.98 KB
/
EvaluationValue.hpp
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
// 評価値のデーターが入る
/*メモ
駒の強さ 10通り
王とその他2駒(25*25*10*10*25) 1562500通り
*/
#define OU (10000000)
int evaluation_value_of_relation[25][20][25][20][25];
int evaluation_value_of_piece[2][10][25] = {{
// 歩
{-100, -100, -100, -100, -100,
100, 105, 105, 105, 105,
100, 100, 100, 100, 100,
102, 100, 100, 100, 100,
75, 75, 75, 75, 75},
// と金
{ 600, 620, 620, 620, 600,
620, 640, 640, 640, 620,
620, 640, 700, 640, 620,
600, 640, 640, 640, 600,
600, 600, 600, 600, 600},
// 飛車
{1200, 1200, 1200, 1200, 1200,
1200, 1200, 1200, 1200, 1200,
1200, 1200, 1300, 1200, 1200,
1200, 1200, 1200, 1200, 1200,
1200, 1200, 1200, 1200, 1200},
// 竜王
{1300, 1400, 1400, 1400, 1300,
1400, 1400, 1400, 1400, 1400,
1400, 1400, 1500, 1400, 1400,
1400, 1400, 1400, 1400, 1400,
1300, 1400, 1400, 1400, 1400},
// 角
{ 700, 700, 700, 700, 700,
700, 800, 800, 800, 700,
700, 800, 860, 800, 700,
700, 800, 800, 800, 700,
700, 700, 700, 700, 700},
// 馬
{1000, 1000, 1000, 1000, 1000,
1000, 1050, 1050, 1050, 1000,
1000, 1050, 1100, 1050, 1000,
1000 ,1050, 1050, 1050, 1000,
1000 ,1000, 1000, 1000, 1009},
// 銀
{ 400, 500, 500, 500, 400,
600, 700, 700, 700, 600,
600, 700, 700, 700, 600,
600, 700, 700, 700, 600,
450, 550, 550, 550, 450},
// 成銀
{ 650, 670, 670, 670, 650,
670, 690, 690, 690, 670,
670, 690, 750, 690, 670,
670, 690, 690, 690, 670,
670, 670, 670, 670, 670},
// 金
{ 700, 700, 700, 700, 700,
740, 740, 740, 740, 740,
750, 750, 800, 750, 750,
750, 750, 750, 750, 750,
750, 750, 750, 750, 750},
// 王
{OU, OU, OU, OU, OU,
OU, OU, OU, OU, OU,
OU, OU, OU, OU, OU,
OU, OU, OU, OU, OU,
OU, OU, OU, OU, OU}
}};
#undef OU
int evaluation_value_of_hand[5][2] = {
{105, 150},
{1200, 2200},
{700, 1300},
{600, 1200},
{700, 1400}
};