[go: up one dir, main page]

Menu

[r225]: / tags / 0.3.0 / eval.h  Maximize  Restore  History

Download this file

31 lines (24 with data), 756 Bytes

 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
#ifndef EVAL_H
#define EVAL_H
#include "position.h"
// global properties (declared in .cpp)
extern int queenWeight;
extern int rookWeight;
extern int bishopWeight;
extern int knightWeight;
extern int pawnWeight;
extern int kingMobilityFactor;
extern int queenMobilityFactor;
extern int rookMobilityFactor;
extern int bishopMobilityFactor;
extern int knightMobilityFactor;
extern int pawnMobilityFactor;
extern int pawnStructureFactor;
// functions
Value EvaluateBoard(Position& b);
Value EvaluateBoard(Position& b, Color turn);
Value EvaluateBoard(Position& b, Color turn, int depth);
Value EvaluateStaticScore(Position& p);
Value EvaluateMobilityScore(Position& p);
Value EvaluatePawnHandicapScore(Position& p);
#endif