#include <kingTable.h>
Public Types | |
enum | { DIM } |
enum | { TABLE_DIM = DIM / 2 } |
typedef CArray2d< MultiInt, PTYPE_SIZE, 17 *9 > | table_t |
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 |
Definition at line 21 of file kingTable.h.
typedef CArray2d<MultiInt, PTYPE_SIZE, 17 * 9> osl::eval::ml::KingPieceRelative::table_t |
Definition at line 23 of file kingTable.h.
anonymous enum |
Definition at line 56 of file kingTable.h.
anonymous enum |
Definition at line 58 of file kingTable.h.
MultiInt osl::eval::ml::KingPieceRelative::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 28 of file kingTable.cc.
References osl::BLACK, osl::Piece::isOnBoard(), osl::Piece::owner(), osl::Piece::ptype(), osl::Piece::SIZE, osl::Piece::square(), and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval().
template MultiInt osl::eval::ml::KingPieceRelative::evalWithUpdate< WHITE > | ( | const NumEffectState & | state, |
Move | moved, | ||
const MultiInt & | last_values | ||
) | [static] |
Definition at line 60 of file kingTable.cc.
References osl::BLACK, osl::captured(), osl::Move::capturePtype(), osl::Move::capturePtypeO(), osl::Move::from(), osl::Move::isDrop(), osl::Move::isPass(), osl::KING, osl::Move::oldPtype(), osl::Move::oldPtypeO(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Move::ptypeO(), and osl::Move::to().
static int osl::eval::ml::KingPieceRelative::index | ( | const NumEffectState & | , |
Player | owner, | ||
const Square | position, | ||
Square | king | ||
) | [inline, static] |
Definition at line 25 of file kingTable.h.
References osl::BLACK, osl::Square::x(), and osl::Square::y().
Referenced by osl::eval::ml::King25EffectBoth::eval(), osl::eval::ml::King25EffectAttack::eval(), osl::eval::ml::King25EffectDefense::eval(), osl::eval::ml::King25EffectYAttack::eval(), osl::eval::ml::King25EffectYDefense::eval(), osl::eval::ml::King25EffectY::eval(), osl::eval::ml::King25Effect2::eval(), osl::eval::ml::King25EffectY2::eval(), osl::eval::ml::King25EffectSupported::eval(), osl::eval::ml::King25EffectSupportedY::eval(), index(), and osl::eval::ml::KingPieceRelativeNoSupport::index().
static int osl::eval::ml::KingPieceRelative::index | ( | const NumEffectState & | state, |
Player | owner, | ||
const Square | position, | ||
bool | same_king | ||
) | [inline, static] |
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 | ||
) | [inline, static] |
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 | ||
) | [inline, static] |
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().
osl::misc::CArray2d< MultiInt, osl::PTYPE_SIZE, 17 *9 > osl::eval::ml::KingPieceRelative::attack_table [static] |
Definition at line 24 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectBoth::eval(), and osl::eval::ml::King25EffectY::eval().
osl::misc::CArray2d< MultiInt, osl::PTYPE_SIZE, 17 *9 > osl::eval::ml::KingPieceRelative::defense_table [static] |
Definition at line 24 of file kingTable.h.
Referenced by osl::eval::ml::King25EffectBoth::eval(), and osl::eval::ml::King25EffectY::eval().