#include <breakThreatmate.h>
Static Public Member Functions | |
static void | generateAddEffect (int limit, const NumEffectState &, Square to, const MoveVector &src, MoveLogProbVector &out) |
static void | generateBreakDrop (int limit, const NumEffectState &, Square to, int default_prob, MoveLogProbVector &out) |
static void | generateOpenRoad (int limit, const NumEffectState &, Square target, MoveLogProbVector &out) |
static void | generate (int limit, const NumEffectState &, Move threatmate_move, MoveLogProbVector &out) |
static void | findBlockLong (const NumEffectState &state, Move threatmate_move, MoveVector &out) |
Definition at line 13 of file breakThreatmate.h.
void osl::search::BreakThreatmate::findBlockLong | ( | const NumEffectState & | state, |
Move | threatmate_move, | ||
MoveVector & | out | ||
) | [static] |
Definition at line 51 of file breakThreatmate.cc.
References osl::alt(), osl::BLACK, osl::Board_Table, osl::BOOST_STATIC_ASSERT(), osl::Move::from(), osl::BoardTable::getShortOffsetNotKnight(), osl::Move::isDrop(), osl::Piece::isEmpty(), osl::KNIGHT, osl::Move::oldPtype(), osl::Move::player(), osl::Square::square, store(), target, osl::Move::to(), and osl::WHITE.
void osl::search::BreakThreatmate::generate | ( | int | limit, |
const NumEffectState & | state, | ||
Move | threatmate_move, | ||
MoveLogProbVector & | out | ||
) | [static] |
Definition at line 141 of file breakThreatmate.cc.
References osl::alt(), osl::BISHOP, osl::Board_Table, osl::misc::BitOp::bsf(), osl::PtypeTable::canDropTo(), center, osl::checkmate::King8Info::dropCandidate(), osl::Piece::EMPTY(), osl::Move::from(), osl::move_generator::capture::generate(), osl::BoardTable::getOffset(), osl::BoardTable::getShortOffset(), osl::BoardTable::getShortOffsetNotKnight(), osl::GOLD, osl::Move::isDrop(), osl::Move::isNormal(), osl::KNIGHT, osl::LANCE, limit, osl::PAWN, osl::Move::player(), osl::Move::ptype(), osl::PTYPE_EMPTY, osl::Ptype_Table, osl::ROOK, osl::SILVER, osl::Piece::square(), target, osl::Move::to(), osl::Square::x(), and osl::Offset::zero().
Referenced by osl::search::MoveGenerator::generateBreakThreatmate().
void osl::search::BreakThreatmate::generateAddEffect | ( | int | limit, |
const NumEffectState & | state, | ||
Square | to, | ||
const MoveVector & | src, | ||
MoveLogProbVector & | out | ||
) | [static] |
Definition at line 96 of file breakThreatmate.cc.
References osl::alt(), osl::Move::from(), osl::GOLD, osl::Move::isCapture(), osl::Move::isDrop(), osl::isMajor(), osl::KING, osl::eval::min(), osl::Move::ptype(), osl::SILVER, osl::Move::to(), and osl::Square::x().
void osl::search::BreakThreatmate::generateBreakDrop | ( | int | limit, |
const NumEffectState & | state, | ||
Square | to, | ||
int | default_prob, | ||
MoveLogProbVector & | out | ||
) | [static] |
Definition at line 17 of file breakThreatmate.cc.
References osl::BISHOP, osl::PtypeTable::canDropTo(), osl::GOLD, osl::KNIGHT, osl::LANCE, osl::eval::max(), osl::PAWN, osl::Ptype_Table, osl::ROOK, osl::SILVER, and osl::Square::x().
void osl::search::BreakThreatmate::generateOpenRoad | ( | int | limit, |
const NumEffectState & | state, | ||
Square | target, | ||
MoveLogProbVector & | out | ||
) | [static] |
Definition at line 277 of file breakThreatmate.cc.
References osl::alt(), osl::ntesuki::capture(), osl::move_generator::capture::generate(), osl::Move::isCapture(), osl::Piece::isPiece(), moves, osl::Piece::owner(), target, and osl::Move::to().