All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
osl::search::SearchState2 Class Reference

SearchFramework のうち,template parameter を含まない部分. More...

#include <searchState2.h>

Inheritance diagram for osl::search::SearchState2:
Inheritance graph
[legend]
Collaboration diagram for osl::search::SearchState2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SearchState2 (const NumEffectState &s, checkmate_t &checker)
virtual ~SearchState2 ()
void setState (const NumEffectState &s)
 state のコピーを行う.
void setKillerMove (Move best_move)
int curLimit () const
bool abort (Move) const

Static Public Attributes

static const int ReSearchLimitMargin = 80
 再探索や,指手生成でより確率の高い手があったときに無視する範囲

Protected Member Functions

void setRoot (int limit)
 root で limitを閾値に探索を始めることを設定
void addLimit (int limit)
void subLimit (int limit)
int countSacrificeCheck2 (int history_max) const
 王手の捨て駒の連続を2ループまで数える
void checkPointSearchAllMoves ()
 debug 用途

Protected Attributes

int root_limit
int cur_limit

Detailed Description

SearchFramework のうち,template parameter を含まない部分.

Definition at line 495 of file searchState2.h.


Constructor & Destructor Documentation

osl::search::SearchState2::SearchState2 ( const NumEffectState &  s,
checkmate_t checker 
)

Definition at line 179 of file searchState2.cc.

Definition at line 185 of file searchState2.cc.


Member Function Documentation

bool osl::search::SearchState2::abort ( Move  best_move) const [virtual]

Reimplemented from osl::search::SearchState2Core.

Definition at line 203 of file searchState2.cc.

References osl::search::SearchState2Core::abort().

void osl::search::SearchState2::addLimit ( int  limit) [inline, protected]

Definition at line 528 of file searchState2.h.

References cur_limit, limit, and search_assert.

debug 用途

Definition at line 212 of file searchState2.cc.

int osl::search::SearchState2::countSacrificeCheck2 ( int  history_max) const [protected]

王手の捨て駒の連続を2ループまで数える

Parameters:
history_maxこれ以上を逆上らない

Definition at line 197 of file searchState2.cc.

References osl::search::SacrificeCheck::count2().

int osl::search::SearchState2::curLimit ( ) const [inline]

Definition at line 515 of file searchState2.h.

References cur_limit.

void osl::search::SearchState2::setKillerMove ( Move  best_move) [inline]

Reimplemented from osl::search::SearchState2Core.

Definition at line 508 of file searchState2.h.

References osl::Move::isPass().

void osl::search::SearchState2::setRoot ( int  limit) [inline, protected]

root で limitを閾値に探索を始めることを設定

Reimplemented in osl::search::AlphaBeta2< EvalT >.

Definition at line 523 of file searchState2.h.

References cur_limit, limit, and root_limit.

Referenced by osl::search::AlphaBeta2< EvalT >::setRoot().

void osl::search::SearchState2::setState ( const NumEffectState &  s) [virtual]

state のコピーを行う.

this->state は探索終了後も保存されるが,探索中に exception が起こると 破壊されている

Reimplemented from osl::search::SearchState2Core.

Definition at line 190 of file searchState2.cc.

References osl::search::SearchState2Core::setState().

void osl::search::SearchState2::subLimit ( int  limit) [inline, protected]

Definition at line 529 of file searchState2.h.

References cur_limit, limit, and search_assert.


Member Data Documentation

Definition at line 502 of file searchState2.h.

Referenced by addLimit(), curLimit(), setRoot(), and subLimit().

再探索や,指手生成でより確率の高い手があったときに無視する範囲

Definition at line 499 of file searchState2.h.

Definition at line 501 of file searchState2.h.

Referenced by setRoot().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines