Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
eval.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  belofte
 Allow index mapper for char values of piece into int in 1-12 range to reduce space and easy initialisation.
 
namespace  belofteeval
 

Variables

static uint8_t whitefields [64]
 
bWhiteKing const * belofte::cWhiteKingClass = nullptr
 
bBlackKing const * belofte::cBlackKingClass = nullptr
 
bScore belofteeval::piecevalues []
 
bScore belofteeval::centerplayvalues []
 
bScore belofteeval::piecevalues_movepenalty []
 
static bScore roundedpiecevalues [tPiece::P_SIZE]
 
static bScore positionvalues [tPiece::P_SIZE][64]
 
static bScore endgamevalues [tPiece::P_SIZE][64]
 

Variable Documentation

◆ whitefields

uint8_t whitefields[64]
static
Initial value:
= {
1, 2, 1, 2, 1, 2, 1, 2,
2, 1, 2, 1, 2, 1, 2, 1,
1, 2, 1, 2, 1, 2, 1, 2,
2, 1, 2, 1, 2, 1, 2, 1,
1, 2, 1, 2, 1, 2, 1, 2,
2, 1, 2, 1, 2, 1, 2, 1,
1, 2, 1, 2, 1, 2, 1, 2,
2, 1, 2, 1, 2, 1, 2, 1
}
Todo
rename to fieldcolours

Definition at line 11 of file eval.cpp.

◆ roundedpiecevalues

bScore roundedpiecevalues[tPiece::P_SIZE]
static
Initial value:
= {
0, 0, 100, 300, 300, 500, 900
}

Definition at line 223 of file eval.cpp.

Referenced by bPositionEvaluation::bPositionEvaluation(), and PosEvalPiecesOnly::getEvaluation().

◆ positionvalues

bScore positionvalues[tPiece::P_SIZE][64]
static

◆ endgamevalues

bScore endgamevalues[tPiece::P_SIZE][64]
static