Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/13 15:11:53 (11 years ago)
Author:
ascheibe
Message:

#2069

  • renamed path parameter to robocode path
  • made number of rounds configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/External Evaluator/BattleRunner.java

    r9899 r9926  
    4040    public static List<Double> score = new ArrayList<Double>();
    4141
    42   //
    4342  // This program requires at least 1 argument: the name of the robot.
    4443  // The second argument is the path to the robocode installation. If not give, c:\robocode is assumed.
    4544  // The third argument is optional. If it is true, robocode is shown, otherwise it is hidden.
    46   //
    47     public static void main(String[] args) {
     45  // The fourth argument is the number of rounds.
     46  public static void main(String[] args) {
    4847    String roboCodePath = "C:\\robocode";
    4948    Boolean visible = false;   
     
    7069      roboCodePath = args[1];
    7170            visible = Boolean.valueOf(args[2]);
     71        }
     72    else if (args.length == 4)
     73        {
     74            robots[0] = args[0];           
     75      player = args[0];       
     76      roboCodePath = args[1];
     77            visible = Boolean.valueOf(args[2]);
     78      numberOfRounds = Integer.valueOf(args[3]);
    7279        }
    7380        else
Note: See TracChangeset for help on using the changeset viewer.