#include <minorPiece.h>
Public Member Functions | |
template<osl::Player P> | |
bool | canRetreat (const osl::state::NumEffectState &state, const osl::Piece silver) |
Static Public Member Functions | |
static MultiInt | eval (const NumEffectState &state) |
Static Protected Member Functions | |
template<Player P> | |
static int | indexRetreat (Square pos) |
template<Player P> | |
static bool | canRetreat (const NumEffectState &state, const Piece silver) |
template<Player P> | |
static MultiInt | evalOne (const NumEffectState &state, const Piece silver, const CArray< Square, 2 > &kings) |
Static Protected Attributes | |
static CArray< MultiInt, 153 > | head_table |
static CArray< MultiInt, 9 > | retreat_table |
Definition at line 542 of file minorPiece.h.
bool osl::eval::ml::SilverFeatures::canRetreat | ( | const osl::state::NumEffectState & | state, |
const osl::Piece | silver | ||
) | [inline] |
Definition at line 335 of file minorPiece.cc.
References osl::alt(), osl::BLACK, osl::Piece::canMoveOn(), osl::state::NumEffectState::hasEffectAt(), osl::Piece::isOnBoard(), osl::Piece::isPromoted(), osl::Piece::owner(), osl::state::SimpleState::pieceAt(), osl::Piece::square(), osl::WHITE, and osl::Square::y().
static bool osl::eval::ml::SilverFeatures::canRetreat | ( | const NumEffectState & | state, |
const Piece | silver | ||
) | [static, protected] |
osl::MultiInt osl::eval::ml::SilverFeatures::eval | ( | const NumEffectState & | state | ) | [static] |
Definition at line 312 of file minorPiece.cc.
References osl::BLACK, osl::PtypeTraits< SILVER >::indexMin, osl::Piece::isOnBoard(), osl::Piece::isPromoted(), 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::SilverFeatures::evalOne | ( | const NumEffectState & | state, |
const Piece | silver, | ||
const CArray< Square, 2 > & | kings | ||
) | [inline, static, protected] |
Definition at line 556 of file minorPiece.h.
References osl::alt(), osl::BLACK, head_table, osl::Piece::isEmpty(), osl::Square::isOnBoard(), osl::PAWN, result, retreat_table, osl::Piece::square(), osl::Square::x(), and osl::Square::y().
static int osl::eval::ml::SilverFeatures::indexRetreat | ( | Square | pos | ) | [inline, static, protected] |
Definition at line 548 of file minorPiece.h.
References osl::BLACK, and osl::Square::y().
osl::misc::CArray< osl::MultiInt, 153 > osl::eval::ml::SilverFeatures::head_table [static, protected] |
Definition at line 584 of file minorPiece.h.
Referenced by evalOne().
osl::misc::CArray< osl::MultiInt, 9 > osl::eval::ml::SilverFeatures::retreat_table [static, protected] |
Definition at line 585 of file minorPiece.h.
Referenced by evalOne().