Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

HexEval.hpp File Reference

#include "Hex.hpp"

Go to the source code of this file.

Classes

class  HexMoveValue
 (HexPoint, value) pairs; use for move ordering. More...

Namespaces

namespace  HexEvalUtil

Functions

bool HexEvalUtil::IsValidEval (HexEval ev)
bool HexEvalUtil::IsWin (HexEval ev)
int HexEvalUtil::PlyToWin (HexEval ev)
bool HexEvalUtil::IsLoss (HexEval ev)
int HexEvalUtil::PlyToLoss (HexEval ev)
bool HexEvalUtil::IsWinOrLoss (HexEval ev)

Variables

_BEGIN_BENZENE_NAMESPACE_
typedef double 
HexEval
 Data type for storing evaluation scores.
static const HexEval IMMEDIATE_WIN = 10000.0
 Scores >= WIN_THRESHOLD are wins and scores <= LOSS_THRESHOLD are losses.
static const HexEval WIN_THRESHOLD = 9000.0
static const HexEval LOSS_THRESHOLD = -9000.0
static const HexEval IMMEDIATE_LOSS = -10000.0
static const HexEval EVAL_INFINITY = 1000000.0

Detailed Description

Definition in file HexEval.hpp.


Variable Documentation

const HexEval EVAL_INFINITY = 1000000.0 [static]
_BEGIN_BENZENE_NAMESPACE_ typedef double HexEval
const HexEval IMMEDIATE_LOSS = -10000.0 [static]
const HexEval IMMEDIATE_WIN = 10000.0 [static]

Scores >= WIN_THRESHOLD are wins and scores <= LOSS_THRESHOLD are losses.

The difference between a score and IMMEDIATE_WIN or IMMEDIATE_LOSS should correspond directly with the number of ply to win or lose. For example, a win in 5 moves should have score IMMEDIATE_WIN - 5 >= WIN_THRESHOLD.

Definition at line 59 of file HexEval.hpp.

Referenced by HexAbSearch::CheckTerminalState(), BookCommands::CmdBookSetValue(), BookUtil::ImportSolvedStates(), EndgameUtils::IsDeterminedState(), HexEvalUtil::IsValidEval(), HexEvalUtil::PlyToWin(), MoHexPlayer::Search(), HexAbSearch::Search(), and HexAbSearch::SearchState().

const HexEval LOSS_THRESHOLD = -9000.0 [static]

Definition at line 61 of file HexEval.hpp.

Referenced by HexEvalUtil::IsLoss().

const HexEval WIN_THRESHOLD = 9000.0 [static]

Definition at line 60 of file HexEval.hpp.

Referenced by HexEvalUtil::IsWin().


6 Jan 2011 Doxygen 1.6.3