詰めろを考慮した詰将棋探索のための状態管理. More...
#include <threatmateState.h>


Public Types | |
| enum | Status { UNKNOWN = 0, THREATMATE, MAYBE_THREATMATE, CHECK_AFTER_THREATMATE, MAY_HAVE_CHECKMATE } |
Public Member Functions | |
| ThreatmateState (Status s=UNKNOWN) | |
| void | setThreatmate (Status s) |
| bool | isUnknown () const |
| bool | isThreatmate () const |
| bool | maybeThreatmate () const |
| bool | mayHaveCheckmate () const |
| Status | status () const |
| const ThreatmateState | newStatus (bool is_check) const |
| void | update (const ThreatmateState *parent, bool in_check) |
Static Private Attributes | |
| static const CArray< Status, 5 *2 > | transition |
Friends | |
| class | DualThreatmateState |
Additional Inherited Members | |
Protected Attributes inherited from osl::search::ThreatmateStateData | |
| char | current_status |
詰めろを考慮した詰将棋探索のための状態管理.
http://www31.ocn.ne.jp/~kfend/inside_kfend/ptc.html#c3
Definition at line 29 of file threatmateState.h.
Definition at line 33 of file threatmateState.h.
Definition at line 47 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status.
|
inline |
Definition at line 57 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status, and THREATMATE.
Referenced by osl::search::DualThreatmateState::isThreatmate().
|
inline |
Definition at line 54 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status, and UNKNOWN.
|
inline |
Definition at line 60 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status, MAYBE_THREATMATE, and THREATMATE.
Referenced by osl::search::DualThreatmateState::maybeThreatmate(), and update().
|
inline |
Definition at line 64 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status, and MAY_HAVE_CHECKMATE.
Referenced by osl::search::DualThreatmateState::mayHaveCheckmate().
|
inline |
Definition at line 70 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status, and transition.
Referenced by update().
|
inline |
Definition at line 51 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status.
Referenced by osl::search::DualThreatmateState::setThreatmate().
|
inline |
Definition at line 67 of file threatmateState.h.
References osl::search::ThreatmateStateData::current_status.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), and osl::search::operator<<().
|
inline |
Definition at line 75 of file threatmateState.h.
References maybeThreatmate(), and newStatus().
Referenced by osl::search::DualThreatmateState::updateInLock().
|
friend |
Definition at line 31 of file threatmateState.h.
|
staticprivate |
1.8.4