All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
osl::eval::ml::PiecePairKing Class Reference

#include <piecePairKing.h>

List of all members.

Public Types

enum  { ONE_DIM = 1488375, DIM = ONE_DIM }

Static Public Member Functions

static void setUp (const Weights &weights)
static CArray< int, 2 > eval (const NumEffectState &)
template<Player P>
static void evalWithUpdateBang (const NumEffectState &state, Move moved, CArray< int, 2 > &last_value)
template<Player King>
static int evalOne (const NumEffectState &)

Static Private Member Functions

template<Player King>
static int add (const NumEffectState &state, Square to, Ptype ptype)
template<Player King>
static int sub (const NumEffectState &state, Square from, Ptype ptype)
template<Player King>
static int addSub (const NumEffectState &state, Square to, Ptype ptype, Square from)
static int composeIndex (int king, int i0, int i1)
static int indexWhite (Square p)
static int indexKing (Player owner, Square king, bool &flipx)
template<bool FlipX>
static int indexPiece (Player owner, Square position, Ptype ptype)

Static Private Attributes

static osl::CArray< int16_t,
ONE_DIM
table

Detailed Description

Definition at line 15 of file piecePairKing.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ONE_DIM 
DIM 

Definition at line 18 of file piecePairKing.h.


Member Function Documentation

template<osl::Player King>
int osl::eval::ml::PiecePairKing::add ( const NumEffectState &  state,
Square  to,
Ptype  ptype 
) [static, private]
template<osl::Player King>
int osl::eval::ml::PiecePairKing::addSub ( const NumEffectState &  state,
Square  to,
Ptype  ptype,
Square  from 
) [static, private]
static int osl::eval::ml::PiecePairKing::composeIndex ( int  king,
int  i0,
int  i1 
) [inline, static, private]

Definition at line 37 of file piecePairKing.h.

osl::CArray< int, 2 > osl::eval::ml::PiecePairKing::eval ( const NumEffectState &  state) [static]

Definition at line 30 of file piecePairKing.cc.

References osl::BLACK, and osl::WHITE.

Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().

template<osl::Player King>
int osl::eval::ml::PiecePairKing::evalOne ( const NumEffectState &  state) [static]
template<osl::Player P>
template void osl::eval::ml::PiecePairKing::evalWithUpdateBang< WHITE > ( const NumEffectState &  state,
Move  moved,
CArray< int, 2 > &  last_value 
) [static]
static int osl::eval::ml::PiecePairKing::indexKing ( Player  owner,
Square  king,
bool &  flipx 
) [inline, static, private]
template<bool FlipX>
static int osl::eval::ml::PiecePairKing::indexPiece ( Player  owner,
Square  position,
Ptype  ptype 
) [inline, static, private]
static int osl::eval::ml::PiecePairKing::indexWhite ( Square  p) [inline, static, private]

Definition at line 41 of file piecePairKing.h.

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

Referenced by indexPiece().

void osl::eval::ml::PiecePairKing::setUp ( const Weights weights) [static]
template<osl::Player King>
int osl::eval::ml::PiecePairKing::sub ( const NumEffectState &  state,
Square  from,
Ptype  ptype 
) [static, private]

Member Data Documentation

osl::CArray< osl::int16_t, 1488375 > osl::eval::ml::PiecePairKing::table [static, private]

Definition at line 70 of file piecePairKing.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines