Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgKiller Class Reference

#include <SgSearch.h>

List of all members.


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 33 of file 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


Constructor & Destructor Documentation

SgKiller::SgKiller (  ) 

Definition at line 56 of file SgSearch.h.


Member Function Documentation

void SgKiller::Clear (  ) 

Definition at line 61 of file SgSearch.cpp.

References m_count1, m_count2, m_killer1, m_killer2, and SG_NULLMOVE.

SgMove SgKiller::GetKiller1 (  )  const

Definition at line 64 of file SgSearch.h.

References m_killer1.

SgMove SgKiller::GetKiller2 (  )  const

Definition at line 69 of file SgSearch.h.

References m_killer2.

void SgKiller::MarkKiller ( SgMove  killer  ) 

Definition at line 36 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 51 of file SgSearch.h.

Referenced by Clear(), and MarkKiller().

int SgKiller::m_count2 [private]

Definition at line 53 of file SgSearch.h.

Referenced by Clear(), and MarkKiller().

SgMove SgKiller::m_killer1 [private]

Definition at line 47 of file SgSearch.h.

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

SgMove SgKiller::m_killer2 [private]

Definition at line 49 of file SgSearch.h.

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


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


17 Jun 2010 Doxygen 1.4.7