Skip to content

Commit

Permalink
- 23.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry committed Dec 14, 2017
1 parent a7e6982 commit a76644a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file added 23.2.jar
Binary file not shown.
13 changes: 6 additions & 7 deletions core/src/MyStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -1509,23 +1509,22 @@ private void schedulePotentialMoveToPoint(VehicleGroupInfo myGroup) {
}
for (int x = myX - half; x <= myX + half; x++) {
for (int y = myY - half; y <= myY + half; y++) {
if (y == myY && x == myX) {
continue;
}
Point2D currentChoice = new Point2D(x, y);
if (Math.ceil(currentChoice.getDistanceTo(myX, myY)) > half + 0.01) {
continue;
}

currentChoice.setVal(myGroup.potentialMap.get(x, y));
if (bestChoice == null || bestChoice.getVal() < currentChoice.getVal()) {
//TODO check safety
bestChoice = currentChoice;
if (true) {
if (bestChoice == null || bestChoice.getVal() < currentChoice.getVal()) {
//TODO check safety
bestChoice = currentChoice;
}
}
}
}

if (bestChoice != null) {
if (bestChoice != null && !bestChoice.equals(new Point2D(myX, myY))) {
scheduleSelectAll(myGroup);
actualMoveToPoint(myGroup, bestChoice.mul(cellSize).add(cellSize / 2, cellSize / 2), move); //TODO scale\rotate when needed
} else {
Expand Down
3 changes: 2 additions & 1 deletion core/src/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ 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", "23.jar", "Runner");
//runProc(null, true, "java", "-cp", "23.jar", "Runner");
runProc(null, true, "java", "-cp", "23.2.jar", "Runner");
}
}).start();
new Runner(new String[]{"127.0.0.1", hasArgs ? "31001" : "31002", "0000000000000000"}).run();
Expand Down

0 comments on commit a76644a

Please sign in to comment.