Namespaces | |
annotate | |
checkmate | |
詰将棋関係 | |
container | |
一般的に存在するデータ構造の将棋版,PieceVectorや各種bitsetなど. | |
effect | |
利きを局面に持たせるためのコード. | |
effect_action | |
forEachEffect, forSortedEffect等で渡す対象 | |
effect_util | |
利きを利用した計算をするコード | |
enter_king | |
入玉の判定と予測 | |
eval | |
評価関数 | |
game_playing | |
対局に必要な諸々. | |
hash | |
ハッシュ | |
misc | |
特に将棋と関係ない基礎的なコード | |
mobility | |
move_action | |
生成された指手を処理する | |
move_classifier | |
Moveを分類するクラス群. | |
move_generator | |
低レベルの指手生成 | |
move_order | |
Move の並べ変え | |
move_probability | |
ntesuki | |
ntesuki | |
progress | |
進行度 | |
ptl | |
Ptype の template による list. | |
rating | |
record | |
棋譜関係 | |
search | |
探索関係 | |
search4 | |
stat | |
統計関係 | |
state | |
局面. | |
stl | |
stl コンテナのallocatorを取り替えたものを提供する. | |
threatmate | |
詰めろ予測関数 指した後の局面(state)と指し手(move) を引数に取る predict で予測結果を返す | |
Typedefs | |
typedef QuadInt | MultiInt |
typedef QuadIntPair | MultiIntPair |
typedef Offset32Base< 8, 9 > | Offset32 |
typedef Offset32Base< 10, 10 > | Offset32Wide |
typedef search::AlphaBeta2 < eval::ProgressEval > | AlphaBeta2ProgressEval |
typedef search::AlphaBeta2 < eval::ml::OpenMidEndingEval > | AlphaBeta2OpenMidEndingEval |
Functions | |
bool | isShort (Direction d) |
bool | isShort8 (Direction d) |
bool | isLong (Direction d) |
Direction | inverseUnsafe (Direction d) |
Direction | inverse (Direction d) |
Direction | primDir (Direction d) |
8方向について,primitiveな4方向を求める More... | |
Direction | primDirUnsafe (Direction d) |
8方向について,primitiveな4方向を求める dとしてknight, INVALIDなども来る More... | |
bool | isValid (Direction d) |
Direction | longToShort (Direction d) |
Direction | shortToLong (Direction d) |
引数に longDirを与えてはいけない More... | |
int | dirToMask (Direction dir) |
std::ostream & | operator<< (std::ostream &os, const Direction d) |
bool | operator== (EffectContent l, EffectContent r) |
bool | operator!= (EffectContent l, EffectContent r) |
bool | operator< (EffectContent l, EffectContent r) |
const char * | ctime_r (const time_t *timep, char *buf) |
bool | operator< (Move lhs, Move rhs) |
bool | operator== (Move lhs, Move rhs) |
bool | operator!= (Move lhs, Move rhs) |
std::ostream & | operator<< (std::ostream &os, Move move) |
std::ostream & | operator<< (std::ostream &os, MoveLogProb const &move) |
bool | operator== (MoveLogProb const &lhs, MoveLogProb const &rhs) |
bool | operator< (MoveLogProb const &lhs, MoveLogProb const &rhs) |
Offset | newOffset (int dx, int dy) |
bool | operator== (Offset l, Offset r) |
bool | operator!= (Offset l, Offset r) |
bool | operator< (Offset l, Offset r) |
std::ostream & | operator<< (std::ostream &, Offset) |
bool | operator== (const PathEncoding &l, const PathEncoding &r) |
bool | operator!= (const PathEncoding &l, const PathEncoding &r) |
std::ostream & | operator<< (std::ostream &, const PathEncoding &) |
bool | operator== (Piece l, Piece r) |
bool | operator< (Piece l, Piece r) |
bool | operator!= (Piece l, Piece r) |
std::ostream & | operator<< (std::ostream &os, const Piece piece) |
bool | operator== (PieceStand l, PieceStand r) |
bool | operator!= (PieceStand l, PieceStand r) |
bool | operator< (PieceStand l, PieceStand r) |
std::ostream & | operator<< (std::ostream &, PieceStand l) |
Player | alt (Player player) |
int | playerToIndex (Player player) |
Player | indexToPlayer (int n) |
int | playerToMul (Player player) |
int | playerToSign (Player player) |
int | playerToMask (Player player) |
int | operator+ (Player, int) |
int | operator+ (int, Player) |
int | operator- (Player, int) |
int | operator- (int, Player) |
int | operator* (Player, int) |
int | operator* (int, Player) |
int | operator/ (Player, int) |
int | operator/ (int, Player) |
bool | isValid (Player player) |
cast等で作られたplayerが正しいかどうかを返す More... | |
std::ostream & | operator<< (std::ostream &os, Player player) |
std::istream & | operator>> (std::istream &is, Ptype &ptype) |
std::ostream & | operator<< (std::ostream &os, const Ptype ptype) |
bool | isValid (Ptype ptype) |
int等からcastして作ったptypeが,正しい範囲に入っているかどうかのチェック More... | |
bool | isPiece (Ptype ptype) |
ptypeが空白やEDGEでないかのチェック More... | |
bool | isBasic (Ptype ptype) |
ptypeが基本型(promoteしていない)かのチェック More... | |
bool | isPromoted (Ptype ptype) |
ptypeがpromote後の型かどうかのチェック More... | |
bool | canPromote (Ptype ptype) |
ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す More... | |
Ptype | unpromote (Ptype ptype) |
ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す More... | |
Ptype | unpromoteSafe (Ptype ptype) |
Ptype | promote (Ptype ptype) |
promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない. More... | |
bool | isMajorBasic (Ptype ptype) |
bool | isMajor (Ptype ptype) |
bool | isMajorNonPieceOK (Ptype ptype) |
unsigned int | ptypeOIndex (PtypeO ptypeo) |
PtypeO | newPtypeO (Player player, Ptype ptype) |
Ptype | getPtype (PtypeO ptypeO) |
PtypeO | promote (PtypeO ptypeO) |
pieceをpromoteさせる. More... | |
PtypeO | promoteWithMask (PtypeO ptypeO, int promoteMask) |
pieceを引数次第でpromoteさせる More... | |
PtypeO | unpromote (PtypeO ptypeO) |
pieceをunpromoteさせる. More... | |
bool | isValidPtypeO (int ptypeO) |
bool | isPiece (PtypeO ptypeO) |
EMPTY, EDGEではない More... | |
Player | getOwner (PtypeO ptypeO) |
PtypeO | captured (PtypeO ptypeO) |
unpromoteすると共に,ownerを反転する. More... | |
PtypeO | alt (PtypeO ptypeO) |
owner を反転する More... | |
PtypeO | altIfPiece (PtypeO ptypeO) |
Pieceの時にはowner を反転する More... | |
bool | canPromote (PtypeO ptypeO) |
bool | isPromoted (PtypeO ptypeO) |
ptypeOが promote済みかどうか More... | |
std::ostream & | operator<< (std::ostream &os, const PtypeO ptypeO) |
std::ostream & | csaShow (std::ostream &os, Move move) |
std::ostream & | csaShow (std::ostream &, Square) |
std::ostream & | csaShow (std::ostream &os, Piece piece) |
std::ostream & | csaShow (std::ostream &os, Ptype ptype) |
bool | importantMove (const NumEffectState &state, Move move, Square my_king, Square op_king) |
bool | operator== (const Sennichite &l, const Sennichite &r) |
std::ostream & | operator<< (std::ostream &, const Sennichite &) |
bool | operator== (Square l, Square r) |
bool | operator!= (Square l, Square r) |
bool | operator< (Square l, Square r) |
bool | operator> (Square l, Square r) |
std::ostream & | operator<< (std::ostream &, Square) |
template void | EffectUtil::findThreat< osl::eval::ml::OpenMidEndingEval > (const NumEffectState &state, Square position, PtypeO ptypeo, PieceVector &out) |
template void | EffectUtil::findThreat< eval::ProgressEval > (const NumEffectState &state, Square position, PtypeO ptypeo, PieceVector &out) |
BOOST_STATIC_ASSERT (sizeof(HashKey)==sizeof(int)*4) | |
BOOST_STATIC_ASSERT (sizeof(Move)==4) | |
BOOST_STATIC_ASSERT (sizeof(Piece)==4) | |
BOOST_STATIC_ASSERT (sizeof(unsigned int)*8 >=32) | |
template<Player P, Ptype PTYPE> | |
static void | makeCapture (const NumEffectState &state, MoveVector &out) |
void | showLogProb (const stat::Histogram &numerator, const stat::Histogram &denominator) |
void | showLogProb (const stat::Histogram &numerator, const stat::Histogram &denom1, const stat::Histogram &denom2) |
void | showLogProb (const Histogram8 &numerator, const Histogram8 &denom1, const Histogram8 &denom2) |
size_t | find (Property property, const NumEffectState &state, const RatingEnv &e, const RatedMoveVector &moves, Move selected) |
Variables | |
const BoardTable | Board_Table |
const int | NStages = 4 |
const int | EvalStages = 4 |
const int | EndgameIndex = EvalStages-1 |
const PathEncodingTable | Path_Encoding_Table |
const int | EMPTY_NUM =0x80 |
const int | EDGE_NUM =0x40 |
const PieceTable | Piece_Table |
const int | PTYPE_SIZE =PTYPE_MAX-PTYPE_MIN+1 |
const PtypeO | PTYPEO_EMPTY =newPtypeO(BLACK,PTYPE_EMPTY) |
const PtypeO | PTYPEO_EDGE =newPtypeO(WHITE,PTYPE_EDGE) |
const int | PTYPEO_SIZE =PTYPEO_MAX-PTYPEO_MIN+1 |
const PtypeTable | Ptype_Table |
osl 一般
mtdfstat, alphabetastat 用の記録用 (text)
mtdfstat, alphabetastat 用の記録の親クラス
mtdfstat, alphabetastat 用の記録
将棋盤や基本的なデータ型など.
Definition at line 352 of file alphaBeta2.h.
Definition at line 351 of file alphaBeta2.h.
typedef QuadInt osl::MultiInt |
typedef QuadIntPair osl::MultiIntPair |
typedef Offset32Base<8,9> osl::Offset32 |
Definition at line 67 of file offset32.h.
typedef Offset32Base<10,10> osl::Offset32Wide |
Definition at line 68 of file offset32.h.
enum osl::Direction |
Definition at line 8 of file direction.h.
enum osl::Handicap |
Enumerator | |
---|---|
HIRATE |
Definition at line 4 of file handicap.h.
enum osl::Move16 |
enum osl::MoveConstraint |
ある方向にある駒が移動可能かを表す.
(basicTypeだけは確定しているが,promote済みかどうかはわからない場合)
Enumerator | |
---|---|
CannotMove |
可能でない |
OnlyPromoted |
promote済みの駒の場合にのみ可能 |
OnlyBasic |
promoteしていない駒の場合にのみ可能 |
NoConstraint |
promoteしていようが,いまいが可能 |
Definition at line 334 of file ptypeTraits.h.
enum osl::Player |
enum osl::PromoteType |
Enumerator | |
---|---|
NoPromoteType | |
CanPromoteType | |
CheckPromoteType | |
MustPromoteType |
Definition at line 7 of file promoteType.h.
enum osl::Property |
Enumerator | |
---|---|
All | |
TakeBack |
一手目の取り返し |
TakeBack2 |
2手目の取り返し |
NoTakeBack |
取り返しでない先頭 |
SeePlus |
取り返し以外の駒得の先頭 |
SeePlus2 | |
SeePlusX |
3手目の駒得または駒得以外の先頭 |
NoSeePlus |
取り返しでも駒得でもない先頭 |
Definition at line 202 of file ratingstat.cc.
enum osl::Ptype |
enum osl::PtypeO |
|
inline |
Definition at line 12 of file player.h.
Referenced by osl::checkmate::ProofPiecesUtil::addMonopolizedPieces(), osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::eval::ml::MajorCheckWithCapture::addOne(), osl::eval::ml::AttackMajorsInBase::addOne(), osl::move_probability::King5x5Ptype::addOne(), osl::move_probability::MoveInfo::adhocAdjustAttackCheckmateDefender(), osl::move_probability::MoveInfo::adhocAdjustBishopFork(), osl::move_probability::MoveInfo::adhocAdjustBreakThreatmate(), osl::move_probability::MoveInfo::adhocAdjustSlider(), FullWidth::alphaBeta(), osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearch(), osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::checkmate::ProofTreeDepthDfpn::andNode(), osl::checkmate::FixedDepthSearcher2::attack(), osl::checkmate::FixedDepthSearcher::attack(), osl::checkmate::Dfpn::attack(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::attackBonusScale(), osl::progress::Effect5x3WithBonus::attackEffect3(), osl::checkmate::ProofNumberTable::attackEstimation(), osl::search::QuiescenceGenerator< P >::attackGoldWithPawn(), osl::checkmate::PureLibertyEstimator::attackH(), osl::checkmate::LibertyEstimator::attackH(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::attackKnightWithPawn(), osl::search::QuiescenceGenerator< P >::attackMajorPiece(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::checkmate::attackProofCost(), osl::search::QuiescenceGenerator< P >::attackSilverWithPawn(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::search::QuiescenceGenerator< P >::attackWithKnight(), osl::Square::back(), osl::rating::BadLance::basicMatch(), osl::search::AlphaBeta2Window::beta(), osl::move_probability::KingBlockade::blockAll(), osl::rating::DefenseKing8::blocking(), osl::checkmate::Dfpn::blockingSimulation(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::search::FixedEval::brinkmatePenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateAttackBonusOne(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateAttackRooks(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateEnterKingBonus(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateGoldPenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateRookRankBonus(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateSilverPenalty(), osl::eval::ml::GoldFeatures::canMoveToSide(), osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::eval::ml::SilverFeatures::canRetreat(), osl::eval::ml::GoldFeatures::canRetreat(), osl::search::QuiescenceGenerator< P >::capture(), osl::rating::Threatmate::captureForKnightCheck(), osl::Move::capturePtypeO(), osl::eval::captureVal(), osl::state::SimpleState::changeTurn(), osl::search::QuiescenceGenerator< P >::check(), check_all(), osl::state::NumEffectState::checkShadow(), osl::move_probability::Feature::classifyEffect9(), osl::move_probability::StateInfo::clearOldCache(), convert_from_first(), osl::record::KisenUtils::convertMove(), osl::effect_util::ShadowEffect::count(), osl::rating::CountEffect2::count(), osl::rating::DefenseKing8::count(), Searcher::count(), osl::eval::ml::King25Effect::countEffectAndPieces(), osl::eval::ml::King25EffectBoth::countEffectAndPiecesBoth(), osl::progress::Effect5x3WithBonus::countEffectPieces(), osl::checkmate::ProofNumberTable::countLiberty(), osl::search::QuiescenceSearch2< EvalT >::currentValueWithLastThreat(), osl::move_probability::CoverFork::defending(), osl::checkmate::Dfpn::defense(), osl::checkmate::FixedDepthSearcher2::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::checkmate::FixedDepthSearcher2::defenseEstimation(), osl::checkmate::FixedDepthSearcher::defenseEstimation(), osl::checkmate::LibertyEstimator::defenseH(), osl::search::DominanceCheck::detect(), osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >::diffWithMove(), osl::state::NumEffectState::doCaptureMove(), doMain(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::King8Effect::effectState(), osl::eval::ml::King8EffectAll::effectState(), osl::eval::ml::King25EffectEach< Stage >::effectState(), osl::state::SimpleState::emulateHandPiece(), osl::search::QuiescenceGenerator< P >::escapeAll(), osl::search::QuiescenceGenerator< P >::escapeByMoveOnly(), osl::move_action::EscapeFilter< P, OrigAction >::EscapeFilter(), osl::search::QuiescenceGenerator< P >::escapeFromLastMove(), osl::search::QuiescenceGenerator< P >::escapeKing(), osl::search::QuiescenceGenerator< P >::escapeKingInTakeBack(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::NumPiecesBetweenBishopAndKing::eval(), osl::eval::ml::KnightHead::eval(), osl::eval::ml::LanceEffectPieceKingRelative::eval(), osl::eval::ml::KnightFork::eval(), osl::eval::ml::PinPtypeAll::evalOne(), osl::eval::ml::MajorGoldSilverAttacked< Opening >::evalOne(), osl::eval::ml::CheckShadowPtype::evalOne(), osl::eval::ml::SilverFeatures::evalOne(), osl::eval::ml::KingMobility::evalOne(), osl::eval::ml::NonPawnAttackedPtypePair::evalOne(), osl::eval::ml::BishopExchangeSilverKing::evalOne(), osl::eval::ml::BishopRookFork::evalOne(), osl::eval::ml::Promotion37::evalOne(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::KingPieceRelativeNoSupport::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::PieceStandY::evalWithUpdate(), osl::eval::ml::King25EmptyAbs< Opening >::evalWithUpdate(), osl::eval::ml::PtypeY::evalWithUpdate(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::eval::ml::KnightFork::evalWithUpdate(), osl::eval::ml::PiecePairKing::evalWithUpdateBang(), osl::eval::ml::NonPawnAttacked::evalWithUpdateBang(), osl::eval::ml::NonPawnAttackedPtype::evalWithUpdateBang(), osl::eval::ml::PtypeYPawnY::evalWithUpdateBang(), osl::search::QuiescenceSearch2< EvalT >::examineMoves(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::progress::Effect5x3::expect(), osl::progress::Effect5x3WithBonus::expect(), osl::eval::MinorPieceBonus::expect(), osl::effect_util::UnblockableEffect::find(), osl::effect_util::SendOffSquare::find(), osl::rating::PatternBlock::find(), find_all(), osl::move_probability::BlockLong::findAll(), osl::search::BreakThreatmate::findBlockLong(), osl::move_probability::StateInfo::findCheckmateDefender(), osl::search::AlphaBeta2< EvalT >::findCheckmateInPV(), osl::checkmate::Dfpn::findDagSource(), osl::effect_util::Pin::findDirection(), osl::eval::ml::BishopRookFork::findDropInLine(), osl::rating::AttackKing8Group::findMatch(), osl::rating::PtypeAttackedGroup::findMatch(), osl::rating::PatternBlockGroup::findMatch(), osl::rating::BlockGroup::findMatch(), osl::rating::BadLanceGroup::findMatch(), osl::move_probability::StateInfo::findShortThreatmate(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::effect_util::EffectUtil::findThreat(), osl::state::NumEffectState::findThreatenedPiece(), osl::move_probability::StateInfo::finishUpdate(), osl::search::AlphaBeta2< EvalT >::fullWindow(), osl::move_generator::SafeDropMajorPiece< P >::generate(), osl::search::BreakThreatmate::generate(), osl::search::BreakThreatmate::generateAddEffect(), osl::search::MoveGenerator::generateAll(), osl::search::QuiescenceSearch2< EvalT >::generateAndExamineTakeBack2(), osl::checkmate::Dfpn::generateCheck(), osl::search::MoveScore::generateCheckNoCapture(), osl::checkmate::Dfpn::generateEscape(), osl::search::MoveGenerator::generateKingEscape(), osl::move_generator::without_effect::generateLongMove(), osl::game_playing::GameState::generateMoves(), osl::search::BreakThreatmate::generateOpenRoad(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::rating::FeatureSet::generateRating(), osl::move_generator::addeffect8::generateShortDrop(), osl::game_playing::UsiResponse::genmoveProbability(), osl::record::KisenFile::getMoves(), osl::enter_king::SimplePredictor::getProbability(), osl::enter_king::SimplePredictor::getProbability27(), osl::checkmate::Dfpn::grandParentSimulation(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::checkmate::Dfpn::hasEscapeMove(), osl::state::NumEffectState::inCheck(), increment(), osl::eval::ml::KingPieceRelative::index(), osl::rating::BigramAttack::index(), osl::rating::PinAttack::index(), osl::eval::ml::PtypeYY::index(), osl::rating::Open::index(), osl::rating::ImmediateAddSupport::index(), osl::eval::ml::LanceEffectPieceKingRelative::index(), osl::eval::ml::NonPawnAttackedPtypePair::index1(), osl::search::MoveGenerator::init(), osl::rating::Threatmate::isCandidate(), osl::annotate::Analyzer::isCheckmate(), osl::state::NumEffectState::isConsistent(), osl::RepetitionCounter::isConsistent(), osl::move_probability::BreakThreatmate::isDefendingKing8(), osl::game_playing::GameState::isIllegal(), osl::checkmate::DualDfpn::isLosingState(), isMated(), osl::move_classifier::TrapRook< P >::isMember(), osl::effect_util::UnblockableCheck::isMember(), osl::search::QuiescenceGenerator< P >::kingWalk(), osl::checkmate::ProofPieces::leaf(), osl::checkmate::ProofNumberTable::libertyAfterAllDrop(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), main(), osl::rating::RatingEnv::make(), osl::checkmate::King8Info::make(), osl::effect_util::Pin::makeByPiece(), osl::effect_util::Pin::makeByPieceKing(), makeCapture(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::rating::RelativeKingX::makeOldX(), osl::rating::RelativeKingY::makeOldY(), osl::state::NumEffectState::makePinOpen(), osl::progress::Effect5x3::makeProgressAll(), osl::effect_util::PinOrOpen::makeStep(), osl::checkmate::King8Info::makeWithPin(), osl::rating::RelativeKingX::makeX(), osl::rating::RelativeKingY::makeY(), osl::rating::CheckmateIfCapture::match(), osl::rating::AttackKing8::match(), osl::rating::PinAttack::match(), osl::rating::PtypeAttacked::match(), osl::annotate::CheckmateForEscape::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::annotate::Vision3::match(), osl::rating::Block::match(), osl::move_probability::SeeFeature::match(), osl::move_probability::CapturePtype::match(), osl::rating::PatternBlock::match(), osl::rating::BadLance::match(), osl::move_probability::KingRelativeY::match(), osl::move_probability::KingRelativeX::match(), osl::move_probability::FromEffect::match(), osl::move_probability::FromEffectLong::match(), osl::move_probability::ToEffectLong::match(), osl::move_probability::PatternBase< TestPromotable >::match(), osl::move_probability::MoveFromOpposingSliders::match(), osl::move_probability::AttackFromOpposingSliders::match(), osl::move_probability::LongRecapture::match(), osl::move_probability::LanceAttack::match(), osl::move_probability::RookAttack::match(), osl::move_probability::LureDefender::match(), osl::move_probability::CheckmateIfCapture::match(), osl::move_probability::OpposingPawn::match(), osl::move_probability::DropAfterOpposingPawn::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::SacrificeAttack::match(), osl::move_probability::King5x5Ptype::match(), osl::move_probability::KingBlockade::match(), osl::move_probability::CoverFork::match(), osl::move_probability::PromotionBySacrifice::match(), osl::move_probability::EscapeThreatened::match(), osl::rating::Karanari::matchGeneral(), osl::eval::ml::SilverFork::matchGold(), osl::annotate::EscapeFromCheck::matchMain(), osl::move_probability::PawnAttack::matchPtype(), osl::eval::ml::SilverFork::matchRook(), osl::search::FixedEval::minusInfty(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::ntesuki::NtesukiMoveList::NtesukiMoveList(), osl::effect_util::SendOffSquare::onlyOneSupport(), osl::rating::Threatmate::Helper::operator()(), osl::move_order::CaptureEstimation::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateSimple::operator()(), osl::search::QSearch2SafeEscape< Eval, P >::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateDefense::operator()(), osl::eval::ml::PinPtypeAll::pawnAttack(), osl::RepetitionCounter::pop(), osl::game_playing::WinCountTracer::popMove(), osl::game_playing::WeightTracer::popMove(), osl::search::SearchState2Core::popPass(), osl::threatmate::KfendPredictor::predict(), osl::threatmate::RichPredictor::predict(), osl::threatmate::TreePredictor::predict(), osl::threatmate::MlPredictor::predict(), osl::search::AlphaBeta3::presearch(), osl::threatmate::TreePredictor::probability(), osl::search::MoveStackRejections::probe(), osl::game_playing::GnuShogiClient::processComputerMove(), processKifu(), osl::progress::ml::NewProgress::progress16(), osl::progress::ml::NewProgress::progressAttack(), osl::progress::ml::NewProgress::progressDefense(), osl::progress::ml::NewProgress::progressOne(), osl::state::NumEffectState::prologueCapture(), osl::state::NumEffectState::prologueDrop(), osl::state::NumEffectState::prologueSimple(), osl::search::QuiescenceGenerator< P >::promote(), osl::search::QuiescenceGenerator< P >::promoteN(), osl::progress::ml::NewProgress::promotion37One(), osl::checkmate::Dfpn::proofOracleAttack(), osl::checkmate::Dfpn::proofOracleDefense(), osl::RepetitionCounter::push(), qsearch(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta2Tree< EvalT >::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::search::AlphaBeta2Tree< EvalT >::quiesceRoot(), osl::search::AlphaBeta2Tree< EvalT >::quiesceStable(), osl::game_playing::GnuShogiClient::readAndProcessCommand(), osl::state::NumEffectState::recalcPinOpen(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordCheckmateResult(), osl::search::SearchBase< EvalT, SimpleHashTable, CountRecorder, RealizationProbability >::recordLoseByCheckmate(), osl::game_playing::GameState::rejectByStack(), osl::game_playing::CsaLogger::resign(), osl::search::AlphaBeta2Tree< EvalT >::rootAlpha(), osl::state::SimpleState::rotate180(), osl::Move::rotate180(), run(), search(), osl::search::QuiescenceSearch2< EvalT >::search(), Analyzer::search(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), osl::search::QuiescenceSearch2< EvalT >::searchInternal(), osl::search::QuiescenceSearch2< EvalT >::searchIteratively(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::QuiescenceSearch2< EvalT >::searchProbCut(), osl::search::AlphaBeta3::searchRoot(), osl::search::QuiescenceRecord::sendOffSquare(), osl::checkmate::DualDfpn::OraclePool::setAttack(), osl::checkmate::Dfpn::Node::setCheckmateDefense(), osl::checkmate::Dfpn::Node::setNoCheckmateAttack(), osl::checkmate::Dfpn::Node::setNoCheckmateDefense(), osl::ntesuki::NtesukiMoveGenerator::setOrder(), osl::state::SimpleState::setPieceAll(), osl::checkmate::DualDfpn::setRootPlayer(), osl::progress::Effect5x3Table::setupBlockEffect(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), showPairStat(), osl::move_probability::CheckFeature::sign(), osl::search::AlphaBeta2Tree< EvalT >::stableThreshold(), osl::search::QuiescenceSearch2< EvalT >::staticValueWithThreat(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::annotate::ThreatmateIfMorePieces::suitable(), osl::move_probability::ToEffect::supportAttack(), osl::search::QuiescenceSearch2< EvalT >::takeBackOrChase(), osl::search::QuiescenceSearch2< EvalT >::takeBackValue(), test_file(), test_position(), test_record(), osl::eval::ml::BishopRookFork::testCenter(), testWinOrLose(), osl::search::FixedEval::threatmatePenalty(), trim_last(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmate(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmateAgain(), osl::game_playing::WinCountTracer::update(), osl::game_playing::WeightTracer::update(), osl::eval::endgame::AttackDefense::update(), osl::progress::Effect5x3::update(), osl::eval::MinorPieceBonus::update(), osl::eval::ml::OpenMidEndingEval::update(), osl::progress::ml::NewProgress::updateAttack5x5PiecesAndState(), osl::move_probability::PatternCommon::updateCacheOne(), osl::eval::ml::NonPawnAttackedPtype::updateChanged(), osl::eval::ml::NonPawnAttacked::updateEffectChanged(), osl::search::DualThreatmateState::updateInLock(), osl::progress::ml::NewProgress::updateNonPawnAttackedPtypePairOne(), osl::progress::ml::NewProgress::updatePieceKingRelativeBonus(), osl::move_probability::StateInfo::updatePinnedGenerals(), osl::search::AlphaBeta2Tree< EvalT >::updateRootPV(), osl::eval::ml::OpenMidEndingEval::updateSub(), and osl::state::NumEffectState::wasCheckEvasion().
|
inline |
|
inline |
Pieceの時にはowner を反転する
Definition at line 213 of file ptype.h.
Referenced by osl::eval::ml::BishopStandFile5::eval(), osl::eval::ml::King3Pieces::index(), osl::eval::ml::PawnPtypeOPtypeO::index(), osl::eval::ml::BishopHead::indexX(), osl::eval::ml::King3Pieces::indexX(), osl::eval::ml::King3Pieces::indexY(), and osl::move_probability::PatternCommon::updateCacheOne().
osl::BOOST_STATIC_ASSERT | ( | sizeof(Piece) | = =4 ) |
osl::BOOST_STATIC_ASSERT | ( | sizeof(Move) | = =4 ) |
osl::BOOST_STATIC_ASSERT | ( | sizeof(HashKey) | = =sizeof(int)*4 ) |
Referenced by osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::composeValue(), osl::search::BreakThreatmate::findBlockLong(), osl::effect_util::Pin::findPtype(), osl::move_generator::addeffect8::generateLong(), osl::move_generator::addeffect8::generateLongDrop(), osl::move_generator::addeffect8::generateShort(), osl::state::NumEffectState::hasEffectInDirection(), osl::state::NumEffectState::hasLongEffectAt(), osl::PtypeTable::init(), osl::move_classifier::BlockLongEffect< P, T >::isMember(), osl::move_probability::CapturePtype::match(), osl::effect_util::TestEffectOfMove< P, InterestEmpty, Dir >::testLong(), and osl::effect_util::TestEffectOfMove< P, InterestEmpty, Dir >::testShort().
osl::BOOST_STATIC_ASSERT | ( | sizeof(unsigned int)*8 >= | 32) |
|
inline |
ptypeがpromote可能な型かどうかのチェック promote済みの場合はfalseを返す
Definition at line 77 of file ptype.h.
References GOLD, and isPiece().
Referenced by canPromote(), osl::eval::See::computeValue(), osl::eval::TakeBackValue::computeValue(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect_action::SimpleMove< Action >::doActionPtype(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::generateLongMove(), osl::move_generator::detail::generateMovePiecePtypeMask(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtypeUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePtypeUnsafe(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::move_generator::addeffect8::AddEffect8Table::initMoveOffset(), osl::PtypeTable::initPtypeSub(), osl::Piece::isPlayerBasicPtype(), osl::state::SimpleState::isValidMoveByRule(), osl::move_probability::LureDefender::match(), promote(), osl::Piece::promote(), osl::Move::promote(), osl::search::promoteIf(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), show(), osl::record::ki2::show(), osl::record::psn::showXP(), and update().
|
inline |
Definition at line 219 of file ptype.h.
References canPromote(), and getPtype().
|
inline |
unpromoteすると共に,ownerを反転する.
Definition at line 196 of file ptype.h.
References isPiece().
Referenced by osl::checkmate::ProofPieces::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::rating::Threatmate::captureForKnightCheck(), osl::eval::ml::OpenMidEndingEval::captureValue(), osl::search::QuiescenceGenerator< P >::check(), osl::record::KisenUtils::convertMove(), osl::checkmate::DisproofPieces::defense(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffWithUpdate(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::eval::ml::KingPieceRelative::evalWithUpdate(), osl::eval::ml::KingPieceRelativeNoSupport::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::King25EmptyAbs< Opening >::evalWithUpdate(), osl::eval::ml::PtypeY::evalWithUpdate(), osl::eval::ml::PtypeX::evalWithUpdate(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::eval::ml::PromotedMinorPieces::evalWithUpdate(), osl::eval::ml::PiecePairKing::evalWithUpdateBang(), osl::eval::ml::PawnAdvanceAll::evalWithUpdateBang(), osl::eval::ml::NonPawnAttacked::evalWithUpdateBang(), osl::eval::ml::NonPawnAttackedPtype::evalWithUpdateBang(), osl::eval::ml::PtypeCount::evalWithUpdateBang(), osl::eval::ml::PtypeYPawnY::evalWithUpdateBang(), osl::eval::endgame::AttackDefense::expect(), osl::eval::PieceEval::expect(), osl::search::FirstMoveThreatmate::isMember(), osl::state::NumEffectState::makeMove(), osl::state::NumEffectState::makeUnmakeMove(), osl::move_probability::CapturePtype::match(), osl::move_probability::ToEffect::match(), osl::move_probability::BreakThreatmate::match(), osl::move_probability::ThreatmateByCapture::match(), osl::annotate::EscapeFromCheck::matchMain(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::eval::PtypeEvalTable::reset(), osl::record::kakinoki::strToMove(), osl::eval::endgame::AttackDefense::update(), osl::eval::MinorPieceBonus::update(), osl::eval::PieceEval::update(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), osl::progress::ml::NewProgress::updateMain(), osl::progress::ml::NewProgress::updateSub(), and osl::eval::ml::OpenMidEndingEval::updateSub().
std::ostream & osl::csaShow | ( | std::ostream & | os, |
Move | move | ||
) |
Definition at line 213 of file csa.cc.
References osl::record::csa::show().
Referenced by main(), osl::state::operator<<(), osl::game_playing::CsaLogger::pushMove(), osl::misc::log::TextPerformanceLog::record(), osl::misc::log::HtmlPerformanceLog::record(), osl::search::SearchRecorder::recordValue(), osl::search::SearchRecorder::retryMove(), show(), osl::search::analyzer::DotWriter::showArc(), osl::search::analyzer::DotWriter::showNode(), osl::search::SearchRecorder::tableStoreLowerBound(), osl::search::SearchRecorder::tableStoreUpperBound(), and osl::search::SearchRecorder::tryMove().
std::ostream & osl::csaShow | ( | std::ostream & | os, |
Square | pos | ||
) |
Definition at line 198 of file csa.cc.
References osl::record::csa::show().
std::ostream & osl::csaShow | ( | std::ostream & | os, |
Piece | piece | ||
) |
Definition at line 203 of file csa.cc.
References osl::record::csa::show().
std::ostream & osl::csaShow | ( | std::ostream & | os, |
const osl::Ptype | ptype | ||
) |
Definition at line 208 of file csa.cc.
References osl::record::csa::show().
const char * osl::ctime_r | ( | const time_t * | timep, |
char * | buf | ||
) |
Definition at line 5 of file ctime.cc.
Referenced by osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::game_playing::CsaClient::readAndProcessCommand(), osl::game_playing::SpeculativeSearchPlayer::selectBestMove(), osl::game_playing::SearchPlayer::setUpTable(), osl::game_playing::SearchPlayer::stopSearchNow(), osl::game_playing::SpeculativeAllMoves::SearchAllMoves::testMove(), osl::game_playing::WeightTracer::update(), osl::game_playing::SpeculativeAllMoves::waitResult(), and osl::game_playing::CsaLogger::writeCurrentDate().
|
inline |
Definition at line 93 of file direction.h.
Referenced by osl::effect::EffectedNumTable::EffectedNumTable(), osl::eval::TakeBackValue::findEffectPiecesAfterMove(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), and osl::checkmate::ProofNumberTable::ProofNumberTable().
template void osl::EffectUtil::findThreat< eval::ProgressEval > | ( | const NumEffectState & | state, |
Square | position, | ||
PtypeO | ptypeo, | ||
PieceVector & | out | ||
) |
template void osl::EffectUtil::findThreat< osl::eval::ml::OpenMidEndingEval > | ( | const NumEffectState & | state, |
Square | position, | ||
PtypeO | ptypeo, | ||
PieceVector & | out | ||
) |
size_t osl::find | ( | Property | property, |
const NumEffectState & | state, | ||
const RatingEnv & | e, | ||
const RatedMoveVector & | moves, | ||
Move | selected | ||
) |
Definition at line 218 of file ratingstat.cc.
References NoSeePlus, NoTakeBack, SeePlus, SeePlus2, and SeePlusX.
Referenced by osl::search::BestMoves::add(), osl::TopProb::add(), osl::search::BestMoves::addSecondary(), osl::search::SimpleHashTable::allocate(), osl::checkmate::Dfpn::attack(), osl::effect_util::AdditionalEffect::count(), osl::checkmate::Dfpn::defense(), osl::ntesuki::NtesukiTable::Table::erase(), osl::checkmate::DfpnTable::estimateNodeCount(), osl::effect_util::AdditionalEffect::find(), osl::ntesuki::NtesukiTable::Table::find(), osl::checkmate::DfpnTable::find(), osl::ntesuki::NtesukiRecord::find_split(), osl::ntesuki::NtesukiRecord::find_split_right(), osl::move_probability::StateInfo::finishUpdate(), osl::ntesuki::NtesukiTable::Table::forEachRecordFrom(), osl::checkmate::Dfpn::generateEscape(), osl::checkmate::Dfpn::hasCheckmateMove(), osl::checkmate::Dfpn::hasEscapeMove(), osl::checkmate::Dfpn::Node::isLoop(), osl::misc::FixedCapacityVector< T, Capacity >::isMember(), osl::record::kakinokiParseLine(), osl::rating::RatingEnv::make(), osl::move_probability::StateInfo::pinByOpposingSliders(), osl::record::CheckDuplicate::regist(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::AlphaBeta3::searchRoot(), osl::record::KanjiMove::strToMove(), test_position(), and osl::checkmate::Dfpn::tryProofMain().
|
inline |
Definition at line 188 of file ptype.h.
References isPiece().
Referenced by adjustKingBonus(), osl::eval::ml::PawnAdvanceUtil::cantAdvance(), osl::effect_util::UnblockableEffect::find(), osl::effect_util::EffectUtil::findThreat(), osl::effect_util::EffectUtil::forEachEffectOfPtypeO(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::hash::HashGenTable::HashGenTable(), osl::eval::ml::KingPieceRelative::index(), osl::move_probability::BlockLong::longAttackIndex(), operator<<(), osl::record::KanjiPrint::print(), osl::eval::SelectSafePieces< P >::select(), show(), osl::record::usi::show(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::eval::endgame::DefenseKing::valueOf(), osl::eval::endgame::AttackKing::valueOf(), and osl::eval::endgame::AttackDefense::valueOf().
|
inline |
Definition at line 149 of file ptype.h.
Referenced by osl::search::StateElements::addMyMove(), osl::search::StateElements::addOpMove(), adjustKingBonus(), canPromote(), osl::search::StateElements::canReject(), osl::eval::ml::PawnAdvanceUtil::cantAdvance(), osl::state::NumEffectState::epilogueCapture(), osl::eval::endgame::AttackDefense::expect(), osl::eval::PieceEval::expect(), osl::effect_util::UnblockableEffect::find(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::EffectUtil::forEachEffectOfPtypeO(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::effect_util::Neighboring25Direct::hasEffectNaive(), osl::effect_util::Neighboring8Effect::hasEffectNaive(), osl::effect_util::Neighboring8Direct::hasEffectNaive(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::hash::HashGenTable::HashGenTable(), osl::eval::ml::RookEffectBase::index1(), osl::eval::ml::BishopEffectBase::index1(), isPiece(), isPromoted(), osl::state::SimpleState::isValidMoveByRule(), osl::move_probability::BlockLong::longAttackIndex(), osl::Move::oldPtype(), operator<<(), osl::state::NumEffectState::prologueCapture(), promote(), osl::eval::SelectSafePieces< P >::select(), osl::eval::ml::RookEffectPieceKingRelative::setUp(), osl::eval::ml::BishopEffectPieceKingRelative::setUp(), show(), osl::record::usi::show(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::eval::endgame::DefenseKing::valueOf(), and osl::eval::endgame::AttackKing::valueOf().
|
inline |
Definition at line 1413 of file quiescenceSearch2.tcc.
References osl::Move::capturePtypeO(), osl::Move::from(), osl::move_generator::addeffect8::hasEffect(), osl::Move::isCapture(), osl::Move::isDrop(), KING, osl::Move::ptype(), osl::Move::ptypeO(), and osl::Move::to().
Referenced by osl::search::QuiescenceSearch2< EvalT >::examineTakeBack(), and osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2().
|
inline |
Definition at line 18 of file player.h.
Referenced by osl::eval::ml::King8EffectBase::evalWithUpdateCommon(), osl::state::NumEffectState::isConsistent(), osl::state::NumEffectState::NumEffectState(), osl::eval::endgame::KingPieceTable::resetWeights(), show(), osl::record::MiniBoardChar50::toSimpleState(), and osl::progress::ml::NewProgress::updatePieceStand7().
|
inline |
Definition at line 56 of file direction.h.
References inverseUnsafe(), and isShort8().
Referenced by osl::mobility::BishopMobility::countAllDir(), osl::eval::ml::NumPiecesBetweenBishopAndKing::countBetween(), osl::effect::EffectedNumTable::EffectedNumTable(), osl::eval::ml::BishopBishopPiece::eval(), osl::eval::ml::RookRookPiece::eval(), osl::state::NumEffectState::findLongAttackAt(), osl::move_generator::detail::generateDirNotKing(), osl::move_generator::piece_on_board::generateLong(), osl::move_generator::detail::generateOpenOrCapture(), osl::BoardTable::getShort8(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::state::NumEffectState::kingMobilityOfPlayer(), and primDir().
|
inline |
Definition at line 52 of file direction.h.
Referenced by inverse(), osl::state::NumEffectState::pinAttacker(), and primDirUnsafe().
|
inline |
ptypeが基本型(promoteしていない)かのチェック
Definition at line 58 of file ptype.h.
References isValid(), and PROOK.
Referenced by osl::PieceStand::add(), osl::search::ShouldPromoteCut::canIgnore(), osl::rating::ChaseGroup::ChaseGroup(), osl::state::SimpleState::countPiecesOnStand(), osl::rating::ChaseGroup::findMatch(), osl::PtypeTable::getIndexLimit(), osl::PtypeTable::getIndexMin(), osl::hash::HashGenTable::HashGenTable(), osl::rating::DropPtype::index(), osl::PtypeTable::initPtype(), osl::Piece::isPlayerBasicPtype(), osl::state::SimpleState::isValidMoveByRule(), osl::eval::ppair::PiecePairWithStand< Table >::setValues(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), and osl::PieceStand::sub().
|
inline |
Definition at line 48 of file direction.h.
References LONG_DIRECTION_MIN.
Referenced by osl::move_probability::AddEffectLong::addOne(), osl::effect_util::AdditionalOrShadow::count(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::effect::directionOf(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::move_generator::without_effect::generateDrop(), osl::state::NumEffectState::hasEffectByWithRemove(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), longToShort(), osl::state::NumEffectState::recalcPinOpen(), and osl::move_action::EscapeFilter< P, OrigAction >::suitable().
|
inline |
Definition at line 117 of file ptype.h.
References isMajorBasic(), isPiece(), and unpromote().
Referenced by osl::checkmate::Dfpn::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::attackMajorPiece(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::enter_king::countPiecePointsInRange(), osl::search::QuiescenceGenerator< P >::escapeByMoveOnly(), osl::eval::ml::PromotedMinorPieces::evalWithUpdate(), osl::search::QuiescenceSearch2< EvalT >::examineMoves(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::move_probability::StateInfo::finishUpdate(), osl::search::BreakThreatmate::generateAddEffect(), osl::ntesuki::NtesukiRecord::generateMoves(), osl::ntesuki::NtesukiMoveGenerator::generateWithRzone(), osl::search::FirstMoveThreatmate::isMember(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), osl::threatmate::TreePredictor::predict(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::record::ki2::show(), and osl::eval::ProgressEvalGeneral< OpeningEval >::update().
|
inline |
Definition at line 113 of file ptype.h.
Referenced by osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), isMajor(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::eval::ppair::PiecePairWithStand< Table >::setValues(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::search::QuiescenceSearch2< EvalT >::staticValueWithThreat(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), and osl::eval::ml::OpenMidEndingEval::updateSub().
|
inline |
Definition at line 122 of file ptype.h.
Referenced by osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmateAgain(), and osl::eval::ml::OpenMidEndingEval::updateSub().
|
inline |
ptypeが空白やEDGEでないかのチェック
Definition at line 50 of file ptype.h.
References isValid(), and PTYPE_PIECE_MIN.
Referenced by alt(), osl::checkmate::ProofPieces::attack(), canPromote(), captured(), osl::search::MoveGenerator::captureValue(), osl::checkmate::DisproofPieces::defense(), osl::eval::ml::Promotion37::evalOne(), osl::rating::AttackKing8Group::findMatch(), osl::rating::PatternGroup::findMatch(), osl::search::BigramKillerMove::getMove(), getOwner(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), isMajor(), isPiece(), isPromoted(), osl::record::kakinokiParseLine(), main(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::move_probability::StateInfo::makePinOfLongPieces(), osl::rating::AttackKing8::match(), osl::rating::Pattern::match(), osl::rating::LongTarget2::match(), operator<<(), osl::threatmate::TreePredictor::predict(), osl::record::KanjiPrint::print(), promote(), osl::progress::ml::NewProgress::promotion37One(), osl::checkmate::ProofNumberTable::ProofNumberTable(), osl::eval::PtypeEvalTable::reset(), osl::eval::ml::PiecePair::sanitize(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::eval::ppair::PiecePairPieceTable::setUp(), osl::record::usi::show(), osl::record::csa::show(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), unpromote(), unpromoteSafe(), and osl::move_probability::PatternCommon::updateCacheOne().
|
inline |
EMPTY, EDGEではない
Definition at line 182 of file ptype.h.
References getPtype(), isPiece(), and isValidPtypeO().
|
inline |
ptypeがpromote後の型かどうかのチェック
Definition at line 67 of file ptype.h.
References isPiece(), and KING.
Referenced by osl::checkmate::Dfpn::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::StateElements::canReject(), osl::effect_action::SimpleBetterToPromote< Action >::doAction(), osl::effect_action::SimpleBetterToPromote< Action >::doActionPtype(), osl::eval::ml::Promotion37::evalOne(), osl::eval::ml::PromotedMinorPieces::evalWithUpdate(), osl::eval::ml::PiecePairKing::evalWithUpdateBang(), osl::state::NumEffectState::findAttackAtStrict(), osl::state::NumEffectState::forEachOnBoardPtypeStrict(), osl::PtypeTable::getCanDropLimit(), osl::search::BigramKillerMove::getMove(), osl::state::NumEffectState::hasEffectByPtypeStrict(), osl::eval::ml::PtypeCount::indexBoardCount(), osl::eval::ml::PtypeCount::indexBoardCountX(), osl::eval::ml::PtypeCount::indexBoardCountY(), osl::eval::ml::PtypeCount::indexCount(), osl::eval::ml::PtypeCount::indexCountX(), osl::eval::ml::PtypeCount::indexCountY(), osl::eval::ml::PiecePairKing::indexPiece(), isPromoted(), osl::state::SimpleState::isValidMoveByRule(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), osl::eval::PtypeEvalTable::promoteValue(), osl::progress::ml::NewProgress::promotion37One(), osl::record::usi::show(), osl::record::ki2::show(), and osl::Move::unpromote().
|
inline |
ptypeOが promote済みかどうか
Definition at line 228 of file ptype.h.
References getPtype(), isPromoted(), and isValidPtypeO().
|
inline |
Definition at line 40 of file direction.h.
References SHORT_DIRECTION_MAX.
Referenced by shortToLong().
|
inline |
Definition at line 44 of file direction.h.
References SHORT8_DIRECTION_MAX.
bool osl::isValid | ( | Player | player) |
bool osl::isValid | ( | Ptype | ptype) |
bool osl::isValid | ( | Direction | d) |
Definition at line 4 of file direction.cc.
References DIRECTION_MAX, and DIRECTION_MIN.
Referenced by osl::ntesuki::OracleProverLight::attack(), osl::eval::betterThan(), osl::eval::delta(), osl::PtypeTable::getCanDropLimit(), osl::PtypeTable::getKingIndex(), osl::BoardTable::getLongDirection(), osl::effect::Liberty8Table::getLongEffect(), osl::move_generator::AddEffectTable::getNearMask(), osl::move_generator::AddEffectTable::getNearMaskLong(), osl::move_generator::AddEffectTable::getNearMaskWithPromote(), osl::move_generator::AddEffectTable::getOffsetLong(), osl::effect::Liberty8Table::getShortMask(), isBasic(), osl::Piece::isOnBoard(), isPiece(), osl::Move::isValid(), osl::state::SimpleState::kingPiece(), osl::state::SimpleState::kingSquare(), osl::eval::max(), osl::eval::min(), osl::eval::notLessThan(), and osl::eval::PtypeEvalTable::value().
bool osl::isValidPtypeO | ( | int | ptypeO) |
Definition at line 12 of file ptype.cc.
References PTYPEO_MAX, and PTYPEO_MIN.
Referenced by osl::hash::HashGenTable::addHashKey(), osl::eval::PtypeEvalTable::captureValue(), osl::eval::ml::OpenMidEndingEval::captureValue(), osl::PtypeTable::effect(), osl::PtypeTable::getEffect(), osl::PtypeTable::getEffectNotLongU(), osl::effect::MoveSignatureTable::getSignature(), isPiece(), isPromoted(), osl::hash::HashGenTable::subHashKey(), and osl::eval::PtypeEvalTable::value().
|
inline |
Definition at line 80 of file direction.h.
References isLong(), and LONG_UL.
Referenced by osl::move_probability::BlockLong::addPiece(), osl::effect_util::AdditionalOrShadow::count(), osl::effect::directionOf(), osl::effect::NumSimpleEffectTable::doEffectLong(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::move_generator::promote::AllPromoteDir< P, T, noCapture, Dir >::generateIfValid(), osl::move_generator::promote::MayPromoteDir< P, T, noCapture, Dir >::generateIfValid(), osl::move_generator::piece_on_board::generateLong(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::generateLongMove(), osl::state::NumEffectState::hasEffectByWithRemove(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), osl::state::NumEffectState::recalcPinOpen(), osl::BoardTable::setDirections(), and osl::move_action::EscapeFilter< P, OrigAction >::suitable().
|
static |
Definition at line 333 of file moveGenerator.cc.
References alt(), osl::move_generator::GenerateCapture::generate(), osl::Piece::isOnBoardByOwner(), osl::Piece::square(), and store().
|
inline |
Definition at line 104 of file offset.h.
Referenced by osl::effect_util::Neighboring25Direct::hasEffectNaive(), and osl::PtypeTable::init().
|
inline |
Definition at line 143 of file ptype.h.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::eval::ml::MajorCheckWithCapture::addOne(), addValue(), adjustDual(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::search::QuiescenceGenerator< P >::attackToPinned(), osl::rating::DefenseKing8::blocking(), osl::Move::capturePtypeO(), osl::eval::captureVal(), osl::search::MoveGenerator::captureValue(), osl::record::usi::charToPtypeO(), osl::search::QuiescenceGenerator< P >::check(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::eval::See::computeValue(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterSimpleMove(), osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterSimpleMove(), osl::eval::ppair::PiecePairEval< PiecePairWithStand< Table >, Table >::diffWithMove(), osl::state::NumEffectState::doCaptureMove(), osl::state::NumEffectState::doSimpleMove(), osl::state::NumEffectState::doUndoCaptureMove(), osl::effect::ApplyDoUndoDropMove< P, SignatureEffect< BaseState > >::doUndoDropMove(), osl::state::NumEffectState::doUndoSimpleMove(), osl::move_action::NoAddEffectFilter< OrigAction >::dropMove(), osl::state::NumEffectState::epilogueCapture(), osl::state::NumEffectState::epilogueSimple(), osl::move_action::EscapeFilter< P, OrigAction >::EscapeFilter(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PtypeYY::evalWithUpdate(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::eval::ppair::PiecePairEval< Eval, Table >::expect(), osl::effect_util::Pin::findPtype(), osl::eval::ppair::PiecePairIndex::forEachRelation(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::hasEffect(), osl::effect::hasLongMove(), osl::move_generator::addeffect8::hasShortEffect(), osl::effect::hasShortMove(), osl::move_generator::addeffect8::hasUnblockableEffect(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), osl::rating::Threatmate::isCandidate(), osl::move_classifier::DirectCheck< P >::isMember(), osl::move_classifier::TrapRook< P >::isMember(), osl::record::Characters::kanji(), osl::effect::Liberty8Table::Liberty8Table(), main(), osl::annotate::Vision3::match(), osl::hash::HashKey::newMakeMove(), osl::hash::HashKey::newUnmakeMove(), osl::game_playing::SearchPlayer::pawnValue(), osl::eval::PieceEval::PieceEval(), osl::eval::ml::PiecePair::IndexTable::pindex(), osl::threatmate::KfendPredictor::predict(), osl::threatmate::TreePredictor::predict(), osl::threatmate::MlPredictor::predict(), osl::record::KanjiPrint::print(), osl::threatmate::TreePredictor::probability(), osl::state::NumEffectState::prologueCapture(), osl::state::NumEffectState::prologueSimple(), osl::progress::PtypeProgress::PtypeProgress(), osl::progress::PtypeProgressTable::PtypeProgressTable(), osl::PtypeTable::PtypeTable(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::eval::PtypeEvalTable::reset(), osl::search::AlphaBeta2Tree< EvalT >::rootAlpha(), osl::eval::ml::PiecePair::sanitize(), Analyzer::search(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::QuiescenceSearch2< EvalT >::searchProbCut(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::seeScale(), osl::effect::setBetweenMask(), osl::effect::MoveSignatureTable::setSignature(), osl::eval::ml::PieceEval::setUp(), osl::eval::ppair::PiecePairPieceTable::setUp(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), osl::eval::ppair::PiecePairWithStand< Table >::setValues(), show(), osl::search::AlphaBeta2Tree< EvalT >::showFailLow(), showPairStat(), showPairStatAgainst(), showPieceStat(), osl::search::AlphaBeta2Tree< EvalT >::showPV(), osl::move_action::NoAddEffectFilter< OrigAction >::simpleMove(), osl::search::AlphaBeta2Tree< EvalT >::stableThreshold(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::standBonus(), osl::search::QuiescenceSearch2< EvalT >::staticValue(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), osl::effect_util::SendOffSquare::Table::Table(), osl::search::QuiescenceSearch2< EvalT >::takeBackOrChase(), osl::search::AlphaBeta2Tree< EvalT >::tryCheckmateAgain(), osl::move_action::NoAddEffectFilter< OrigAction >::unknownMove(), and osl::search::AlphaBeta2Tree< EvalT >::updateRootPV().
|
inline |
Definition at line 58 of file effectContent.h.
|
inline |
Definition at line 79 of file pathEncoding.h.
|
inline |
Definition at line 261 of file pieceStand.h.
int osl::operator* | ( | Player | , |
int | |||
) |
int osl::operator* | ( | int | , |
Player | |||
) |
int osl::operator+ | ( | Player | , |
int | |||
) |
int osl::operator+ | ( | int | , |
Player | |||
) |
int osl::operator- | ( | int | , |
Player | |||
) |
int osl::operator- | ( | Player | , |
int | |||
) |
int osl::operator/ | ( | int | , |
Player | |||
) |
int osl::operator/ | ( | Player | , |
int | |||
) |
|
inline |
Definition at line 53 of file moveLogProb.h.
References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().
|
inline |
Definition at line 62 of file effectContent.h.
References osl::EffectContent::intValue().
|
inline |
Definition at line 116 of file offset.h.
References osl::Offset::intValue().
|
inline |
Definition at line 250 of file piece.h.
References osl::Piece::intValue().
|
inline |
Definition at line 265 of file pieceStand.h.
References osl::PieceStand::getFlags(), and osl::PieceStand::testCarries().
|
inline |
Definition at line 303 of file square.h.
References osl::Square::uintValue().
|
inline |
Definition at line 332 of file move.h.
References osl::Move::intValue().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const Sennichite & | s | ||
) |
Definition at line 16 of file sennichite.cc.
References osl::Sennichite::isDraw(), osl::Sennichite::isNormal(), and osl::Sennichite::winner().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const Ptype | ptype | ||
) |
Definition at line 60 of file ptype.cc.
References osl::PtypeTable::getName(), and Ptype_Table.
std::ostream & osl::operator<< | ( | std::ostream & | os, |
MoveLogProb const & | move | ||
) |
Definition at line 7 of file moveLogProb.cc.
References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
Player | player | ||
) |
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const PathEncoding & | path | ||
) |
Definition at line 33 of file pathEncoding.cc.
References osl::PathEncoding::getDepth(), and osl::PathEncoding::getPath().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const Direction | d | ||
) |
Definition at line 10 of file direction.cc.
std::ostream & osl::operator<< | ( | std::ostream & | os, |
Offset | offset | ||
) |
Definition at line 67 of file offset.cc.
References osl::Offset::intValue().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const PtypeO | ptypeO | ||
) |
Definition at line 65 of file ptype.cc.
References getOwner(), getPtype(), and isPiece().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
const Piece | piece | ||
) |
Definition at line 12 of file piece.cc.
References osl::Piece::isPiece(), osl::Piece::number(), osl::Piece::owner(), osl::Piece::ptype(), and osl::Piece::square().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
osl::PieceStand | stand | ||
) |
Definition at line 81 of file pieceStand.cc.
References osl::PieceStand::get(), and osl::PieceStand::order.
std::ostream & osl::operator<< | ( | std::ostream & | os, |
Square | square | ||
) |
Definition at line 42 of file square.cc.
References osl::Square::isPieceStand(), osl::Square::x(), and osl::Square::y().
std::ostream & osl::operator<< | ( | std::ostream & | os, |
Move | move | ||
) |
Definition at line 40 of file move.cc.
References osl::Move::capturePtype(), osl::Move::DeclareWin(), osl::Move::from(), osl::Move::isInvalid(), osl::Move::isPass(), osl::Square::isPieceStand(), osl::Move::isValid(), osl::Move::oldPtypeO(), osl::Move::player(), osl::Move::promoteMask(), osl::Move::ptype(), PTYPE_EMPTY, osl::Move::ptypeO(), and osl::Move::to().
|
inline |
Definition at line 254 of file piece.h.
References osl::Piece::intValue().
|
inline |
Definition at line 35 of file sennichite.h.
References osl::Sennichite::value.
|
inline |
Definition at line 295 of file square.h.
References osl::Square::uintValue().
|
inline |
Definition at line 49 of file moveLogProb.h.
References osl::MoveLogProb::logProb(), and osl::MoveLogProb::move().
|
inline |
Definition at line 54 of file effectContent.h.
References osl::EffectContent::intValue().
|
inline |
Definition at line 75 of file pathEncoding.h.
References osl::PathEncoding::getPath().
|
inline |
Definition at line 108 of file offset.h.
References osl::Offset::intValue().
|
inline |
Definition at line 255 of file pieceStand.h.
References osl::PieceStand::getFlags(), and osl::PieceStand::testCarries().
|
inline |
Definition at line 344 of file move.h.
References osl::Move::intValue().
|
inline |
Definition at line 307 of file square.h.
References osl::Square::uintValue().
std::istream & osl::operator>> | ( | std::istream & | is, |
osl::Ptype & | ptype | ||
) |
|
inline |
Definition at line 15 of file player.h.
Referenced by osl::eval::endgame::AttackDefense::addValue(), osl::search::PassCounter::dec(), osl::effect::NumSimpleEffectTable::effectedChanged(), osl::effect::NumSimpleEffectTable::effectedMask(), osl::eval::endgame::KingPieceTable::effectiveIndexOf(), osl::eval::ml::KingXBlockedBase::eval(), osl::eval::ml::KingXBlockedYBase::eval(), osl::eval::ml::KnightFork::evalOne(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::progress::Effect5x3WithBonus::expect(), osl::rating::PatternGroup::findMatch(), osl::search::MoveGenerator::generateAll(), osl::PtypeTable::getCanDropLimit(), osl::PtypeTable::getShortMoveMask(), osl::search::PassCounter::inc(), osl::state::SimpleState::isConsistent(), osl::hash::GeneralBoardKey< Integer, SIZE >::isPlayerOfTurn(), osl::hash::HashKey128::isPlayerOfTurn(), osl::eval::endgame::KingPieceTable::kingIndex(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::search::MoveGenerator::nextMoveWithGeneration(), osl::search::MoveGenerator::nextTacticalMoveWithGeneration(), osl::misc::CArray2dProxy< T, Capacity2 >::operator[](), osl::misc::CArray2d< T, Capacity2, Capacity3 >::operator[](), osl::misc::CArray< std::string, 10 >::operator[](), osl::rating::PatternGroup::PatternGroup(), osl::progress::ml::NewProgress::progress16(), osl::state::SimpleState::setPiece(), osl::state::SimpleState::setPieceAll(), osl::hash::GeneralBoardKey< Integer, SIZE >::setPlayer(), osl::hash::HashKey128::setPlayer(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), and osl::eval::endgame::AttackDefense::value().
|
inline |
Definition at line 22 of file player.h.
Referenced by osl::eval::ml::BishopExchangeSilverKing::evalOne(), osl::eval::ml::EnterKingDefense::evalOne(), osl::eval::ml::KnightFork::evalOne(), osl::eval::ml::Promotion37::evalOne(), osl::BoardTable::getOffset(), osl::rating::Threatmate::knight2Step(), osl::rating::RookDefense::match(), osl::eval::ml::SilverFork::matchGold(), osl::eval::ml::SilverFork::matchRook(), playerToSign(), osl::progress::ml::NewProgress::promotion37One(), osl::game_playing::SearchPlayer::search(), osl::record::ki2::show(), and osl::move_probability::CheckFeature::sign().
|
inline |
Definition at line 27 of file player.h.
References playerToMul().
|
inline |
8方向について,primitiveな4方向を求める
Definition at line 64 of file direction.h.
References inverse(), and isShort8().
Referenced by osl::move_generator::Open< Action >::generate(), osl::move_generator::detail::generateDir(), osl::move_generator::detail::generateDirNotKing(), osl::move_generator::addeffect8::generateLongMove(), osl::move_generator::detail::generateMoveToPtypeMaskWithPieceMask(), osl::move_generator::detail::generateOpenOrCapture(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiece(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePtype(), osl::move_generator::detail::generateRookLongMoveNotKing(), osl::state::NumEffectState::pinnedCanMoveTo(), and osl::state::NumEffectState::wasCheckEvasion().
|
inline |
8方向について,primitiveな4方向を求める dとしてknight, INVALIDなども来る
Definition at line 73 of file direction.h.
References inverseUnsafe().
Referenced by osl::move_generator::detail::generateMoveToPtypeMaskWithPieceMask(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiece(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::move_generator::detail::generateRookLongMoveNotKing(), osl::state::NumEffectState::pinnedCanMoveTo(), and osl::state::NumEffectState::wasCheckEvasion().
|
inline |
promote可能なptypeに対して,promote後の型を返す promote不可のptypeを与えてはいけない.
Definition at line 105 of file ptype.h.
References canPromote(), and isPiece().
Referenced by osl::eval::See::computeValue(), osl::eval::TakeBackValue::computeValue(), osl::record::KisenUtils::convertMove(), osl::effect_action::SimpleBetterToPromote< Action >::doAction(), osl::effect_action::Promote< Action >::doAction(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect_action::SimpleBetterToPromote< Action >::doActionPtype(), osl::effect_action::SimpleMove< Action >::doActionPtype(), osl::effect_action::Promote< Action >::doActionPtype(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::Move::fromMove16(), osl::move_generator::piece_on_board::generateLong(), osl::move_generator::detail::generateMovePiecePtypeMask(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtypeUnsafe(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::move_generator::piece_on_board::generateShort(), osl::search::BigramKillerMove::getMove(), osl::record::KisenPlusFile::getMoves(), osl::record::MiniBoard::getState(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::move_generator::addeffect8::AddEffect8Table::initMoveOffset(), osl::PtypeTable::initPtypeSub(), osl::Piece::isPlayerBasicPtype(), osl::move_probability::LureDefender::match(), osl::search::promoteIf(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), show(), osl::record::kakinoki::strToMove(), osl::record::MiniBoardChar50::toSimpleState(), and update().
|
inline |
pieceをpromoteさせる.
promote不可のptypeを与えてはいけない.
Definition at line 155 of file ptype.h.
References canPromote(), getPtype(), and isPiece().
|
inline |
pieceを引数次第でpromoteさせる
Definition at line 164 of file ptype.h.
Referenced by osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterCaptureMove(), osl::eval::ppair::PiecePairWithStand< PiecePairPieceTable >::diffAfterSimpleMove(), and osl::eval::ppair::PiecePairEvalTableBase< PiecePairPieceTable >::diffAfterSimpleMove().
|
inline |
Definition at line 137 of file ptype.h.
References PTYPEO_MIN, and result.
Referenced by osl::move_probability::PatternCommon::addOne(), osl::eval::ml::PiecePair::adjust12(), osl::eval::ProgressEvalGeneral< progress_eval_opening_t >::captureValue(), osl::search::BigramKillerMove::dump(), osl::eval::ml::BishopStandFile5::eval(), osl::eval::ml::PiecePair::evalWithUpdateCompiled(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::eval::ml::PiecePair::index(), osl::eval::ml::King3Pieces::index(), osl::eval::ml::BishopHead::indexK(), osl::eval::ml::BishopHead::indexX(), osl::eval::ml::King3Pieces::indexX(), osl::eval::ml::King3Pieces::indexY(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::move_probability::BreakThreatmate::match(), osl::search::BigramKillerMove::operator[](), osl::misc::CArray< std::string, 10 >::operator[](), osl::eval::ml::PiecePair::IndexTable::pindex(), osl::search::BigramKillerMove::setMove(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::progress::Effect5x3Table::setupLongEffect(), osl::progress::Effect5x3Table::setupShortEffect(), osl::eval::ml::PiecePair::sum12(), osl::move_probability::PatternCommon::updateCacheOne(), and osl::eval::ml::PiecePair::valueCompiled().
|
inline |
引数に longDirを与えてはいけない
Definition at line 88 of file direction.h.
References isShort(), and LONG_UL.
Referenced by osl::effect::EffectedNumTable::EffectedNumTable(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), and osl::checkmate::ProofNumberTable::ProofNumberTable().
void osl::showLogProb | ( | const stat::Histogram & | numerator, |
const stat::Histogram & | denominator | ||
) |
Definition at line 102 of file ratingstat.cc.
References osl::stat::Histogram::frequency(), osl::stat::Histogram::length(), osl::stat::Histogram::start(), and osl::stat::Histogram::width().
Referenced by main(), and osl::TopProb::show().
void osl::showLogProb | ( | const stat::Histogram & | numerator, |
const stat::Histogram & | denom1, | ||
const stat::Histogram & | denom2 | ||
) |
Definition at line 116 of file ratingstat.cc.
References osl::stat::Histogram::frequency(), osl::stat::Histogram::length(), osl::stat::Histogram::start(), and osl::stat::Histogram::width().
void osl::showLogProb | ( | const Histogram8 & | numerator, |
const Histogram8 & | denom1, | ||
const Histogram8 & | denom2 | ||
) |
Definition at line 141 of file ratingstat.cc.
|
inline |
ptypeがpromote後の型の時に,promote前の型を返す. promoteしていない型の時はそのまま返す
Definition at line 87 of file ptype.h.
References isPiece().
Referenced by osl::search::StateElements::addMyMove(), osl::search::StateElements::addOpMove(), osl::move_probability::MoveInfo::adhocAdjustBishopFork(), osl::ntesuki::NtesukiTable::allocateWithMove(), osl::checkmate::OracleAdjust::attack(), osl::checkmate::ProofPieces::attack(), osl::checkmate::Dfpn::attack(), osl::checkmate::LibertyEstimator::attackH(), osl::search::QuiescenceGenerator< P >::attackMajorPieceFirstSelection(), osl::ntesuki::NtesukiRecord::calcProofPiecesOr(), osl::search::StateElements::canReject(), osl::rating::Threatmate::captureForKnightCheck(), osl::search::QuiescenceGenerator< P >::check(), osl::search::SacrificeCheck::count2(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::checkmate::DisproofPieces::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::effect_action::BetterToPromote< Action >::doActionPtype(), osl::effect_action::AlwaysMove< Action >::doActionPtype(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::state::SimpleState::emulateCapture(), osl::state::NumEffectState::epilogueCapture(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::PieceEval::evalWithUpdate(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::eval::ml::PawnDropBoth::evalWithUpdate(), osl::eval::ml::PieceStandY::evalWithUpdate(), osl::eval::ml::NonPawnPieceStandTurn::evalWithUpdateBang(), osl::eval::ml::PtypeCount::evalWithUpdateBang(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::eval::MinorPieceBonus::expect(), osl::rating::DropCapturedGroup::findMatchWithoutProgress(), osl::ntesuki::NtesukiTable::findWithMove(), osl::ntesuki::NtesukiTable::findWithMoveConst(), osl::move_probability::StateInfo::finishUpdate(), osl::GenerateEscapeKing::generate(), osl::checkmate::Dfpn::generateCheck(), osl::search::MoveGenerator::generateKingEscape(), osl::move_generator::without_effect::generateLongMove(), osl::search::BigramKillerMove::getMove(), osl::PtypeTable::hasLongMove(), osl::eval::ml::PtypeCount::indexBoardCount(), osl::eval::ml::PtypeCount::indexBoardCountX(), osl::eval::ml::PtypeCount::indexBoardCountY(), osl::eval::ml::PtypeCount::indexCount(), osl::eval::ml::PtypeCount::indexCountX(), osl::eval::ml::PtypeCount::indexCountY(), osl::state::SimpleState::isConsistent(), isMajor(), osl::move_classifier::BlockLongEffect< P, T >::isMember(), osl::eval::ml::KnightFork::isTarget(), osl::state::SimpleState::isValidMoveByRule(), make1(), make2(), osl::rating::PatternLongGroup::makeDirection(), osl::rating::PatternLongGroup2::makeDirection(), osl::rating::DropCaptured::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::move_probability::CapturePtype::match(), osl::move_probability::BishopAttack::match(), osl::move_probability::RookAttack::match(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::PieceStand::nextStand(), osl::PieceBasicLessThan::operator()(), osl::rating::PatternLong::PatternLong(), osl::rating::PatternLong2::PatternLong2(), osl::PieceStand::previousStand(), osl::state::NumEffectState::prologueCapture(), osl::eval::PtypeEvalTable::reset(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::ntesuki::NtesukiRecord::setDisproofPieces(), osl::state::SimpleState::setPiece(), osl::progress::Effect5x3Table::setupOnStand(), osl::record::usi::show(), osl::record::csa::show(), osl::record::ki2::show(), show(), osl::eval::endgame::AttackKing::Table::Table(), osl::eval::endgame::DefenseKing::Table::Table(), osl::state::SimpleState::testValidityOtherThanEffect(), unpromoteSafe(), osl::eval::MinorPieceBonus::update(), osl::eval::ProgressEvalGeneral< OpeningEval >::update(), osl::progress::ml::NewProgress::updateMain(), osl::progress::Effect5x3::updateStand(), osl::eval::ml::OpenMidEndingEval::updateSub(), osl::search::StateElements::validCaptureMove(), and osl::search::StateElements::validSimpleMove().
|
inline |
|
inline |
Definition at line 94 of file ptype.h.
References isPiece(), and unpromote().
Referenced by osl::eval::ml::AttackMajorsInBase::index().
const BoardTable osl::Board_Table |
Definition at line 107 of file tables.cc.
Referenced by osl::move_probability::AddEffectLong::addOne(), osl::move_probability::BlockLong::addPiece(), osl::checkmate::OracleAdjust::attack(), osl::Square::back(), osl::move_probability::KingBlockade::blockAll(), osl::checkmate::detail::blockingDiagonalAttack(), osl::move_generator::detail::blockingU(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateGoldPenalty(), osl::eval::ProgressEvalGeneral< OpeningEval >::calculateSilverPenalty(), osl::move_generator::addeffect8::canAddLongEffect(), osl::move_classifier::PawnDropCheckmate< P >::canEscape(), osl::eval::ml::PawnAdvanceUtil::cantAdvance(), osl::rating::Threatmate::captureForKnightCheck(), osl::move_probability::StateInfo::clearOldCache(), osl::effect_util::AdditionalOrShadow::count(), osl::eval::ml::NumPiecesBetweenBishopAndKing::countBetween(), osl::checkmate::ProofNumberTable::countLibertyLong(), osl::checkmate::ProofNumberTable::countLibertyShortNotKnight(), osl::move_probability::CoverFork::defending(), osl::effect::directionOf(), osl::effect::NumSimpleEffectTable::doBlockAt(), osl::checkmate::EdgeTable::EdgeTable(), osl::effect::EffectedNumTable::EffectedNumTable(), osl::checkmate::CheckmateIfCapture::effectiveAttackCandidate0(), osl::eval::ml::King8Effect::effectState(), osl::eval::ml::King8EffectAll::effectState(), osl::search::QuiescenceGenerator< P >::escapeByMoveOnly(), osl::search::QuiescenceGenerator< P >::escapeNormalPiece(), osl::eval::ml::KnightHead::eval(), osl::eval::ml::PawnPtypeOPtypeO::eval(), osl::effect_util::AdditionalEffect::find(), osl::effect_util::UnblockableEffect::find(), osl::rating::PatternLong2::find(), osl::rating::PatternBlock::find(), osl::eval::See::findAdditionalPieces(), osl::search::BreakThreatmate::findBlockLong(), osl::move_probability::StateInfo::findCheckmateDefender(), osl::effect_util::VirtualPin::findDirection(), osl::effect_util::Pin::findDirection(), osl::eval::ml::BishopRookFork::findDropInLine(), osl::eval::TakeBackValue::findEffectPiecesAfterMove(), osl::rating::BadLanceGroup::findMatch(), osl::move_action::EscapeFilter< P, OrigAction >::findThreat(), osl::search::BreakThreatmate::generate(), osl::move_generator::AddEffect8Defense< P >::generate(), osl::move_generator::CaptureEffectToAroundKing8< P >::generate(), osl::move_generator::Escape< Action >::generateBlocking(), osl::move_generator::Escape< Action >::generateBlockingKing(), osl::move_generator::OpenKingRoad< P >::generateDir(), osl::move_generator::without_effect::generateDrop(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::addeffect8::generateLongMove(), osl::move_generator::without_effect::generateLongMoveDirectCanPromote(), osl::move_generator::without_effect::generateLongMoveDirectNoPromote(), osl::move_generator::without_effect::generateMove(), osl::move_generator::detail::generateMoveToPtypeMaskWithPieceMask(), osl::move_generator::detail::generateOpenOrCapture(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiece(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePiecePtype(), osl::move_generator::detail::generateRookLongMoveNotKing(), osl::effect_util::Neighboring8Effect::Table::hasAtMaxPieceBetween(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDir(), osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece(), osl::effect_util::AdditionalEffect::hasEffect(), osl::state::NumEffectState::hasEffectByWithRemove(), osl::effect_util::Neighboring8Effect::hasEffectFromTo(), osl::effect_util::Neighboring8Direct::hasEffectFromTo(), osl::state::NumEffectState::hasEffectIf(), osl::state::NumEffectState::hasEffectInDirection(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect::hasShortMove(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::PtypeTable::init(), osl::state::SimpleState::isEmptyBetween(), osl::move_generator::without_effect::isEmptyOrAdditional(), osl::move_classifier::KingOpenMove< P >::isMember(), osl::move_classifier::BlockLongEffect< P, T >::isMember(), osl::move_classifier::KingOpenMove< P >::isMemberMain(), osl::Neighboring8::isNeighboring8(), osl::move_action::ToAroundKing24Filter< P, OrigAction >::isToAroundKing24Move(), osl::move_action::ToAroundKing8Filter< P, OrigAction >::isToAroundKing8Move(), osl::checkmate::ProofNumberTable::libertyAfterAllMove(), osl::effect::Liberty8Table::longEffectOf(), osl::checkmate::King8Info::make(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::rating::BadLance::match(), osl::move_probability::LanceAttack::match(), osl::move_probability::LureDefender::match(), osl::move_probability::OpposingPawn::match(), osl::move_probability::DropAfterOpposingPawn::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::KingBlockade::match(), osl::move_probability::PromotionBySacrifice::match(), osl::eval::ml::SilverFork::matchGold(), osl::eval::ml::SilverFork::matchRook(), osl::Square::neighbor(), osl::rating::PatternLong::nextPieceOrEnd(), osl::rating::Pattern::nextSquare(), osl::Offset::Offset(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateSimple::operator()(), osl::eval::ml::King8EffectBase::MakeEffectStateDefense::operator()(), osl::state::NumEffectState::pinnedCanMoveTo(), osl::state::NumEffectState::pinnedDir(), osl::state::NumEffectState::recalcPinOpen(), osl::effect::shortMaskOf(), osl::checkmate::detail::slowCheckDrop(), osl::checkmate::ImmediateCheckmate::slowHasCheckmateMoveDirPiece(), osl::move_action::EscapeFilter< P, OrigAction >::suitable(), osl::move_probability::StateInfo::updatePinnedGenerals(), and osl::state::NumEffectState::wasCheckEvasion().
const int osl::EDGE_NUM =0x40 |
Definition at line 14 of file piece.h.
Referenced by osl::Piece::EDGE().
const int osl::EMPTY_NUM =0x80 |
Definition at line 13 of file piece.h.
Referenced by osl::effect::NumSimpleEffectTable::doBlockAt(), osl::effect::NumSimpleEffectTable::doEffectLong(), osl::Piece::EMPTY(), osl::state::NumEffectState::findLongAttackAt(), osl::move_generator::detail::generateNotKing(), and osl::checkmate::ImmediateCheckmate::hasCheckmateMoveDirPiece().
const int osl::EndgameIndex = EvalStages-1 |
Definition at line 25 of file midgame.h.
Referenced by osl::eval::ml::OpenMidEndingEval::doResetWeights(), osl::eval::ml::OpenMidEndingEval::endgameValue(), osl::eval::ml::OpenMidEndingEval::setRandom(), and osl::eval::ml::King25EffectEachBothEnding::setUp().
const int osl::EvalStages = 4 |
Definition at line 14 of file midgame.h.
Referenced by osl::eval::ml::King25EffectEachXY::setUp().
const int osl::NStages = 4 |
Definition at line 13 of file midgame.h.
Referenced by osl::eval::ml::PinPtype::setUp(), osl::eval::ml::KingPieceRelativeNoSupport::setUp(), osl::eval::ml::NonPawnPieceStandCombination::setUp(), osl::eval::ml::RookMobilitySum::setUp(), osl::eval::ml::PinPtypeDistance::setUp(), osl::eval::ml::RookMobilityX::setUp(), osl::eval::ml::RookPawnY::setUp(), osl::eval::ml::PinPtypePawnAttack::setUp(), osl::eval::ml::RookMobilityY::setUp(), osl::eval::ml::RookMobilitySumKingX::setUp(), osl::eval::ml::CheckShadowPtype::setUp(), osl::eval::ml::PtypeYY::setUp(), osl::eval::ml::NonPawnPieceStandTurn::setUp(), osl::eval::ml::RookMobilityXKingX::setUp(), osl::eval::ml::RookPawnYX::setUp(), osl::eval::ml::BishopMobilityEach::setUp(), osl::eval::ml::PieceStandY::setUp(), osl::eval::ml::CanCheckNonPawnPieceStandCombination::setUp(), osl::eval::ml::PieceStandCombinationBoth::setUp(), osl::eval::ml::KingXBothBlocked::setUp(), osl::eval::ml::RookEffectPiece::setUp(), osl::eval::ml::RookEffectPieceKingRelative::setUp(), osl::eval::ml::KingXBothBlockedY::setUp(), osl::eval::ml::RookPromoteDefense::setUp(), osl::eval::ml::KingXBlocked3::setUp(), osl::eval::ml::RookPromoteDefenseRookH::setUp(), osl::eval::ml::King25Effect2::setUp(), osl::eval::ml::KingXBlocked3Y::setUp(), osl::eval::ml::King25EffectY2::setUp(), osl::eval::ml::King25EffectSupported::setUp(), osl::eval::ml::King25EffectSupportedY::setUp(), osl::eval::ml::BishopEffectPiece::setUp(), osl::eval::ml::BishopEffectPieceKingRelative::setUp(), osl::eval::ml::BishopHead::setUp(), osl::eval::ml::PawnDropX::setUp(), osl::eval::ml::PawnDropPawnStand::setUp(), osl::eval::ml::PawnDropPawnStandX::setUp(), osl::eval::ml::PawnDropPawnStandY::setUp(), osl::eval::ml::BishopHeadKingRelative::setUp(), osl::eval::ml::PawnDropNonDrop::setUp(), osl::eval::ml::BishopHeadX::setUp(), osl::eval::ml::PawnStateKingRelative::setUp(), osl::eval::ml::KingRookBishop::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingSelf::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingOpp::setUp(), osl::eval::ml::NumPiecesBetweenBishopAndKingAll::setUp(), osl::eval::ml::BishopBishopPiece::setUp(), osl::eval::ml::RookRook::setUp(), osl::eval::ml::SilverHeadPawnKingRelative::setUp(), osl::eval::ml::RookRookPiece::setUp(), osl::eval::ml::King25EffectEachXY::setUp(), osl::eval::ml::King25EffectEachKXY::setUp(), osl::eval::ml::BishopStandFile5::setUp(), osl::eval::ml::King3Pieces::setUp(), osl::eval::ml::MajorCheckWithCapture::setUp(), osl::eval::ml::RookSilverKnight::setUp(), osl::eval::ml::BishopSilverKnight::setUp(), osl::eval::ml::GoldKnightKingRelative::setUp(), osl::eval::ml::GoldSideMove::setUp(), osl::eval::ml::AttackMajorsInBase::setUp(), osl::eval::ml::King3PiecesXY::setUp(), osl::eval::ml::KingMobility::setUp(), osl::eval::ml::KingMobilityWithRook::setUp(), osl::eval::ml::KingMobilityWithBishop::setUp(), osl::eval::ml::KingMobilitySum::setUp(), osl::eval::ml::King25BothSide::setUp(), osl::eval::ml::KnightCheckY::setUp(), osl::eval::ml::KnightHead::setUp(), osl::eval::ml::King25BothSideX::setUp(), osl::eval::ml::KnightHeadOppPiecePawnOnStand::setUp(), osl::eval::ml::King25BothSideY::setUp(), osl::eval::ml::King25Mobility::setUp(), osl::eval::ml::PawnPtypeOPtypeO::setUp(), osl::eval::ml::PromotedMinorPieces::setUp(), osl::eval::ml::King25MobilityX::setUp(), osl::eval::ml::King25MobilityY::setUp(), osl::eval::ml::King25Effect3::setUp(), osl::eval::ml::NonPawnAttacked::setUp(), osl::eval::ml::King25Effect3Y::setUp(), osl::eval::ml::King25EffectCountCombination::setUp(), osl::eval::ml::King25EffectCountCombinationY::setUp(), osl::eval::ml::NonPawnAttackedKingRelative::setUp(), osl::eval::ml::PromotedMinorPiecesY::setUp(), osl::eval::ml::PawnPtypeOPtypeOY::setUp(), osl::eval::ml::NonPawnAttackedPtype::setUp(), osl::eval::ml::NonPawnAttackedPtypePair::setUp(), osl::eval::ml::PtypeCount::setUp(), osl::eval::ml::PtypeCountXY::setUp(), osl::eval::ml::PtypeCountXYAttack::setUp(), osl::eval::ml::LanceEffectPieceKingRelative::setUp(), osl::eval::ml::PtypeYPawnY::setUp(), osl::eval::ml::GoldAndSilverNearKing::setUp(), osl::eval::ml::GoldAndSilverNearKingCombination::setUp(), osl::eval::ml::PtypeCombination::setUp(), osl::eval::ml::SilverFork::setUp(), osl::eval::ml::BishopRookFork::setUp(), osl::eval::ml::KnightFork::setUp(), osl::eval::ml::SilverAdvance26::setUp(), and osl::eval::ml::Promotion37::setUp().
const PathEncodingTable osl::Path_Encoding_Table |
Definition at line 129 of file tables.cc.
Referenced by osl::PathEncoding::popMove(), and osl::PathEncoding::pushMove().
const PieceTable osl::Piece_Table |
Definition at line 106 of file tables.cc.
Referenced by osl::state::NumEffectState::findThreatenedPiece(), osl::state::SimpleState::init(), osl::state::SimpleState::isConsistent(), osl::eval::PieceEval::PieceEval(), osl::progress::PtypeProgress::PtypeProgress(), osl::state::SimpleState::setPiece(), osl::state::SimpleState::setPieceAll(), osl::eval::ppair::PiecePairEvalTableBase< Table >::setValues(), osl::record::csa::show(), osl::state::NumEffectState::showEffect(), and osl::record::MiniBoardChar50::toSimpleState().
Definition at line 37 of file ptype.h.
Referenced by osl::move_probability::King5x5Ptype::addOne(), osl::eval::ppair::PiecePairPieceEval::adjustableDimension(), osl::eval::ml::BishopRookFork::bishopIndex(), compare(), osl::eval::ml::OpenMidEndingEval::doResetWeights(), osl::eval::endgame::KingPieceTable::effectiveIndexOf(), osl::eval::ml::PinPtypeAll::evalOne(), osl::eval::ml::CheckShadowPtype::evalOne(), osl::eval::ml::MajorGoldSilverAttacked< Opening >::index(), osl::eval::ml::BishopBishopPiece::index(), osl::eval::ml::RookRookPiece::index(), osl::eval::ml::NonPawnAttacked::index(), osl::eval::ml::NonPawnAttackedPtype::index(), osl::eval::ml::KnightFork::index(), osl::eval::ml::NonPawnAttackedPtypePair::index1(), osl::eval::ml::NonPawnAttackedPtypePair::index2(), osl::eval::ml::NonPawnAttacked::indexK(), osl::move_probability::CheckFeature::match(), osl::move_probability::CapturePtype::match(), osl::move_probability::SquareY::match(), osl::move_probability::SquareX::match(), osl::move_probability::KingRelativeY::match(), osl::move_probability::KingRelativeX::match(), osl::move_probability::FromEffect::match(), osl::move_probability::ToEffect::match(), osl::move_probability::MoveFromOpposingSliders::match(), osl::move_probability::AttackFromOpposingSliders::match(), osl::move_probability::AttackToOpposingSliders::match(), osl::move_probability::BreakThreatmate::match(), osl::move_probability::LureDefender::match(), osl::move_probability::CheckmateIfCapture::match(), osl::move_probability::AttackKing8Long::match(), osl::move_probability::CoverPawn::match(), osl::move_probability::SacrificeAttack::match(), osl::move_probability::CoverFork::match(), osl::move_probability::ThreatmateByCapture::match(), osl::move_probability::PromotionBySacrifice::match(), osl::move_probability::EscapeThreatened::match(), osl::move_probability::PawnAttack::matchPtype(), median(), osl::search::operator<<(), osl::eval::endgame::KingPieceTable::otherIndex(), osl::PathEncodingTable::PathEncodingTable(), osl::eval::endgame::KingPieceTable::randomize(), osl::eval::ppair::PiecePairPieceEval::resetWeights(), osl::eval::endgame::KingPieceTable::resetWeights(), osl::eval::ProgressEvalGeneral< OpeningEval >::resetWeights(), osl::eval::endgame::KingPieceTable::saveText(), osl::progress::ml::NewProgress::setUp(), osl::eval::ml::NonPawnAttackedKingRelative::setUp(), osl::eval::ml::NonPawnAttackedPtypePair::setUp(), osl::eval::ml::BishopRookFork::setUp(), osl::eval::ml::KnightFork::setUp(), osl::move_probability::PawnAttack::squareStatus(), and osl::move_probability::ToEffect::supportAttack().
const PtypeTable osl::Ptype_Table |
Definition at line 109 of file tables.cc.
Referenced by osl::checkmate::OracleAdjust::attack(), osl::checkmate::Dfpn::attack(), osl::search::QuiescenceGenerator< P >::attackKing8(), osl::search::QuiescenceGenerator< P >::breakThreatmate(), osl::PieceStand::canAdd(), osl::move_generator::addeffect8::canAddLongEffect(), osl::search::ShouldPromoteCut::canIgnore(), osl::state::SimpleState::countPiecesOnStandBit(), osl::checkmate::FixedDepthSearcher2::defenseEstimation(), osl::checkmate::FixedDepthSearcher::defenseEstimation(), osl::effect_action::SimpleMove< Action >::doAction(), osl::effect_action::BetterToPromote< Action >::doAction(), osl::effect_action::AlwaysMove< Action >::doAction(), osl::effect::EffectedNumTable::EffectedNumTable(), osl::eval::ml::PieceStand::eval(), osl::eval::ml::PieceStand::evalWithUpdate(), osl::search::QuiescenceSearch2< EvalT >::examineMoves(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), osl::effect_util::AdditionalEffect::find(), osl::effect_util::UnblockableEffect::find(), osl::eval::See::findAdditionalPieces(), osl::move_generator::addeffect8::findBlocker(), osl::effect_util::VirtualPin::findDirection(), osl::effect_util::Pin::findDirection(), osl::eval::TakeBackValue::findEffectPiecesAfterMove(), osl::rating::EscapePinGroup::findMatch(), osl::effect_util::Neighboring8Direct::Table::findNearest(), osl::effect_util::Pin::findPtype(), osl::state::NumEffectState::findThreatenedPiece(), osl::effect_util::EffectUtil::forEachEffectOfPtypeO(), osl::search::BreakThreatmate::generate(), osl::search::BreakThreatmate::generateBreakDrop(), osl::search::AlphaBeta3::generateCapture(), osl::search::AlphaBeta3::generateCaptureAll(), osl::checkmate::Dfpn::generateCheck(), osl::move_generator::addeffect8::generateLongDropWithOffset(), osl::move_generator::without_effect::generateLongMove(), osl::move_generator::PieceOnBoard< Action, noCapturePromote >::generatePieceUnsafe(), osl::effect::Liberty8Table::getLongEffect(), osl::search::BigramKillerMove::getMove(), osl::effect_util::Neighboring8Direct::Table::hasEffect(), osl::move_generator::addeffect8::hasEffect(), osl::effect_util::Neighboring8Effect::Table::hasEffect(), osl::state::NumEffectState::hasEffectIf(), osl::effect_util::Neighboring25Direct::hasEffectNaive(), osl::effect_util::Neighboring8Effect::hasEffectNaive(), osl::effect_util::Neighboring8Direct::hasEffectNaive(), osl::effect_util::Neighboring8Direct::Table::hasEffectOrAdditional(), osl::effect::hasLongMove(), osl::move_generator::addeffect8::hasShortEffect(), osl::effect::hasShortMove(), osl::move_generator::addeffect8::hasUnblockableEffect(), osl::checkmate::ImmediateCheckmateTable::ImmediateCheckmateTable(), osl::eval::ml::NonPawnPieceStandTurn::index(), osl::eval::ml::PieceStandY::index(), osl::rating::ImmediateAddSupport::index(), osl::eval::ml::PtypeCount::indexBoardCount(), osl::eval::ml::PtypeCount::indexBoardCountX(), osl::eval::ml::PtypeCount::indexBoardCountY(), osl::eval::ml::PtypeCount::indexCount(), osl::eval::ml::PtypeCount::indexCountX(), osl::eval::ml::PtypeCount::indexCountY(), osl::effect_util::Neighboring8Direct::Table::init(), osl::effect_util::Neighboring8Effect::Table::init(), osl::move_generator::addeffect8::AddEffect8Table::initDropSquare(), osl::move_generator::addeffect8::AddEffect8Table::initLongDropSquare(), osl::state::SimpleState::isAlmostValidMove(), osl::move_probability::BreakThreatmate::isDefendingThreatmate(), osl::effect_util::UnblockableCheck::isMember(), osl::move_classifier::KingOpenMove< P >::isMemberMain(), osl::state::SimpleState::isValidMoveByRule(), osl::effect::Liberty8Table::Liberty8Table(), osl::effect::Liberty8Table::longEffectOf(), osl::rating::EscapePin::match(), osl::annotate::ThreatmateIfMorePieces::match(), osl::move_probability::AddEffectLong::match(), osl::record::MiniBoardChar50::MiniBoardChar50(), osl::rating::AttackKing8::name(), osl::rating::Pattern::name(), osl::rating::DropPtype::name(), osl::rating::RelativeKingX::name(), osl::rating::DefenseKing8::name(), osl::rating::PinAttack::name(), osl::rating::RelativeKingY::name(), osl::rating::LongTarget::name(), osl::rating::LongTarget2::name(), osl::rating::PatternLong::name(), osl::rating::PatternLong2::name(), osl::rating::Chase::name(), osl::progress::ml::NewProgress::NewProgress(), osl::effect::AddMaskAction< Liberty, P, T >::operator()(), operator<<(), osl::state::NumEffectState::prologueDrop(), osl::checkmate::ProofNumberTable::ProofNumberTable(), osl::search::AlphaBeta3::quiesce(), osl::search::AlphaBeta3::quiesceRoot(), osl::effect::setBetweenMask(), osl::eval::ml::PieceStandY::setUp(), osl::eval::ml::PtypeCountXY::setUp(), osl::eval::ml::PtypeCountXYAttack::setUp(), osl::record::csa::show(), osl::record::ki2::show(), show(), osl::record::csa::strToPtype(), osl::effect_util::SendOffSquare::Table::Table(), osl::progress::ml::NewProgress::updateMain(), osl::move_probability::StateInfo::updatePinnedGenerals(), osl::search::StateElements::validCaptureMove(), and osl::search::StateElements::validSimpleMove().
const PtypeO osl::PTYPEO_EDGE =newPtypeO(WHITE,PTYPE_EDGE) |
Definition at line 236 of file ptype.h.
Referenced by osl::move_probability::PatternCommon::addOne(), osl::eval::ml::PawnPtypeOPtypeO::eval(), osl::eval::ml::LanceEffectPieceKingRelative::eval(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::move_probability::BreakThreatmate::match(), osl::effect::MoveSignatureTable::MoveSignatureTable(), osl::eval::ml::RookEffectPieceKingRelative::setUp(), osl::eval::ml::BishopEffectPieceKingRelative::setUp(), and osl::eval::ml::BishopHeadKingRelative::setUp().
const PtypeO osl::PTYPEO_EMPTY =newPtypeO(BLACK,PTYPE_EMPTY) |
Definition at line 235 of file ptype.h.
Referenced by osl::Move::capturePtypeOSafe(), osl::eval::ml::PawnPtypeOPtypeO::evalWithUpdate(), osl::effect::MoveSignatureTable::MoveSignatureTable(), and osl::eval::ml::BishopHeadKingRelative::setUp().
const int osl::PTYPEO_SIZE =PTYPEO_MAX-PTYPEO_MIN+1 |
Definition at line 240 of file ptype.h.
Referenced by osl::eval::ml::PiecePair::IndexTable::amplify(), osl::eval::ml::PiecePair::compile(), osl::hash::HashGenTable::HashGenTable(), osl::eval::ppair::PiecePairRawTable::loadFromBinaryFile(), osl::move_probability::BlockLong::makeLongAttackOne(), osl::misc::CArray< std::string, 10 >::operator[](), osl::eval::ProgressEvalGeneral< OpeningEval >::setUpInternal(), and osl::eval::ppair::PiecePairRawTable::writeInBinaryFile().