25 if (alg ==
"Random") {
27 }
else if (alg ==
"StaticEval") {
29 }
else if (alg ==
"BruteForce") {
31 }
else if (alg ==
"SearchIterativeBF") {
33 }
else if (alg ==
"AB") {
35 }
else if (alg ==
"ABFS") {
37 }
else if (alg ==
"ABFH") {
46 if (m_algo ==
nullptr)
throw std::logic_error(
"no algorithm defined");
50void bConfigurableGame::clearAlgorithm()
52 if (m_algo !=
nullptr)
delete m_algo;
59 if (e ==
"PiecesOnly") {
61 }
else if (e ==
"StaticBoard") {
63 }
else if (e ==
"PositionalBoard") {
72 if (m_eval ==
nullptr)
throw std::logic_error(
"no eval defined");
76void bConfigurableGame::clearEval()
78 if (m_eval !=
nullptr)
delete m_eval;
This is the main include file, needs to be included before any other include.
void setAlgorithm(std::string const &alg)
virtual ~bConfigurableGame()
void setEval(std::string const &e)
bSearchAlgorithm * getAlgorithm() const
bPositionEvaluation * getEval() const