#include <see.h>
Static Public Member Functions | |
static int | see (const NumEffectState &state, Move move, const PieceMask &my_pin=PieceMask(), const PieceMask &op_pin=PieceMask(), const PtypeEvalTable *table=0) |
template<Player P> | |
static int | seeInternal (const NumEffectState &state, Move move, const PieceMask &my_pin, const PieceMask &op_pin, const PtypeEvalTable &table) |
template<Player P> | |
static void | findEffectPieces (const NumEffectState &state, Square effect_to, PtypeOSquareVector &my_pieces, PtypeOSquareVector &op_pieces) |
template<osl::Player P> | |
static void | findEffectPiecesAfterMove (const NumEffectState &state, Move move, PtypeOSquareVector &my_pieces, PtypeOSquareVector &op_pieces) |
static void | findAdditionalPieces (const NumEffectState &state, Player attack, Square target, Square direct_attack_from, PtypeOSquareVector &out) |
template<Player P> | |
static int | computeValue (const NumEffectState &state, Move move, PtypeOSquareVector &my_pieces, PtypeOSquareVector &op_pieces, const PieceMask &my_pin, const PieceMask &op_pin, const PtypeEvalTable &table) |
PtypeOSquareVector をもとに取り返し値を計算する More... | |
|
static |
PtypeOSquareVector をもとに取り返し値を計算する
P | alt(P) からの取り返し |
target | ここに関する取り返し |
ptypeo | target にあると想定される駒 |
Definition at line 112 of file see.cc.
References osl::alt(), osl::canPromote(), osl::Square::canPromote(), osl::eval::PtypeEvalTable::captureValue(), osl::Move::from(), osl::KING, osl::eval::max(), osl::newPtypeO(), osl::Piece::number(), osl::Piece::owner(), osl::SimpleState::pieceAt(), osl::NumEffectState::pinAttacker(), osl::NumEffectState::pinnedCanMoveTo(), osl::FixedCapacityVector< T, Capacity >::pop_back(), osl::promote(), osl::eval::PtypeEvalTable::promoteValue(), osl::Move::ptypeO(), osl::FixedCapacityVector< T, Capacity >::size(), osl::Piece::square(), eval::See::FindEffectMore::target, osl::PieceMask::test(), and osl::Move::to().
Referenced by findEffectPiecesAfterMove().
|
static |
Definition at line 274 of file see.cc.
References osl::Board_Table, osl::PtypeTable::getEffect(), osl::BoardTable::getShortOffsetNotKnight(), osl::EffectContent::hasEffect(), osl::Piece::isPiece(), osl::SimpleState::nextPiece(), osl::Piece::owner(), osl::Ptype_Table, osl::Piece::ptypeO(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::Piece::square(), and osl::Offset::zero().
Referenced by findEffectPieces(), findEffectPiecesAfterMove(), see(), and eval::See::FindEffectMore::store().
|
static |
Definition at line 30 of file see.cc.
References osl::alt(), osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::clear(), osl::NumEffectState::countEffect(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::end(), findAdditionalPieces(), findEffectPiecesAfterMove(), osl::NumEffectState::forEachEffect(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::FixedCapacityVector< T, Capacity >::size(), and osl::PtypeOSquareVector::sort().
Referenced by eval::See::FindEffectMore::store().
|
static |
Definition at line 66 of file see.cc.
References osl::alt(), osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::clear(), computeValue(), osl::NumEffectState::countEffect(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::end(), findAdditionalPieces(), osl::NumEffectState::forEachEffect(), osl::Move::from(), osl::Piece::number(), osl::SimpleState::pieceOnBoard(), osl::Move::player(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::PieceMask::set(), osl::FixedCapacityVector< T, Capacity >::size(), osl::PtypeOSquareVector::sort(), osl::Piece::square(), and osl::Move::to().
Referenced by findEffectPieces().
|
static |
Definition at line 261 of file see.cc.
References osl::BLACK, findAdditionalPieces(), osl::Move::player(), osl::eval::Ptype_Eval_Table, and eval::See::FindEffectMore::state.
Referenced by osl::rating::Capture::see().
|
static |
Definition at line 237 of file see.cc.
References osl::eval::PtypeEvalTable::diffWithMove(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::Move::from(), osl::NumEffectState::isAlmostValidMove(), osl::eval::Ptype_Eval_Table, eval::See::FindEffectMore::state, and osl::Move::to().