#include <minorPiece.h>
Public 型 | |
enum | { DROP_DIM = PTYPE_SIZE*PTYPE_SIZE, ONE_DIM = 2*DROP_DIM*2, DIM = ONE_DIM * EvalStages } |
Static Public メソッド | |
static const Position | isBishopForkPosition (const NumEffectState &state, Player defense, const Position a, const Position b) |
static const Position | isRookForkPosition (const NumEffectState &state, Player defense, const Position a, const Position b) |
static int | bishopIndex (Ptype a, Ptype b) |
static int | rookIndex (Ptype a, Ptype b) |
static void | setUp (const Weights &weights) |
template<Player Defense> | |
static MultiIntPair | evalOne (const NumEffectState &state, const PieceVector &target, std::pair< Position, int > &bishop_drop, std::pair< Position, int > &rook_drop) |
static MultiIntPair | eval (const NumEffectState &state, CArray< std::pair< Position, int >, 2 > &bishop_drop, CArray< std::pair< Position, int >, 2 > &rook_drop) |
Static Public 変数 | |
static CArray< MultiInt, ONE_DIM > | table |
Static Private メソッド | |
static const Position | findDropInLine (const NumEffectState &state, Player defense, const Position a, const Position b, Piece king) |
static bool | testCenter (const NumEffectState &state, Player defense, const Position a, const Position b, Piece king, Position center) |
minorPiece.h の 1644 行で定義されています。
anonymous enum |
minorPiece.h の 1647 行で定義されています。
osl::MultiIntPair osl::eval::ml::BishopRookFork::eval | ( | const NumEffectState & | state, | |
CArray< std::pair< Position, int >, 2 > & | bishop_drop, | |||
CArray< std::pair< Position, int >, 2 > & | rook_drop | |||
) | [static] |
osl::MultiIntPair osl::eval::ml::BishopRookFork::evalOne | ( | const NumEffectState & | state, | |
const PieceVector & | target, | |||
std::pair< Position, int > & | bishop_drop, | |||
std::pair< Position, int > & | rook_drop | |||
) | [inline, static] |
minorPiece.cc の 2540 行で定義されています。
参照先 osl::alt(), osl::BISHOP, bishopIndex(), osl::BLACK, center, isBishopForkPosition(), osl::Piece::isOnBoardByOwner(), osl::Position::isPieceStand(), isRookForkPosition(), osl::Piece::position(), osl::Piece::ptype(), result, osl::ROOK, rookIndex(), table, と osl::WHITE.
参照元 isRookForkPosition().
const osl::Position osl::eval::ml::BishopRookFork::findDropInLine | ( | const NumEffectState & | state, | |
Player | defense, | |||
const Position | a, | |||
const Position | b, | |||
Piece | king | |||
) | [inline, static, private] |
minorPiece.cc の 2460 行で定義されています。
参照先 osl::alt(), osl::Board_Table, osl::BoardTable::getShortOffset(), と osl::Position::isPieceStand().
const osl::Position osl::eval::ml::BishopRookFork::isBishopForkPosition | ( | const NumEffectState & | state, | |
Player | defense, | |||
const Position | a, | |||
const Position | b | |||
) | [inline, static] |
minorPiece.cc の 2494 行で定義されています。
参照先 findDropInLine(), testCenter(), osl::Position::x(), と osl::Position::y().
参照元 evalOne().
const osl::Position osl::eval::ml::BishopRookFork::isRookForkPosition | ( | const NumEffectState & | state, | |
Player | defense, | |||
const Position | a, | |||
const Position | b | |||
) | [inline, static] |
minorPiece.cc の 2520 行で定義されています。
参照先 evalOne(), findDropInLine(), testCenter(), osl::Position::x(), と osl::Position::y().
参照元 evalOne().
void osl::eval::ml::BishopRookFork::setUp | ( | const Weights & | weights | ) | [static] |
minorPiece.cc の 2442 行で定義されています。
参照先 bishopIndex(), osl::NStages, ONE_DIM, osl::PTYPE_SIZE, rookIndex(), table, と osl::eval::ml::Weights::value().
bool osl::eval::ml::BishopRookFork::testCenter | ( | const NumEffectState & | state, | |
Player | defense, | |||
const Position | a, | |||
const Position | b, | |||
Piece | king, | |||
Position | center | |||
) | [inline, static, private] |
minorPiece.cc の 2479 行で定義されています。
参照先 osl::alt(), と osl::Piece::isEmpty().
osl::CArray< osl::MultiInt, 256 *2 *2 > osl::eval::ml::BishopRookFork::table [static] |
minorPiece.h の 1663 行で定義されています。