io-chess
UCI chess engine
Loading...
Searching...
No Matches
FeatureExtractor Class Reference

#include <FeatureExtractor.hpp>

Public Types

enum  LayerIndices {
  US_PAWN = 0 , US_KNIGHT , US_BISHOP , US_ROOK ,
  US_QUEEN , US_KING , THEM_PAWN , THEM_KNIGHT ,
  THEM_BISHOP , THEM_ROOK , THEM_QUEEN , THEM_KING ,
  US_MOVE_PAWN , US_MOVE_KNIGHT , US_MOVE_BISHOP , US_MOVE_ROOK ,
  US_MOVE_QUEEN , US_MOVE_KING , THEM_MOVE_PAWN , THEM_MOVE_KNIGHT ,
  THEM_MOVE_BISHOP , THEM_MOVE_ROOK , THEM_MOVE_QUEEN , THEM_MOVE_KING ,
  US_THREATS , THEM_THREATS , US_CHECKS , THEM_CHECKS ,
  US_DEFENDED , THEM_DEFENDED , US_KING_DIST , THEM_KING_DIST
}
enum  GlobalIndices {
  US_MAT_PAWN = 0 , THEM_MAT_PAWN , US_MAT_KNIGHT , THEM_MAT_KNIGHT ,
  US_MAT_BISHOP , THEM_MAT_BISHOP , US_MAT_ROOK , THEM_MAT_ROOK ,
  US_MAT_QUEEN , THEM_MAT_QUEEN , US_OO , US_OOO ,
  THEM_OO , THEM_OOO , PHASE
}

Static Public Member Functions

static void fill_input (const chess::Board &board, ChessInput &out)

Static Public Attributes

static constexpr int NUM_SQUARES = 64

Static Private Member Functions

static void init_tables ()

Member Enumeration Documentation

◆ GlobalIndices

Enumerator
US_MAT_PAWN 
THEM_MAT_PAWN 
US_MAT_KNIGHT 
THEM_MAT_KNIGHT 
US_MAT_BISHOP 
THEM_MAT_BISHOP 
US_MAT_ROOK 
THEM_MAT_ROOK 
US_MAT_QUEEN 
THEM_MAT_QUEEN 
US_OO 
US_OOO 
THEM_OO 
THEM_OOO 
PHASE 

◆ LayerIndices

Enumerator
US_PAWN 
US_KNIGHT 
US_BISHOP 
US_ROOK 
US_QUEEN 
US_KING 
THEM_PAWN 
THEM_KNIGHT 
THEM_BISHOP 
THEM_ROOK 
THEM_QUEEN 
THEM_KING 
US_MOVE_PAWN 
US_MOVE_KNIGHT 
US_MOVE_BISHOP 
US_MOVE_ROOK 
US_MOVE_QUEEN 
US_MOVE_KING 
THEM_MOVE_PAWN 
THEM_MOVE_KNIGHT 
THEM_MOVE_BISHOP 
THEM_MOVE_ROOK 
THEM_MOVE_QUEEN 
THEM_MOVE_KING 
US_THREATS 
THEM_THREATS 
US_CHECKS 
THEM_CHECKS 
US_DEFENDED 
THEM_DEFENDED 
US_KING_DIST 
THEM_KING_DIST 

Member Function Documentation

◆ fill_input()

void FeatureExtractor::fill_input ( const chess::Board & board,
ChessInput & out )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_tables()

void FeatureExtractor::init_tables ( )
staticprivate

Member Data Documentation

◆ NUM_SQUARES

int FeatureExtractor::NUM_SQUARES = 64
staticconstexpr

The documentation for this class was generated from the following files: