Skip to content

Commit

Permalink
- fix nuclear, fix rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry committed Dec 14, 2017
1 parent e8fd62a commit f9c8603
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/MyStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ private void actualMoveToPoint(VehicleGroupInfo myGroup, Point2D point, Move mov
move.setAction(ActionType.ROTATE);
move.setX(myAverage.getX());
move.setY(myAverage.getY());
move.setAngle(myGroup.shrinkRotateToRight ? Math.PI : -Math.PI);
move.setAngle((myGroup.shrinkRotateToRight ? Math.PI : -Math.PI) * 0.2f);
myGroup.shrinkRotateToRight = !myGroup.shrinkRotateToRight;
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/NuclearStrike.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.Comparator;

public class NuclearStrike {
public static final int PREDICTION_TICK = 33;
public static final int PREDICTION_TICK = 33 / 3;
public static final int KILL_BONUS = 45;
public final VehicleWrapper myVehicle;
public final VehicleWrapper target;
Expand Down Expand Up @@ -88,7 +88,7 @@ public String toString() {
sb.append(", myVehicleDidSurvive=").append(myVehicleDidSurvive);
sb.append(", myStats=").append(myStats);
sb.append(", enemyStats=").append(enemyStats);
sb.append(", ").append(canceled ? "CANCELED" : succeed ? "SUCCEED" : actualTs == 0 ? "NOT_FIRED_YET" : "FAILED");
sb.append(", ").append(canceled ? "CANCELED" : succeed ? "SUCCEED" : actualTs == 0 ? "NOT_FIRED_YET" : "FAILED");
sb.append('}');
return sb.toString();
}
Expand Down
3 changes: 2 additions & 1 deletion core/src/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public static void main(String[] args) throws IOException {
//runProc(null, true, "java", "-cp", "23.jar", "Runner");
//runProc(null, true, "java", "-cp", "23.2.jar", "Runner");
//runProc(null, true, "java", "-cp", "23.4.jar", "Runner");
runProc(null, true, "java", "-cp", "23.5.jar", "Runner");
//runProc(null, true, "java", "-cp", "23.5.jar", "Runner");
runProc(null, true, "java", "-cp", "24.jar", "Runner");
}
}).start();
new Runner(new String[]{"127.0.0.1", hasArgs ? "31001" : "31002", "0000000000000000"}).run();
Expand Down

0 comments on commit f9c8603

Please sign in to comment.