#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 |
Definition in file HexEval.hpp.
const HexEval EVAL_INFINITY = 1000000.0 [static] |
Definition at line 64 of file HexEval.hpp.
Referenced by TwoDistUtil::AddDistance(), BenzeneHtpEngine::CmdEvalResist(), BenzeneHtpEngine::CmdEvalTwoDist(), TwoDistance::FindBest(), HexAbSearch::Search(), HexAbSearch::SearchState(), and TwoDistance::SetAllToInfinity().
_BEGIN_BENZENE_NAMESPACE_ typedef double HexEval |
Data type for storing evaluation scores.
Definition at line 16 of file HexEval.hpp.
Referenced by BookCommands::CmdBookScores(), BenzeneHtpEngine::CmdEvalResist(), BenzeneHtpEngine::CmdEvalResistDelta(), BenzeneHtpEngine::CmdEvalTwoDist(), TwoDistance::ComputeScores(), WolveSearch::Evaluate(), TwoDistance::FindBest(), WolveSearch::GenerateMoves(), BookBuilder< PLAYER >::GenerateMoves(), BenzeneTestEngine::GenMove(), BookUtil::ImportSolvedStates(), EndgameUtils::IsDeterminedState(), DfpnSolver::MID(), BookBuilder< PLAYER >::Worker::operator()(), and HexAbSearch::SearchState().
const HexEval IMMEDIATE_LOSS = -10000.0 [static] |
Definition at line 62 of file HexEval.hpp.
Referenced by HexAbSearch::CheckTerminalState(), BookCommands::CmdBookSetValue(), BookUtil::ImportSolvedStates(), BenzenePlayer::InitSearch(), EndgameUtils::IsDeterminedState(), HexEvalUtil::IsValidEval(), HexEvalUtil::PlyToLoss(), and HexAbSearch::Search().
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().