Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
search_bf.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------+
2  * File: search_bf.h
3  * Project: part of belofte - A Promising Chess Program
4  * Author: yves
5  * SPDX-License-Identifier: GPL-2.0-only
6 +----------------------------------------------------------------------*/
7 
8 #if !defined(SEARCH_BF_H)
9 #define SEARCH_BF_H
10 
11 //-----------------------------------------------------------------------
12 
13 // best move played at depth x, no sorting or cut-off
15 public:
17  explicit SearchBruteForce(std::string const& n);
18  ~SearchBruteForce() override;
19 
20  // no copy or move ctor nor assignment defined
25 
26 protected:
27  bBestMoveInfo CalcBestMove(bBoard& b) override;
28 
29 private:
30  bScore CalcBestMove(bBoard& b, depth_t const& nDepth);
31 };
32 
33 //-----------------------------------------------------------------------
34 
35 // best move played at depth x, iterating from depth 0 to x
36 class SearchIterativeBF final : public SearchBruteForce {
37 public:
39  ~SearchIterativeBF() override;
40 
41  // no copy or move ctor nor assignment defined
46 };
47 
48 #endif // defined SEARCH_BF_H
49 
50 // eof
int_fast16_t bScore
used to return id of move in movelist
Definition: belofte.h:104
int_fast8_t depth_t
Definition: belofte.h:105
bBestMoveInfo CalcBestMove(bBoard &b) override
Definition: search_bf.cpp:26
SearchBruteForce(SearchBruteForce &&)=delete
SearchBruteForce(SearchBruteForce const &)=delete
~SearchBruteForce() override
Definition: search_bf.cpp:22
SearchBruteForce & operator=(SearchBruteForce &&)=delete
SearchBruteForce & operator=(SearchBruteForce const &)=delete
SearchIterativeBF(SearchIterativeBF &&)=delete
SearchIterativeBF & operator=(SearchIterativeBF &&)=delete
SearchIterativeBF & operator=(SearchIterativeBF const &)=delete
~SearchIterativeBF() override
Definition: search_bf.cpp:85
SearchIterativeBF(SearchIterativeBF const &)=delete
board
Definition: board.h:111