Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
configurablegame.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------+
2 * File: configurablegame.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(CONFIGURABLEGAME_H)
9#define CONFIGURABLEGAME_H
10
11//-----------------------------------------------------------------------
12
13/** allow custom methods to be attached to game */
15public:
17 virtual ~bConfigurableGame();
18
19 // explicitly deny access to these functions
24
25 void setAlgorithm(std::string const& alg);
27 void setEval(std::string const& e);
29
30private:
31 void clearAlgorithm();
32 void clearEval();
33
34 bSearchAlgorithm *m_algo = nullptr;
35 bPositionEvaluation *m_eval = nullptr;
36};
37
38#endif // defined CONFIGURABLEGAME_H
39
40// eof
allow custom methods to be attached to game
void setAlgorithm(std::string const &alg)
bConfigurableGame(bConfigurableGame const &)=delete
void setEval(std::string const &e)
bConfigurableGame & operator=(bConfigurableGame const &)=delete
bConfigurableGame(bConfigurableGame &&)=delete
bSearchAlgorithm * getAlgorithm() const
bPositionEvaluation * getEval() const
bConfigurableGame & operator=(bConfigurableGame &&)=delete