From Abstract
create your AI from the abstract, means creating all algorithme
My AI class
// This class is the example of benji-35 doc for Gomoku game
#include "Gomoku.hpp"
namespace Gomoku {
class MyAI : public AbstractIA {
public:
MyAI();
~MyAI();
Vector chooseBestMove() override;
protected:
private:
};
}Overriding function
Tools
[FUNC] canMoveAtPos(x, y) or canMoveAtPos(Vector)
[FUNC] getBoard()
[FUNC] getHistory()
[FUNC] getBoardWidth()
[FUNC] getBoardHeight()
[FUNC] getGameChar()
[FUNC] getIAChar()
[FUNC] getEmptyChar()
[FUNC] posIsPlayed(x, y) or posIsPlayed(Vector)
[FUNC] whoPlayedAt(x, y) or whoPlayedAt(Vector)
Last updated