Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SearchedState Struct Reference

State that has been search with Alpha-Beta. More...

#include <SearchedState.hpp>

List of all members.

Public Types

enum  Bound { LOWER_BOUND, UPPER_BOUND, ACCURATE, NOT_DEFINED }

Public Member Functions

 SearchedState ()
 SearchedState (hash_t h, int depth, Bound b, HexEval s, HexPoint m)
 ~SearchedState ()
bool Initialized () const
hash_t Hash () const
void CheckCollision (const SearchedState &other) const
bool ReplaceWith (const SearchedState &other) const

Public Attributes

hash_t hash
 Zobrist Hash for this state.
Bound bound
 How the score should be interpreted.
HexEval score
 Score for this state.
HexPoint move
 Best move found.
int depth
 Depth state was searched.

Detailed Description

State that has been search with Alpha-Beta.

Definition at line 17 of file SearchedState.hpp.


Member Enumeration Documentation

Enumerator:
LOWER_BOUND 
UPPER_BOUND 
ACCURATE 
NOT_DEFINED 

Definition at line 21 of file SearchedState.hpp.


Constructor & Destructor Documentation

SearchedState::SearchedState (  )  [inline]

Definition at line 25 of file SearchedState.hpp.

SearchedState::SearchedState ( hash_t  h,
int  depth,
Bound  b,
HexEval  s,
HexPoint  m 
) [inline]

Definition at line 30 of file SearchedState.hpp.

SearchedState::~SearchedState (  )  [inline]

Definition at line 63 of file SearchedState.hpp.


Member Function Documentation

void SearchedState::CheckCollision ( const SearchedState other  )  const [inline]

Definition at line 78 of file SearchedState.hpp.

References UNUSED().

hash_t SearchedState::Hash (  )  const [inline]

Definition at line 72 of file SearchedState.hpp.

References hash.

bool SearchedState::Initialized (  )  const [inline]

Definition at line 67 of file SearchedState.hpp.

References INVALID_POINT, and move.

bool SearchedState::ReplaceWith ( const SearchedState other  )  const [inline]

Todo:
check for better bounds/scores?

Definition at line 83 of file SearchedState.hpp.

References depth.


Member Data Documentation

How the score should be interpreted.

Definition at line 50 of file SearchedState.hpp.

Referenced by HexAbSearch::SearchState().

Depth state was searched.

Definition at line 59 of file SearchedState.hpp.

Referenced by ReplaceWith(), and HexAbSearch::SearchState().

Zobrist Hash for this state.

Definition at line 47 of file SearchedState.hpp.

Referenced by Hash().

Best move found.

Definition at line 56 of file SearchedState.hpp.

Referenced by Initialized(), and HexAbSearch::SearchState().

Score for this state.

Definition at line 53 of file SearchedState.hpp.

Referenced by HexAbSearch::SearchState().


The documentation for this struct was generated from the following file:


6 Jan 2011 Doxygen 1.6.3