Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
PosEvalStaticBoard Class Reference

#include <eval.h>

+ Inheritance diagram for PosEvalStaticBoard:
+ Collaboration diagram for PosEvalStaticBoard:

Public Member Functions

 PosEvalStaticBoard ()
 
 PosEvalStaticBoard (std::string const &n)
 
 ~PosEvalStaticBoard () override
 
 PosEvalStaticBoard (PosEvalStaticBoard const &)=delete
 
 PosEvalStaticBoard (PosEvalStaticBoard &&)=delete
 
PosEvalStaticBoardoperator= (PosEvalStaticBoard const &)=delete
 
PosEvalStaticBoardoperator= (PosEvalStaticBoard &&)=delete
 
bScore getEvaluation (bBoard const &b) const override
 get material and case related modification of score
 
- Public Member Functions inherited from bPositionEvaluation
 bPositionEvaluation (std::string const &n)
 Store black piece and field values as negative of whites view.
 
virtual ~bPositionEvaluation ()
 
 bPositionEvaluation (bPositionEvaluation const &)=delete
 
 bPositionEvaluation (bPositionEvaluation &&)=delete
 
bPositionEvaluationoperator= (bPositionEvaluation const &)=delete
 
bPositionEvaluationoperator= (bPositionEvaluation &&)=delete
 
 operator std::string () const &
 
gameResult_t isGameEnded (bBoard const &b) const
 See if board is in finite state, meaning game is ended.
 

Protected Member Functions

bScore getRelativeBoardEval (bBoard const &b) const
 
bScore getEndgameEvaluation (bBoard const &b) const
 
bScore getPawnEndingEvaluation (bBoard const &b) const
 
bScore getMatingEvaluation (bBoard const &b) const
 
- Protected Member Functions inherited from bPositionEvaluation
bScore resultToScoreFlag (gameResult_t const sc) const
 convert all draw scores to SCORE_THEORETIC_DRAW
 

Additional Inherited Members

- Static Public Member Functions inherited from bPositionEvaluation
static bScore pieceValue (piece_t const p)
 
static bScore mymove_pieceValue (piece_t const p)
 
static bScore centerplay_pieceValue (case_t const p)
 

Detailed Description

Definition at line 103 of file eval.h.

Constructor & Destructor Documentation

◆ PosEvalStaticBoard() [1/4]

PosEvalStaticBoard::PosEvalStaticBoard ( )

Definition at line 424 of file eval.cpp.

◆ PosEvalStaticBoard() [2/4]

PosEvalStaticBoard::PosEvalStaticBoard ( std::string const &  n)
explicit

Definition at line 429 of file eval.cpp.

◆ ~PosEvalStaticBoard()

PosEvalStaticBoard::~PosEvalStaticBoard ( )
override

Definition at line 434 of file eval.cpp.

◆ PosEvalStaticBoard() [3/4]

PosEvalStaticBoard::PosEvalStaticBoard ( PosEvalStaticBoard const &  )
delete

◆ PosEvalStaticBoard() [4/4]

PosEvalStaticBoard::PosEvalStaticBoard ( PosEvalStaticBoard &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

PosEvalStaticBoard & PosEvalStaticBoard::operator= ( PosEvalStaticBoard const &  )
delete

◆ operator=() [2/2]

PosEvalStaticBoard & PosEvalStaticBoard::operator= ( PosEvalStaticBoard &&  )
delete

◆ getEvaluation()

bScore PosEvalStaticBoard::getEvaluation ( bBoard const &  b) const
overridevirtual

get material and case related modification of score

Implements bPositionEvaluation.

Definition at line 440 of file eval.cpp.

+ Here is the call graph for this function:

◆ getRelativeBoardEval()

bScore PosEvalStaticBoard::getRelativeBoardEval ( bBoard const &  b) const
protected

Definition at line 457 of file eval.cpp.

Referenced by getEvaluation(), and PosEvalPositionalBoard::getEvaluation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEndgameEvaluation()

bScore PosEvalStaticBoard::getEndgameEvaluation ( bBoard const &  b) const
protected

Definition at line 475 of file eval.cpp.

Referenced by getEvaluation(), and PosEvalPositionalBoard::getEvaluation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPawnEndingEvaluation()

bScore PosEvalStaticBoard::getPawnEndingEvaluation ( bBoard const &  b) const
protected

Definition at line 491 of file eval.cpp.

Referenced by getEvaluation(), and PosEvalPositionalBoard::getEvaluation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMatingEvaluation()

bScore PosEvalStaticBoard::getMatingEvaluation ( bBoard const &  b) const
protected

Definition at line 505 of file eval.cpp.

Referenced by getEvaluation(), and PosEvalPositionalBoard::getEvaluation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: