Skip to content

Commit

Permalink
- stay in facilities
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry committed Dec 14, 2017
1 parent 3af2d18 commit a7e6982
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions core/src/MyStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ private void potentialMove() {

if (initialScale(myGroup)) continue;

if (myGroup.goToFacility != null && myGroup.getAveragePoint().getDistanceTo(myGroup.goToFacility.getCenterPos()) < 20) {
if (!myGroup.goToFacility.isMy() || myGroup.goToFacility.f.getCapturePoints() != game.getMaxFacilityCapturePoints()) {
log(Utils.LOG_MOVING + " skip move because of capturing " + myGroup);
continue;
}
}

if (true) {
scheduleSelectAll(myGroup);
Expand Down
2 changes: 1 addition & 1 deletion core/src/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void main(String[] args) throws IOException {
//runProc(null, true, "java", "-cp", "22.jar", "Runner");
//runProc(null, true, "java", "-cp", "22.3.jar", "Runner");
//runProc(null, true, "java", "-cp", "22.5.jar", "Runner");
runProc(null, true, "java", "-cp", "22.6.jar", "Runner");
runProc(null, true, "java", "-cp", "23.jar", "Runner");
}
}).start();
new Runner(new String[]{"127.0.0.1", hasArgs ? "31001" : "31002", "0000000000000000"}).run();
Expand Down

0 comments on commit a7e6982

Please sign in to comment.