Used in class SgSearch to implement killer heuristic. More...
#include <SgSearch.h>
Public Member Functions | |
SgKiller () | |
void | MarkKiller (SgMove killer) |
void | Clear () |
SgMove | GetKiller1 () const |
SgMove | GetKiller2 () const |
Private Attributes | |
SgMove | m_killer1 |
SgMove | m_killer2 |
int | m_count1 |
int | m_count2 |
Used in class SgSearch to implement killer heuristic.
Keeps track of two moves that have been successful at a particular level. The moves are sorted by frequency.
Definition at line 31 of file SgSearch.h.
SgKiller::SgKiller | ( | ) |
Definition at line 54 of file SgSearch.h.
void SgKiller::Clear | ( | ) |
Definition at line 60 of file SgSearch.cpp.
References m_count1, m_count2, m_killer1, m_killer2, and SG_NULLMOVE.
SgMove SgKiller::GetKiller1 | ( | ) | const |
Definition at line 62 of file SgSearch.h.
References m_killer1.
SgMove SgKiller::GetKiller2 | ( | ) | const |
Definition at line 67 of file SgSearch.h.
References m_killer2.
void SgKiller::MarkKiller | ( | SgMove | killer | ) |
Definition at line 35 of file SgSearch.cpp.
References m_count1, m_count2, m_killer1, m_killer2, and SG_NULLMOVE.
int SgKiller::m_count1 [private] |
Definition at line 49 of file SgSearch.h.
Referenced by Clear(), and MarkKiller().
int SgKiller::m_count2 [private] |
Definition at line 51 of file SgSearch.h.
Referenced by Clear(), and MarkKiller().
SgMove SgKiller::m_killer1 [private] |
Definition at line 45 of file SgSearch.h.
Referenced by Clear(), GetKiller1(), and MarkKiller().
SgMove SgKiller::m_killer2 [private] |
Definition at line 47 of file SgSearch.h.
Referenced by Clear(), GetKiller2(), and MarkKiller().