Belofte version 2.1.9
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

static boardbitmap_t destinationbits (case_t const iCase, int8_t const ri, int8_t const ci)
 
static boardbitmap_t destinationbits_king (case_t const iCase)
 
static boardbitmap_t destinationbits_knight (case_t const iCase)
 
void bPiece_ctor ()
 
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] = {}
 
static case_t belofte::kingarray [64][9] = {}
 
static case_t belofte::knightarray [64][9] = {}
 

Function Documentation

◆ destinationbits()

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

Definition at line 140 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:

◆ destinationbits_king()

static boardbitmap_t destinationbits_king ( case_t const iCase)
static

Definition at line 114 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()

static boardbitmap_t destinationbits_knight ( case_t const iCase)
static

Definition at line 127 of file piece.cpp.

Referenced by bPiece_ctor().

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

◆ bPiece_ctor()

void bPiece_ctor ( )

Definition at line 46 of file piece.cpp.

Referenced by main().

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

◆ bPiece_dtor()

void bPiece_dtor ( )

Definition at line 150 of file piece.cpp.

Referenced by main().

+ Here is the caller graph for this function: