#include <minorPiece.h>
Public Types | |
enum | { DROP_DIM = PTYPE_SIZE*PTYPE_SIZE, ONE_DIM = 2*DROP_DIM*2, DIM = ONE_DIM * EvalStages } |
Public Member Functions | |
template<osl::Player Defense> | |
osl::MultiIntPair | evalOne (const NumEffectState &state, const PieceVector &target, std::pair< Square, int > &bishop_drop, std::pair< Square, int > &rook_drop) |
Static Public Member Functions | |
static const Square | isBishopForkSquare (const NumEffectState &state, Player defense, const Square a, const Square b, bool maybe_empty=false) |
static const Square | isRookForkSquare (const NumEffectState &state, Player defense, const Square a, const Square 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< Square, int > &bishop_drop, std::pair< Square, int > &rook_drop) |
static MultiIntPair | eval (const NumEffectState &state, CArray< std::pair< Square, int >, 2 > &bishop_drop, CArray< std::pair< Square, int >, 2 > &rook_drop) |
Static Public Attributes | |
static CArray< MultiInt, ONE_DIM > | table |
Static Private Member Functions | |
static const Square | findDropInLine (const NumEffectState &state, Player defense, const Square a, const Square b, Piece king) |
static bool | testCenter (const NumEffectState &state, Player defense, const Square a, const Square b, Piece king, Square center, bool maybe_empty=false) |
Definition at line 1638 of file minorPiece.h.
anonymous enum |
Enumerator | |
---|---|
DROP_DIM | |
ONE_DIM | |
DIM |
Definition at line 1641 of file minorPiece.h.
Definition at line 1647 of file minorPiece.h.
References osl::PTYPE_SIZE.
|
static |
Definition at line 2608 of file minorPiece.cc.
References osl::PieceMask::any(), osl::BISHOP, osl::BLACK, osl::PieceMask::clearBit(), osl::NumEffectState::effectedMask(), osl::SimpleState::hasPieceOnStand(), osl::KING, osl::PAWN, osl::SimpleState::pieceOf(), osl::NumEffectState::piecesOnBoard(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::ROOK, osl::PieceMask::setBit(), osl::eval::ml::KnightFork::table, osl::container::PieceMask64::takeOneBit(), and osl::WHITE.
Referenced by evalOne(), osl::eval::ml::OpenMidEndingEval::OpenMidEndingEval(), and osl::eval::ml::OpenMidEndingEval::updateSub().
|
static |
Referenced by isRookForkSquare().
osl::MultiIntPair osl::eval::ml::BishopRookFork::evalOne | ( | const NumEffectState & | state, |
const PieceVector & | target, | ||
std::pair< Square, int > & | bishop_drop, | ||
std::pair< Square, int > & | rook_drop | ||
) |
Definition at line 2542 of file minorPiece.cc.
References osl::alt(), osl::BISHOP, osl::BLACK, eval(), osl::SimpleState::hasPieceOnStand(), osl::Piece::isOnBoardByOwner(), osl::Square::isPieceStand(), osl::Piece::ptype(), osl::ROOK, osl::FixedCapacityVector< T, Capacity >::size(), osl::Piece::square(), and osl::WHITE.
|
inlinestaticprivate |
Definition at line 2461 of file minorPiece.cc.
References osl::alt(), osl::Board_Table, osl::BoardTable::getShortOffset(), osl::NumEffectState::hasEffectAt(), osl::NumEffectState::hasEffectNotBy(), osl::Piece::isEmpty(), osl::Square::isPieceStand(), osl::SimpleState::pieceAt(), and testCenter().
Referenced by setUp().
|
static |
Definition at line 2495 of file minorPiece.cc.
References isRookForkSquare(), osl::SimpleState::kingPiece(), osl::CArray< T, Capacity >::size(), osl::Square::x(), and osl::Square::y().
Referenced by osl::move_probability::MoveInfo::adhocAdjustBishopFork(), and testCenter().
|
inlinestatic |
Definition at line 2522 of file minorPiece.cc.
References evalOne(), osl::SimpleState::kingPiece(), osl::CArray< T, Capacity >::size(), osl::Square::x(), and osl::Square::y().
Referenced by isBishopForkSquare().
Definition at line 1648 of file minorPiece.h.
References osl::eval::ml::PawnDrop::setUp().
|
static |
Definition at line 2443 of file minorPiece.cc.
References findDropInLine(), osl::NStages, osl::eval::ml::PawnDropX::ONE_DIM, osl::PTYPE_SIZE, and osl::eval::ml::Weights::value().
|
inlinestaticprivate |
Definition at line 2480 of file minorPiece.cc.
References osl::alt(), osl::NumEffectState::hasEffectAt(), osl::NumEffectState::hasEffectNotBy(), isBishopForkSquare(), osl::Piece::isEmpty(), osl::SimpleState::isEmptyBetween(), and osl::SimpleState::pieceAt().
Referenced by findDropInLine().
|
static |
Definition at line 1657 of file minorPiece.h.
Referenced by osl::eval::ml::SilverFork::setUp().