#include <moveGenerator.h>
Public メソッド | |
MoveGenerator () | |
void | init (int limit, SimpleHashRecord *record, const eval::ProgressEval &, const NumEffectState &, bool in_pv, Move hash_move, bool quiesce=false) |
template<Player P> | |
const MoveLogProb | nextTacticalMove (const SearchState2 &state) |
template<Player P> | |
const MoveLogProb | nextMove (const SearchState2 &state) |
void | registerMove (const NumEffectState &state, Move m) |
killer move ʤ | |
int | triedMoves () const |
const PieceMask & | myPins () const |
void | dump () const |
void | generateAll (Player P, const SearchState2 &state, category::analyzer::CategoryMoveVector &) |
template<Player P> | |
void | generateAll (const SearchState2 &, MoveLogProbVector &) |
void | generateAll (Player P, const SearchState2 &state, MoveLogProbVector &out) |
const MoveLogProbVector & | generated () const |
template<Player P> | |
void | quiesceCapture (const NumEffectState &, Position) |
Static Public メソッド | |
static int | captureValue (Ptype) |
Private 型 | |
enum | State { INITIAL, KING_ESCAPE, TAKE_BACK, BREAK_THREATMATE, CAPTURE, TACTICAL_FINISH, TESUJI, ALL, FINISH } |
typedef void(MoveGenerator::* | generator_t )(const SearchState2 &) |
Private メソッド | |
template<Player P> | |
const MoveLogProb | nextMoveWithGeneration (const SearchState2 &) |
template<Player P> | |
const MoveLogProb | nextTacticalMoveWithGeneration (const SearchState2 &) |
template<Player P> | |
void | generateKingEscape (const SearchState2 &state) |
template<Player P> | |
void | generateTakeBack (const SearchState2 &state) |
template<Player P> | |
void | generateBreakThreatmate (const SearchState2 &state) |
template<Player P> | |
void | generateCapture (const SearchState2 &state) |
template<Player P> | |
void | generateTesuji (const SearchState2 &state) |
template<Player P> | |
void | generateAllExp (const SearchState2 &state) |
template<Player P> | |
void | generateAll (const SearchState2 &state) |
template<Player P> | |
void | addCapture (const NumEffectState &, const RatingEnv &, const MoveVector &) |
Private 変数 | |
MoveLogProbVector | moves |
int | cur_state |
size_t | cur_index |
SimpleHashRecord * | record |
int | limit |
int | tried |
MoveMarker | marker |
RatingEnv | env |
Progress32 | progress |
bool | in_quiesce |
bool | in_pv |
Static Private 変数 | |
static const CArray2d < generator_t, 2, FINISH > | Generators |
static const CArray< const char *, FINISH > | GeneratorNames |
moveGenerator.h の 60 行で定義されています。
typedef void(MoveGenerator::* osl::search::MoveGenerator::generator_t)(const SearchState2 &) [private] |
enum osl::search::MoveGenerator::State [private] |
moveGenerator.h の 62 行で定義されています。
osl::search::MoveGenerator::MoveGenerator | ( | ) |
moveGenerator.cc の 131 行で定義されています。
void osl::search::MoveGenerator::init | ( | int | limit, | |
SimpleHashRecord * | record, | |||
const eval::ProgressEval & | eval, | |||
const NumEffectState & | state, | |||
bool | in_pv, | |||
Move | hash_move, | |||
bool | quiesce = false | |||
) |
moveGenerator.cc の 147 行で定義されています。
参照先 osl::alt(), osl::search::MoveMarker::clear(), cur_index, cur_state, env, in_quiesce, INITIAL, osl::Move::isNormal(), marker, moves, osl::eval::ProgressEvalGeneral< OpeningEval >::pins(), progress, osl::eval::ProgressEvalGeneral< OpeningEval >::progress16(), osl::eval::ProgressEvalGeneral< OpeningEval >::progress32(), record, osl::search::MoveMarker::registerMove(), と tried.
参照元 osl::search::AlphaBeta2::alphaBetaSearchRoot(), osl::search::AlphaBeta2Tree::nextMove(), osl::search::AlphaBeta2Tree::quiesce(), と osl::search::AlphaBeta2Tree::quiesceRoot().
const MoveLogProb osl::search::MoveGenerator::nextTacticalMove | ( | const SearchState2 & | state | ) | [inline] |
P | turn |
moveGenerator.h の 85 行で定義されています。
参照先 cur_index, cur_state, moves, TACTICAL_FINISH, と tried.
参照元 osl::search::AlphaBeta2Tree::nextMove(), osl::search::AlphaBeta2Tree::quiesce(), と osl::search::AlphaBeta2Tree::quiesceRoot().
const MoveLogProb osl::search::MoveGenerator::nextMove | ( | const SearchState2 & | state | ) | [inline] |
void osl::search::MoveGenerator::registerMove | ( | const NumEffectState & | state, | |
Move | m | |||
) | [inline] |
killer move ʤ
moveGenerator.h の 111 行で定義されています。
参照先 osl::Move::isNormal(), marker, osl::search::MoveMarker::registerMove(), と tried.
int osl::search::MoveGenerator::triedMoves | ( | ) | const [inline] |
const PieceMask& osl::search::MoveGenerator::myPins | ( | ) | const [inline] |
void osl::search::MoveGenerator::dump | ( | ) | const |
void osl::search::MoveGenerator::generateAll | ( | Player | P, | |
const SearchState2 & | state, | |||
category::analyzer::CategoryMoveVector & | out | |||
) |
moveGenerator.cc の 437 行で定義されています。
参照先 FINISH, generated(), GeneratorNames, Generators, KING_ESCAPE, moves, と osl::playerToIndex().
void osl::search::MoveGenerator::generateAll | ( | const SearchState2 & | state, | |
MoveLogProbVector & | out | |||
) | [inline] |
void osl::search::MoveGenerator::generateAll | ( | Player | P, | |
const SearchState2 & | state, | |||
MoveLogProbVector & | out | |||
) |
const MoveLogProbVector& osl::search::MoveGenerator::generated | ( | ) | const [inline] |
int osl::search::MoveGenerator::captureValue | ( | Ptype | ptype | ) | [static] |
moveGenerator.cc の 136 行で定義されています。
参照先 osl::isPiece(), osl::newPtypeO(), osl::eval::Ptype_Eval_Table, と osl::WHITE.
void osl::search::MoveGenerator::quiesceCapture | ( | const NumEffectState & | state, | |
Position | to | |||
) | [inline] |
template const MoveLogProb osl::search::MoveGenerator::nextMoveWithGeneration< WHITE > | ( | const SearchState2 & | ) | [inline, private] |
moveGenerator.cc の 203 行で定義されています。
参照先 cur_index, cur_state, FINISH, Generators, moves, osl::playerToIndex(), record, と tried.
template const MoveLogProb osl::search::MoveGenerator::nextTacticalMoveWithGeneration< WHITE > | ( | const SearchState2 & | ) | [inline, private] |
moveGenerator.cc の 179 行で定義されています。
参照先 cur_index, cur_state, FINISH, Generators, osl::search::SimpleHashRecord::is_king_in_check, KING_ESCAPE, moves, osl::playerToIndex(), record, TACTICAL_FINISH, と tried.
void osl::search::MoveGenerator::generateKingEscape | ( | const SearchState2 & | state | ) | [inline, private] |
moveGenerator.cc の 223 行で定義されています。
参照先 osl::alt(), env, feature_set(), osl::search::SearchState2Core::history(), osl::search::SimpleHashRecord::is_king_in_check, osl::eval::min(), moves, osl::Piece::position(), osl::container::MoveLogProbVector::push_back(), record, osl::container::MoveLogProbVector::sortByProbability(), osl::search::SearchState2Core::state(), と state.
void osl::search::MoveGenerator::generateTakeBack | ( | const SearchState2 & | state | ) | [inline, private] |
moveGenerator.cc の 265 行で定義されています。
参照先 env, feature_set(), in_quiesce, osl::Move::isNormal(), osl::KING, osl::search::SearchState2Core::lastMove(), osl::rating::FeatureSet::logProbTakeBack(), marker, osl::eval::min(), moves, osl::container::MoveLogProbVector::push_back(), osl::search::MoveMarker::registerIfNew(), osl::container::MoveLogProbVector::sortByProbability(), osl::search::SearchState2Core::state(), state, と osl::Move::to().
void osl::search::MoveGenerator::generateBreakThreatmate | ( | const SearchState2 & | state | ) | [inline, private] |
void osl::search::MoveGenerator::generateCapture | ( | const SearchState2 & | state | ) | [inline, private] |
void osl::search::MoveGenerator::generateTesuji | ( | const SearchState2 & | state | ) | [inline, private] |
void osl::search::MoveGenerator::generateAllExp | ( | const SearchState2 & | state | ) | [inline, private] |
void osl::search::MoveGenerator::generateAll | ( | const SearchState2 & | state | ) | [inline, private] |
moveGenerator.cc の 401 行で定義されています。
参照先 osl::alt(), env, feature_set(), osl::Move::from(), osl::rating::FeatureSet::generateLogProb(), in_pv, in_quiesce, osl::Move::isDrop(), osl::KING, marker, osl::eval::min(), moves, osl::Move::ptype(), osl::PTYPE_EMPTY, osl::container::MoveLogProbVector::push_back(), osl::search::MoveMarker::registerIfNew(), osl::search::SearchState2Core::state(), state, と osl::Move::to().
void osl::search::MoveGenerator::addCapture | ( | const NumEffectState & | state, | |
const RatingEnv & | env, | |||
const MoveVector & | src | |||
) | [inline, private] |
moveGenerator.cc の 316 行で定義されています。
参照先 feature_set(), osl::Move::from(), in_quiesce, osl::Move::isDrop(), osl::KING, osl::rating::FeatureSet::logProbSeePlus(), marker, max_see, moves, osl::Move::ptype(), osl::container::MoveLogProbVector::push_back(), osl::search::MoveMarker::registerIfNew(), と osl::Move::to().
const CArray2d< MoveGenerator::generator_t, 2, MoveGenerator::FINISH > osl::search::MoveGenerator::Generators [static, private] |
初期値:
{{ { 0, &MoveGenerator::generateKingEscape<BLACK>, &MoveGenerator::generateTakeBack<BLACK>, &MoveGenerator::generateBreakThreatmate<BLACK>, &MoveGenerator::generateCapture<BLACK>, 0, &MoveGenerator::generateTesuji<BLACK>, &MoveGenerator::generateAll<BLACK>, }, { 0, &MoveGenerator::generateKingEscape<WHITE>, &MoveGenerator::generateTakeBack<WHITE>, &MoveGenerator::generateBreakThreatmate<WHITE>, &MoveGenerator::generateCapture<WHITE>, 0, &MoveGenerator::generateTesuji<WHITE>, &MoveGenerator::generateAll<WHITE>, } }}
moveGenerator.h の 67 行で定義されています。
参照元 generateAll(), nextMoveWithGeneration(), と nextTacticalMoveWithGeneration().
const CArray< const char *, MoveGenerator::FINISH > osl::search::MoveGenerator::GeneratorNames [static, private] |
初期値:
{{ "INITIAL", "KING_ESCAPE", "TAKEBACK", "BREAK_THREATMATE", "TACTICAL", "SENTINEL", "TESUJI", "ALL", }}
moveGenerator.h の 68 行で定義されています。
参照元 generateAll().
int osl::search::MoveGenerator::cur_state [private] |
moveGenerator.h の 70 行で定義されています。
参照元 dump(), init(), nextMove(), nextMoveWithGeneration(), nextTacticalMove(), と nextTacticalMoveWithGeneration().
size_t osl::search::MoveGenerator::cur_index [private] |
moveGenerator.h の 71 行で定義されています。
参照元 dump(), init(), nextMove(), nextMoveWithGeneration(), nextTacticalMove(), と nextTacticalMoveWithGeneration().
moveGenerator.h の 72 行で定義されています。
参照元 generateBreakThreatmate(), generateKingEscape(), init(), nextMoveWithGeneration(), と nextTacticalMoveWithGeneration().
int osl::search::MoveGenerator::limit [private] |
moveGenerator.h の 73 行で定義されています。
int osl::search::MoveGenerator::tried [private] |
moveGenerator.h の 74 行で定義されています。
参照元 dump(), init(), nextMove(), nextMoveWithGeneration(), nextTacticalMove(), nextTacticalMoveWithGeneration(), registerMove(), と triedMoves().
MoveMarker osl::search::MoveGenerator::marker [private] |
moveGenerator.h の 75 行で定義されています。
参照元 addCapture(), generateAll(), generateBreakThreatmate(), generateTakeBack(), init(), と registerMove().
RatingEnv osl::search::MoveGenerator::env [private] |
moveGenerator.h の 76 行で定義されています。
参照元 generateAll(), generateBreakThreatmate(), generateCapture(), generateKingEscape(), generateTakeBack(), generateTesuji(), init(), と myPins().
Progress32 osl::search::MoveGenerator::progress [private] |
bool osl::search::MoveGenerator::in_quiesce [private] |
moveGenerator.h の 78 行で定義されています。
参照元 addCapture(), generateAll(), generateTakeBack(), generateTesuji(), と init().
bool osl::search::MoveGenerator::in_pv [private] |