Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes

SgKiller Class Reference

Used in class SgSearch to implement killer heuristic. More...

#include <SgSearch.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

SgKiller::SgKiller (  ) 

Definition at line 54 of file SgSearch.h.


Member Function Documentation

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.


Member Data Documentation

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().

Definition at line 45 of file SgSearch.h.

Referenced by Clear(), GetKiller1(), and MarkKiller().

Definition at line 47 of file SgSearch.h.

Referenced by Clear(), GetKiller2(), and MarkKiller().


The documentation for this class was generated from the following files:


Sun Mar 13 2011 Doxygen 1.7.1