#include <minorPiece.h>
Public Member Functions | |
template<osl::Player P> | |
bool | canRetreat (const osl::state::NumEffectState &state, const osl::Piece gold) |
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 |
Definition at line 602 of file minorPiece.h.
static bool osl::eval::ml::GoldFeatures::canMoveToSide | ( | const NumEffectState & | state, |
const Piece | gold | ||
) | [inline, static, protected] |
Definition at line 625 of file minorPiece.h.
References osl::alt(), osl::Square::isOnBoard(), osl::Piece::owner(), and osl::Piece::square().
bool osl::eval::ml::GoldFeatures::canRetreat | ( | const osl::state::NumEffectState & | state, |
const osl::Piece | gold | ||
) | [inline] |
Definition at line 423 of file minorPiece.cc.
References osl::alt(), osl::BLACK, osl::state::NumEffectState::hasEffectAt(), osl::Piece::isOnBoard(), osl::Piece::isOnBoardByOwner(), osl::Piece::owner(), osl::state::SimpleState::pieceAt(), osl::Piece::square(), osl::WHITE, and osl::Square::y().
static bool osl::eval::ml::GoldFeatures::canRetreat | ( | const NumEffectState & | state, |
const Piece | gold | ||
) | [static, protected] |
osl::MultiInt osl::eval::ml::GoldFeatures::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 397 of file minorPiece.cc.
References osl::BLACK, osl::PtypeTraits< GOLD >::indexMin, osl::Piece::isOnBoard(), osl::Piece::owner(), result, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::debugInfo(), osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
static MultiInt osl::eval::ml::GoldFeatures::evalOne | ( | const NumEffectState & | state, |
const Piece | gold, | ||
const CArray< Square, 2 > & | kings | ||
) | [inline, static, protected] |
Definition at line 643 of file minorPiece.h.
References osl::BLACK, indexSideX(), knight_table, osl::Square::neighbor(), osl::Piece::owner(), result, retreat_table, side_table, osl::Piece::square(), osl::UUL, osl::UUR, osl::Square::x(), and osl::Square::y().
static int osl::eval::ml::GoldFeatures::indexRetreat | ( | Square | pos | ) | [inline, static, protected] |
Definition at line 608 of file minorPiece.h.
References osl::BLACK, and osl::Square::y().
static int osl::eval::ml::GoldFeatures::indexSideX | ( | Square | pos | ) | [inline, static, protected] |
static int osl::eval::ml::GoldFeatures::indexSideY | ( | Square | pos | ) | [inline, static, protected] |
Definition at line 617 of file minorPiece.h.
References osl::BLACK, and osl::Square::y().
osl::misc::CArray< osl::MultiInt, 153 > osl::eval::ml::GoldFeatures::knight_table [static, protected] |
Definition at line 673 of file minorPiece.h.
Referenced by evalOne().
osl::misc::CArray< osl::MultiInt, 9 > osl::eval::ml::GoldFeatures::retreat_table [static, protected] |
Definition at line 674 of file minorPiece.h.
Referenced by evalOne().
osl::misc::CArray< osl::MultiInt, 14 > osl::eval::ml::GoldFeatures::side_table [static, protected] |
Definition at line 675 of file minorPiece.h.
Referenced by evalOne().