All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
osl::eval::ml::KingPieceRelative Struct Reference

#include <kingTable.h>

Collaboration diagram for osl::eval::ml::KingPieceRelative:
Collaboration graph
[legend]

Public Types

enum  { DIM }
 
enum  { TABLE_DIM = DIM / 2 }
 
typedef CArray2d< MultiInt,
PTYPE_SIZE, 17 *9 > 
table_t
 

Public Member Functions

template<osl::Player P>
MultiInt evalWithUpdate (const NumEffectState &state, Move moved, MultiInt const &last_value)
 

Static Public Member Functions

static int index (const NumEffectState &, Player owner, const Square position, Square king)
 
static int index (const NumEffectState &state, Player owner, const Square position, bool same_king)
 
static int index (const NumEffectState &state, PtypeO ptypeo, const Square position, bool same_king)
 
static int index (const NumEffectState &state, const Piece piece, bool same_king)
 
static void setUp (const Weights &weights, int stage)
 
static MultiInt eval (const NumEffectState &state)
 
template<Player P>
static MultiInt evalWithUpdate (const NumEffectState &state, Move moved, const MultiInt &last_values)
 

Static Public Attributes

static table_t attack_table
 
static table_t defense_table
 

Detailed Description

Definition at line 21 of file kingTable.h.

Member Typedef Documentation

Definition at line 23 of file kingTable.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DIM 

Definition at line 56 of file kingTable.h.

anonymous enum
Enumerator
TABLE_DIM 

Definition at line 58 of file kingTable.h.

Member Function Documentation

MultiInt osl::eval::ml::KingPieceRelative::eval ( const NumEffectState &  state)
static
template<osl::Player P>
MultiInt osl::eval::ml::KingPieceRelative::evalWithUpdate ( const NumEffectState &  state,
Move  moved,
MultiInt const &  last_value 
)
template<Player P>
template MultiInt osl::eval::ml::KingPieceRelative::evalWithUpdate< WHITE > ( const NumEffectState &  state,
Move  moved,
const MultiInt last_values 
)
static
static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  ,
Player  owner,
const Square  position,
Square  king 
)
inlinestatic
static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
Player  owner,
const Square  position,
bool  same_king 
)
inlinestatic

Definition at line 34 of file kingTable.h.

References osl::alt(), and index().

static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
PtypeO  ptypeo,
const Square  position,
bool  same_king 
)
inlinestatic

Definition at line 43 of file kingTable.h.

References osl::getOwner(), and index().

static int osl::eval::ml::KingPieceRelative::index ( const NumEffectState &  state,
const Piece  piece,
bool  same_king 
)
inlinestatic

Definition at line 50 of file kingTable.h.

References index(), osl::Piece::owner(), and osl::Piece::square().

void osl::eval::ml::KingPieceRelative::setUp ( const Weights weights,
int  stage 
)
static

Definition at line 9 of file kingTable.cc.

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

Member Data Documentation

osl::misc::CArray2d< MultiInt, osl::PTYPE_SIZE, 17 *9 > osl::eval::ml::KingPieceRelative::attack_table
static
osl::misc::CArray2d< MultiInt, osl::PTYPE_SIZE, 17 *9 > osl::eval::ml::KingPieceRelative::defense_table
static

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