Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.465 kb
#ifndef AI_PLAYER_HPP_INCLUDED
#define AI_PLAYER_HPP_INCLUDED
#include <vector>
#include "variant.hpp"
namespace tbs {
class game;
class ai_player {
public:
static ai_player* create(game& g, int nplayer);
ai_player(const game& g, int nplayer);
virtual ~ai_player();
virtual variant play() = 0;
int player_id() const { return nplayer_; }
protected:
const game& get_game() const { return game_; }
private:
const game& game_;
int nplayer_;
};
}
#endif
Jump to Line
Something went wrong with that request. Please try again.