University project for the Battlecode competition.
How to install:
- Download Battlecode files: https://github.com/battlecode/battlecode-scaffold-2017/archive/master.zip
- Run
gradlew
andgradlew build
- Clone this repository to
src/KSTTForTheWin
import KSTTForTheWin.Broadcasting.Broadcaster;
// ...
static Broadcaster broadcaster;
// ...
static void run...(RobotController rcon) throws GameActionException {
// ...
broadcaster = new Broadcaster(rcon);
How do I update my broadcaster?
broadcaster.refresh(); // do this at the beginning of each round! it's a cheap command!
How to report that I found an enemy Archon?
broadcaster.reportEnemyArchon(archonRobotId, location);
How to report that I need help?
broadcaster.reportHelpNeeded(); // do not report each round!
How to find where the nearest situation is?
MapLocation whereToGo = broadcaster.findNearestAction();
How do I report that the enemy Archon has died?
broadcaster.reportEnemyArchonDied(archonRobotId);