My Project
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
osl::eval::ml::KingMobility Class Reference

#include <kingTable.h>

Public Types

enum  { ONE_DIM = 3240 , DIM = ONE_DIM * EvalStages }
 

Public Member Functions

template<osl::Player P>
osl::MultiInt evalOne (const NumEffectState &state)
 

Static Public Member Functions

static void setUp (const Weights &weights)
 
static MultiInt eval (const NumEffectState &state)
 

Static Private Member Functions

template<Player P>
static MultiInt evalOne (const NumEffectState &state)
 
template<Direction Dir>
static int mobilityDir (Square king, Square target)
 

Static Private Attributes

static CArray< MultiInt, 3240 > table
 
static CArray< MultiInt, 3240 > rook_table
 
static CArray< MultiInt, 3240 > bishop_table
 
static CArray< MultiInt, 3240 > rook_bishop_table
 

Friends

class KingMobilityWithRook
 
class KingMobilityWithBishop
 

Detailed Description

Definition at line 723 of file kingTable.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ONE_DIM 
DIM 

Definition at line 728 of file kingTable.h.

Member Function Documentation

◆ eval()

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

◆ evalOne() [1/2]

template<osl::Player P>
osl::MultiInt osl::eval::ml::KingMobility::evalOne ( const NumEffectState state)

◆ evalOne() [2/2]

template<Player P>
static MultiInt osl::eval::ml::KingMobility::evalOne ( const NumEffectState state)
staticprivate

◆ mobilityDir()

template<Direction Dir>
static int osl::eval::ml::KingMobility::mobilityDir ( Square  king,
Square  target 
)
inlinestaticprivate

Definition at line 735 of file kingTable.h.

References osl::L, osl::R, osl::U, osl::UL, osl::UR, osl::Square::x(), and osl::Square::y().

◆ setUp()

void osl::eval::ml::KingMobility::setUp ( const Weights weights)
static

Definition at line 1358 of file kingTable.cc.

References osl::NStages, and osl::eval::ml::Weights::value().

Friends And Related Symbol Documentation

◆ KingMobilityWithBishop

friend class KingMobilityWithBishop
friend

Definition at line 726 of file kingTable.h.

◆ KingMobilityWithRook

friend class KingMobilityWithRook
friend

Definition at line 725 of file kingTable.h.

Member Data Documentation

◆ bishop_table

osl::CArray< MultiInt, 3240 > osl::eval::ml::KingMobility::bishop_table
staticprivate

Definition at line 744 of file kingTable.h.

Referenced by osl::eval::ml::KingMobilityWithBishop::setUp().

◆ rook_bishop_table

osl::CArray< MultiInt, 3240 > osl::eval::ml::KingMobility::rook_bishop_table
staticprivate

Definition at line 745 of file kingTable.h.

Referenced by osl::eval::ml::KingMobilityWithBishop::setUp().

◆ rook_table

osl::CArray< MultiInt, 3240 > osl::eval::ml::KingMobility::rook_table
staticprivate

◆ table

osl::CArray< MultiInt, 3240 > osl::eval::ml::KingMobility::table
staticprivate

Definition at line 742 of file kingTable.h.

Referenced by osl::eval::ml::KingMobilityWithBishop::setUp().


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