codegame 0.7.0

CodeGame framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import model;
import debugger;
import std.typecons;
import std.conv;

class MyStrategy
{
    Action getAction(PlayerView playerView, DebugInterface debugInterface)
    {
        throw new Error("Write your strategy here");
    }

    void debugUpdate(PlayerView playerView, DebugInterface debugInterface)
    {
        debugInterface.send(new DebugCommand.Clear());
        debugInterface.getState();
    }
}