Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
search_random.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------+
2 * File: search_random.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_RANDOM_H)
9#define SEARCH_RANDOM_H
10
11//-----------------------------------------------------------------------
12
13// random move played at depth 1
15public:
16 explicit SearchRandom()
17 : bSearchAlgorithm("Random")
18 {}
19 ~SearchRandom() override
20 {}
21
22 // no copy or move ctor nor assignment defined
23 SearchRandom(SearchRandom const&) = delete;
27
28protected:
29 bScore CalcBestMove(bBoard& b, bMoveList& ml) override;
30};
31
32//-----------------------------------------------------------------------
33
34#endif // defined SEARCH_RANDOM_H
35
36// eof
~SearchRandom() override
SearchRandom(SearchRandom &&)=delete
bScore CalcBestMove(bBoard &b, bMoveList &ml) override
Root search for algorithm.
SearchRandom(SearchRandom const &)=delete
SearchRandom & operator=(SearchRandom const &)=delete
SearchRandom & operator=(SearchRandom &&)=delete
board
Definition board.h:45
bSearchAlgorithm(std::string const &s)
Definition search.h:75
int16_t bScore
Definition eval.h:11