From BasicAI
this AI help you to with some helpful functions
My AI class
// This class is the example of benji-35 doc for Gomoku game
#include "Gomoku.hpp"
#include "BasicAI/BasicAI"
namespace Gomoku {
class MyAI : public BasicAI{
public:
MyAI();
~MyAI();
Vector chooseBestMove() override;
Vector myAIAlgo() override;
protected:
private:
};
}Overriding function
The difference between these both function is simple :
Tools
[FUNC] getBestMoves(MoveType ref, bool preshot = false)
[FUNC] getRandomMove()
Last updated