1 #ifndef GAMES_CHECKERS_AI_HPP 
    2 #define GAMES_CHECKERS_AI_HPP 
    4 #include "impl/checkers.hpp" 
    7 #include "game_object.hpp" 
   10 #include "../../joueur/src/base_ai.hpp" 
   11 #include "../../joueur/src/attr_wrapper.hpp" 
   48     virtual std::string 
get_name() 
const override;
 
   53     virtual void start() 
override;
 
   60     virtual void ended(
bool won, 
const std::string& reason) 
override;
 
   88     virtual std::string invoke_by_name(
const std::string& name,
 
   89                                        const std::unordered_map<std::string, Any>& args) 
override;
 
   90     virtual void set_game(Base_game* ptr) 
override;
 
   91     virtual void set_player(std::shared_ptr<Base_object> obj) 
override;
 
   92     virtual void print_win_loss_info() 
override;
 
  104 #endif // GAMES_CHECKERS_AI_HPP 
The simple version of American Checkers. An 8x8 board with 12 checkers on each side that must move di...
Definition: game.hpp:45
 
virtual std::string get_name() const override
This returns your AI's name to the game server. Replace the string name. 
Definition: ai.cpp:21
 
void got_captured(const Checker &checker)
This is called whenever your checker gets captured (during an opponent's turn). 
Definition: ai.cpp:65
 
Player player
This is a pointer to your AI's player. This AI class is not a player, but it should command this Play...
Definition: ai.hpp:37
 
virtual void start() override
This is automatically called when the game first starts, once the game objects are created ...
Definition: ai.cpp:32
 
Definition: base_ai.hpp:16
 
A checker on the game board. 
Definition: checker.hpp:37
 
This is the header file for building your Checkers AI 
Definition: ai.hpp:26
 
virtual void game_updated() override
This is automatically called the game (or anything in it) updates 
Definition: ai.cpp:42
 
A player in this game. Every AI controls one player. 
Definition: player.hpp:37
 
Game game
This is a reference to the Game object itself, it contains all the information about the current game...
Definition: ai.hpp:32
 
virtual void ended(bool won, const std::string &reason) override
This is automatically called when the game ends. 
Definition: ai.cpp:54
 
bool run_turn()
This is called every time it is this AI.player's turn. 
Definition: ai.cpp:76