master
Peter Babič 9 years ago
parent 3dc74c2857
commit 3d4b5250ac
  1. 1
      .gitignore
  2. 2
      README.md
  3. 2
      src/environment/RouteFinder.java

1
.gitignore vendored

@ -10,3 +10,4 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/bin/

@ -1,3 +1,3 @@
# robocode
Don't forget to link `./src/myrobot/` to `C:/robocode/robots/myrobot/`
Don't forget to link `./bin/myrobot/` to `C:/robocode/robots/myrobot/`

@ -44,7 +44,7 @@ public class RouteFinder {
double InitialObstacleCol = (double) node.getX();
double InitialObstacleRow = (double) node.getY();
existingRobots[NdxObstacle] = modelRobots[0];
robotSetups[NdxObstacle++] = new RobotSetup(InitialObstacleCol, InitialObstacleRow, 0.0);
robotSetups[NdxObstacle++] = new RobotSetup(InitialObstacleCol, InitialObstacleRow, 180.0);
}
// Create the agent and place it in a random position without obstacle

Loading…
Cancel
Save