Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
belofte Namespace Reference

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

Functions

bScore realScore (bScore const sc)
 

Variables

static piece_t bPieceIndex [128] = {}
 
static cpiece_t bPieceMapper [tPiece::P_SIZE] = {}
 
static bPiecepieceinstances [tPiece::P_SIZE]
 
static boardbitmap_t kingmoves [64] = {}
 
static boardbitmap_t knightmoves [64] = {}
 

Detailed Description

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

Function Documentation

◆ realScore()

bScore belofte::realScore ( bScore const  sc)

Definition at line 23 of file eval.cpp.

Referenced by bSearchScore::getRealScore(), and bMove::operator>().

+ Here is the caller graph for this function:

Variable Documentation

◆ bPieceIndex

piece_t belofte::bPieceIndex[128] = {}
static

Definition at line 14 of file piece.cpp.

Referenced by bPiece_ctor(), and bPiece::getPiece().

◆ bPieceMapper

cpiece_t belofte::bPieceMapper[tPiece::P_SIZE] = {}
static

Definition at line 15 of file piece.cpp.

Referenced by bPiece_ctor(), and bPiece::getPieceChar().

◆ pieceinstances

bPiece* belofte::pieceinstances[tPiece::P_SIZE]
static

Definition at line 16 of file piece.cpp.

Referenced by bPiece_ctor(), bPiece_dtor(), and bPiece::getPieceClass().

◆ kingmoves

boardbitmap_t belofte::kingmoves[64] = {}
static

Definition at line 17 of file piece.cpp.

Referenced by bPiece_ctor(), bWhitePiece::isAttacked(), and bBlackPiece::isAttacked().

◆ knightmoves

boardbitmap_t belofte::knightmoves[64] = {}
static

Definition at line 18 of file piece.cpp.

Referenced by bPiece_ctor(), bWhitePiece::isAttacked(), and bBlackPiece::isAttacked().