Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
search_perft.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------+
2 * File: search_perft.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_PERFT_H)
9#define SEARCH_PERFT_H
10
11//-----------------------------------------------------------------------
12
13// only move generation, no evaluation
15public:
16 explicit SearchPerft()
17 : bSearchAlgorithm("Perft")
18 {}
19 ~SearchPerft() override
20 {}
21
22 // no copy or move ctor nor assignment defined
23 SearchPerft(SearchPerft const&) = delete;
27
28protected:
29 bScore CalcBestMove(bBoard& b, bMoveList& ml) override;
30
31private:
32 void CalcBestMove(bBasicBoard& b, depth_t nDepth);
33};
34
35//-----------------------------------------------------------------------
36
37#endif // defined SEARCH_PERFT_H
38
39// eof
int_fast8_t depth_t
Definition belofte.h:103
SearchPerft(SearchPerft const &)=delete
SearchPerft(SearchPerft &&)=delete
bScore CalcBestMove(bBoard &b, bMoveList &ml) override
Entry point for SearchPerft.
~SearchPerft() override
SearchPerft & operator=(SearchPerft &&)=delete
SearchPerft & operator=(SearchPerft const &)=delete
board
Definition board.h:45
bSearchAlgorithm(std::string const &s)
Definition search.h:75
int16_t bScore
Definition eval.h:11