codegame 0.7.0

CodeGame framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "MyStrategy.hpp"
#include <exception>

MyStrategy::MyStrategy() {}

Action MyStrategy::getAction(const PlayerView& playerView, DebugInterface* debugInterface)
{
    throw std::exception("Write your strategy here");
}

void MyStrategy::debugUpdate(const PlayerView& playerView, DebugInterface& debugInterface)
{
    debugInterface.send(DebugCommand::Clear());
    debugInterface.getState();
}