Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
piece.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.
 

Functions

void bPiece_ctor ()
 
boardbitmap_t destinationbits_king (case_t const iCase)
 
boardbitmap_t destinationbits_knight (case_t const iCase)
 
boardbitmap_t destinationbits (case_t const iCase, int8_t const ri, int8_t const ci)
 
void bPiece_dtor ()
 

Variables

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

Function Documentation

◆ bPiece_ctor()

void bPiece_ctor ( )

Definition at line 34 of file piece.cpp.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ destinationbits_king()

boardbitmap_t destinationbits_king ( case_t const  iCase)

Definition at line 84 of file piece.cpp.

Referenced by bPiece_ctor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ destinationbits_knight()

boardbitmap_t destinationbits_knight ( case_t const  iCase)

Definition at line 97 of file piece.cpp.

Referenced by bPiece_ctor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ destinationbits()

boardbitmap_t destinationbits ( case_t const  iCase,
int8_t const  ri,
int8_t const  ci 
)

Definition at line 110 of file piece.cpp.

Referenced by destinationbits_king(), and destinationbits_knight().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bPiece_dtor()

void bPiece_dtor ( )

Definition at line 120 of file piece.cpp.

Referenced by main().

+ Here is the caller graph for this function: