#include <minorPiece.h>
Public Types | |
enum | { ONE_DIM = 5*2, DIM = ONE_DIM * EvalStages } |
Static Public Member Functions | |
static void | setUp (const Weights &weights) |
static MultiIntPair | eval (const NumEffectState &state, CArray< std::pair< Square, int >, 2 > &silver_drop) |
Static Public Attributes | |
static CArray< MultiInt, ONE_DIM > | table |
Static Private Member Functions | |
static std::pair< int, int > | matchRook (const NumEffectState &state, Piece rook, const CArray< bool, 2 > &has_silver, Square &silver_drop) |
static std::pair< int, int > | matchGold (const NumEffectState &state, Piece gold, const CArray< bool, 2 > &has_silver, Square &silver_drop) |
Definition at line 1626 of file minorPiece.h.
anonymous enum |
Definition at line 1635 of file minorPiece.h.
osl::MultiIntPair osl::eval::ml::SilverFork::eval | ( | const NumEffectState & | state, |
CArray< std::pair< Square, int >, 2 > & | silver_drop | ||
) | [static] |
Definition at line 2369 of file minorPiece.cc.
References osl::BLACK, osl::PtypeTraits< GOLD >::indexMin, osl::PtypeTraits< ROOK >::indexMin, result, osl::SILVER, and osl::WHITE.
Referenced by osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
std::pair< int, int > osl::eval::ml::SilverFork::matchGold | ( | const NumEffectState & | state, |
Piece | gold, | ||
const CArray< bool, 2 > & | has_silver, | ||
Square & | silver_drop | ||
) | [inline, static, private] |
Definition at line 2333 of file minorPiece.cc.
References osl::alt(), osl::BLACK, osl::Board_Table, osl::Piece::canMoveOn(), osl::Square::canPromote(), osl::D, osl::BoardTable::getOffset(), osl::GOLD, osl::Piece::isEdge(), osl::Piece::isOnBoardByOwner(), osl::Square::isPieceStand(), osl::L, osl::Piece::owner(), osl::playerToMul(), osl::Piece::ptype(), osl::R, osl::ROOK, and osl::Piece::square().
std::pair< int, int > osl::eval::ml::SilverFork::matchRook | ( | const NumEffectState & | state, |
Piece | rook, | ||
const CArray< bool, 2 > & | has_silver, | ||
Square & | silver_drop | ||
) | [inline, static, private] |
Definition at line 2303 of file minorPiece.cc.
References osl::alt(), osl::Board_Table, osl::Square::canPromote(), osl::BoardTable::getOffset(), osl::GOLD, osl::Piece::isOnBoardByOwner(), osl::Square::isPieceStand(), osl::Piece::isPromoted(), osl::Piece::owner(), osl::playerToMul(), osl::Piece::ptype(), osl::ROOK, osl::Piece::square(), osl::UL, and osl::UR.
void osl::eval::ml::SilverFork::setUp | ( | const Weights & | weights | ) | [static] |
Definition at line 2432 of file minorPiece.cc.
References osl::NStages, and osl::eval::ml::Weights::value().
osl::CArray< osl::MultiInt, 5 *2 > osl::eval::ml::SilverFork::table [static] |
Definition at line 1639 of file minorPiece.h.