codegame 0.7.0

CodeGame framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
const model = require('./model/index');

class MyStrategy {
    async getAction(playerView, debugInterface) {
        throw "Write your strategy here";
    }
    async debugUpdate(playerView, debugInterface) {
        await debugInterface.send(new model.DebugCommand.Clear());
        await debugInterface.getState();
    }
}

module.exports.MyStrategy = MyStrategy;