Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
SearchAlphaBetaFH Class Referencefinal

#include <search_ab.h>

+ Inheritance diagram for SearchAlphaBetaFH:
+ Collaboration diagram for SearchAlphaBetaFH:

Public Member Functions

 SearchAlphaBetaFH ()
 
 ~SearchAlphaBetaFH () final
 
 SearchAlphaBetaFH (SearchAlphaBetaFH const &)=delete
 
 SearchAlphaBetaFH (SearchAlphaBetaFH &&)=delete
 
SearchAlphaBetaFHoperator= (SearchAlphaBetaFH const &)=delete
 
SearchAlphaBetaFHoperator= (SearchAlphaBetaFH &&)=delete
 
- Public Member Functions inherited from SearchAlphaBeta
 SearchAlphaBeta ()
 
 SearchAlphaBeta (std::string const &)
 
 ~SearchAlphaBeta () override
 
 SearchAlphaBeta (SearchAlphaBeta const &)=delete
 
 SearchAlphaBeta (SearchAlphaBeta &&)=delete
 
SearchAlphaBetaoperator= (SearchAlphaBeta const &)=delete
 
SearchAlphaBetaoperator= (SearchAlphaBeta &&)=delete
 
- Public Member Functions inherited from bSearchAlgorithm
 bSearchAlgorithm (std::string const &n)
 
 ~bSearchAlgorithm () override
 
 bSearchAlgorithm (bSearchAlgorithm const &)=delete
 
 bSearchAlgorithm (bSearchAlgorithm &&)=delete
 
bSearchAlgorithmoperator= (bSearchAlgorithm const &)=delete
 
bSearchAlgorithmoperator= (bSearchAlgorithm &&)=delete
 
 operator std::string () const &
 
int64_t getNodes () const
 
int64_t getNonLeafNodes () const
 
void StartSearch (bScore const m)
 
void StopSearch ()
 
void InterruptSearch ()
 
bBestMoveInfo SearchBestMove (bBoard &b)
 Generic search, will call (non-)recursive method per algorithm only when there are moves to be played.
 
bScore sendInfoSearching (bBoard const &b, depth_t const nDepth, std::string const &c, bScore const sc) const
 
bScore RetrieveBoardEvaluation (bBoard &b) const
 Cache score of board.
 
- Public Member Functions inherited from TimedExecution
 TimedExecution ()
 implementation of timing functions
 
virtual ~TimedExecution ()=default
 
std::string getDuration () const
 
long long getDurationMicroSec () const
 

Protected Member Functions

bScore CalcBestMove (bBoard &b, depth_t const nDepth, bSearchScore alpha, bSearchScore beta) override
 
- Protected Member Functions inherited from SearchAlphaBeta
bScore CalcBestMove (bBoard &b) final
 
bScore Quiescence (bBoard &b, depth_t const nDepth, bSearchScore alpha, bSearchScore beta, uint8_t nCheckCount)
 
- Protected Member Functions inherited from bSearchAlgorithm
void CheckIfAbortingSearch () const
 
bScore attenuateScore (bScore const sc) const
 converge score towards zero in order to force immediate best move first
 
void setLevel (bLevel *l)
 
bLevelgetLevel ()
 
void sendInfoCurrMove (bBoard const &b, depth_t const nDepth, movenum_t const moveid) const
 
bScore sendInfoScore (bBoard const &b, depth_t const nDepth, bScore const) const
 
void dumpMoveList (bBoard &b, depth_t const iDepth) const
 
- Protected Member Functions inherited from TimedExecution
void ClockStart ()
 
void ClockEnd ()
 
long long getDurationSec () const
 
long long getDurationMilliSec () const
 

Additional Inherited Members

- Public Attributes inherited from bSearchAlgorithm
depth_t m_maxDepth = 0
 
int64_t m_nodes = 0LL
 
int64_t m_nonleafnodes = 0LL
 
bool m_iterativesearch = false
 
- Protected Attributes inherited from SearchAlphaBeta
bScore m_nBetaCutOffMargin
 

Detailed Description

Definition at line 35 of file search_ab.h.

Constructor & Destructor Documentation

◆ SearchAlphaBetaFH() [1/3]

SearchAlphaBetaFH::SearchAlphaBetaFH ( )

Definition at line 65 of file search_ab.cpp.

◆ ~SearchAlphaBetaFH()

SearchAlphaBetaFH::~SearchAlphaBetaFH ( )
final

Definition at line 71 of file search_ab.cpp.

◆ SearchAlphaBetaFH() [2/3]

SearchAlphaBetaFH::SearchAlphaBetaFH ( SearchAlphaBetaFH const &  )
delete

◆ SearchAlphaBetaFH() [3/3]

SearchAlphaBetaFH::SearchAlphaBetaFH ( SearchAlphaBetaFH &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

SearchAlphaBetaFH & SearchAlphaBetaFH::operator= ( SearchAlphaBetaFH &&  )
delete

◆ CalcBestMove()

bScore SearchAlphaBetaFH::CalcBestMove ( bBoard b,
depth_t const  nDepth,
bSearchScore  alpha,
bSearchScore  beta 
)
overrideprotectedvirtual
Todo:
optimise

Reimplemented from SearchAlphaBeta.

Definition at line 149 of file search_ab.cpp.

Referenced by CalcBestMove().

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