My Project
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
osl::eval::ml::GoldFeatures Class Reference

#include <minorPiece.h>

Inheritance diagram for osl::eval::ml::GoldFeatures:
osl::eval::ml::GoldKnightKingRelative osl::eval::ml::GoldRetreat osl::eval::ml::GoldSideMove

Static Public Member Functions

static MultiInt eval (const NumEffectState &state)
 

Static Protected Member Functions

template<Player P>
static int indexRetreat (Square pos)
 
static int indexSideX (Square pos)
 
template<Player P>
static int indexSideY (Square pos)
 
template<Player P>
static bool canRetreat (const NumEffectState &state, const Piece gold)
 
template<Player P>
static bool canMoveToSide (const NumEffectState &state, const Piece gold)
 
template<Player P>
static MultiInt evalOne (const NumEffectState &state, const Piece gold, const CArray< Square, 2 > &kings)
 

Static Protected Attributes

static CArray< MultiInt, 153 > knight_table
 
static CArray< MultiInt, 9 > retreat_table
 
static CArray< MultiInt, 14 > side_table
 

Detailed Description

Definition at line 599 of file minorPiece.h.

Member Function Documentation

◆ canMoveToSide()

template<Player P>
static bool osl::eval::ml::GoldFeatures::canMoveToSide ( const NumEffectState state,
const Piece  gold 
)
inlinestaticprotected

◆ canRetreat()

template<osl::Player P>
bool osl::eval::ml::GoldFeatures::canRetreat ( const NumEffectState state,
const Piece  gold 
)
inlinestaticprotected

◆ eval()

osl::MultiInt osl::eval::ml::GoldFeatures::eval ( const NumEffectState state)
static

◆ evalOne()

template<Player P>
static MultiInt osl::eval::ml::GoldFeatures::evalOne ( const NumEffectState state,
const Piece  gold,
const CArray< Square, 2 > &  kings 
)
inlinestaticprotected

◆ indexRetreat()

template<Player P>
static int osl::eval::ml::GoldFeatures::indexRetreat ( Square  pos)
inlinestaticprotected

Definition at line 605 of file minorPiece.h.

References osl::BLACK, and osl::Square::y().

◆ indexSideX()

static int osl::eval::ml::GoldFeatures::indexSideX ( Square  pos)
inlinestaticprotected

Definition at line 609 of file minorPiece.h.

References osl::Square::x().

Referenced by evalOne().

◆ indexSideY()

template<Player P>
static int osl::eval::ml::GoldFeatures::indexSideY ( Square  pos)
inlinestaticprotected

Definition at line 614 of file minorPiece.h.

References osl::BLACK, and osl::Square::y().

Member Data Documentation

◆ knight_table

osl::CArray< osl::MultiInt, 153 > osl::eval::ml::GoldFeatures::knight_table
staticprotected

Definition at line 670 of file minorPiece.h.

Referenced by evalOne().

◆ retreat_table

osl::CArray< osl::MultiInt, 9 > osl::eval::ml::GoldFeatures::retreat_table
staticprotected

Definition at line 671 of file minorPiece.h.

Referenced by evalOne().

◆ side_table

osl::CArray< osl::MultiInt, 14 > osl::eval::ml::GoldFeatures::side_table
staticprotected

Definition at line 672 of file minorPiece.h.

Referenced by evalOne().


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