Belofte  version 2.1.5
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 */
15 public:
17  virtual ~bConfigurableGame();
18 
19  // explicitly deny access to these functions
24 
25  std::string setAlgorithm(std::string const& alg="");
27  std::string setEval(std::string const& e="");
29 
30 private:
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
std::string setAlgorithm(std::string const &alg="")
virtual ~bConfigurableGame()
bConfigurableGame(bConfigurableGame const &)=delete
bConfigurableGame & operator=(bConfigurableGame &&)=delete
bSearchAlgorithm * getAlgorithm()
std::string setEval(std::string const &e="")
bConfigurableGame(bConfigurableGame &&)=delete
bPositionEvaluation * getEval()
bConfigurableGame & operator=(bConfigurableGame const &)=delete