-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevaluate.h
53 lines (41 loc) · 820 Bytes
/
evaluate.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
#pragma once
#ifndef EVALUATE_H
#define EVALUATE_H
#include "types.h"
#include "utils.h"
#include "pawns.h"
#include "material.h"
#include "parameter.h"
#include "utils.h"
#include "threads.h"
struct endgame_info {
bool evaluated_fence;
bool is_fence;
};
struct einfo {
pawn_entry* pe;
material_entry* me;
endgame_info endgame;
U64 pawn_holes[2];
U64 all_pieces;
U64 pieces[2];
U64 weak_pawns[2];
U64 empty;
U64 kmask[2];
U64 kattk_points[2][5];
U64 piece_attacks[2][5];
bool bishop_colors[2][2];
U64 central_pawns[2];
U64 queen_sqs[2];
U64 white_pawns[2];
U64 black_pawns[2];
bool closed_center;
unsigned kattackers[2][5];
};
namespace eval {
float evaluate(const position& p, const Searchthread& t, const float& lazy_margin);
}
namespace eval {
extern parameters Parameters;
}
#endif