Eval Class Reference

Board evaluation class. More...

#include <eval.h>

List of all members.

Public Member Functions

 Eval (const Board *board)
 Inits base evaluation as well.
void init ()
 Common init.
int evaluate (const Board *) const
 Evaluation.
int evaluateDailey (const Board *) const
 Evaluation by ddailey.
float evaluateInPercent (const Board *) const
 Transfers int/float evaluation to percent.
float getPieceValue (piece_t piece) const
 Value getter for piece.
float evaluateStep (const Board *, const Step &step) const
 Evaluates one step.

Private Member Functions

gameStage_e determineGameStage (const Bitboard &bitboard) const
 Calculates gamestage based on number of pieces.
bool blocked (player_t player, piece_t piece, coord_t coord, const Board *b) const

Static Private Member Functions

static string trapTypeToStr (trapType_e trapType)

Private Attributes

EvalTT * evalTT_
EvaluationValuesvals_
StepKnowledgeValuesskvals_
double eval_max_
 Maximal evaluation given as constant depending on used evaluation method.


Detailed Description

Board evaluation class.

It is declared as a friend in the board class - thus it can access it's private items. Always returns evaluation from the point of view of GOLD player.


Member Function Documentation

float Eval::evaluateStep ( const Board b,
const Step step 
) const

Evaluates one step.

Used in the playout and for bias in the tree.


Member Data Documentation

double Eval::eval_max_ [private]

Maximal evaluation given as constant depending on used evaluation method.


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

Generated on Thu Aug 6 23:29:08 2009 for akimot by  doxygen 1.5.7.1