Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/11/13 15:21:01 (11 years ago)
Author:
jkarder
Message:

#2069:

  • modified the RobocodeProblem to extract all robots in robocode directory
  • modified the battle runner to take a number of enemies that should be battled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/BestSolutionAnalyzer.cs

    r9926 r9947  
    4040    private const string RobocodePathParamaterName = "RobocodePath";
    4141    private const string NrOfRoundsParameterName = "NrOfRounds";
     42    private const string EnemiesParameterName = "Enemies";
    4243
    4344    public bool EnabledByDefault {
     
    6465      get { return (ILookupParameter<IntValue>)Parameters[NrOfRoundsParameterName]; }
    6566    }
     67    public ILookupParameter<ICheckedItemList<StringValue>> EnemiesParameter {
     68      get { return (ILookupParameter<ICheckedItemList<StringValue>>)Parameters[EnemiesParameterName]; }
     69    }
    6670    #endregion
    6771
     
    7882      Parameters.Add(new LookupParameter<DirectoryValue>(RobocodePathParamaterName, "Path of the Robocode installation."));
    7983      Parameters.Add(new LookupParameter<IntValue>(NrOfRoundsParameterName, "Nr. of Rounds a Robot has to fight against each opponent."));
     84      Parameters.Add(new LookupParameter<ICheckedItemList<StringValue>>(EnemiesParameterName, "The enemies that should be battled."));
    8085    }
    8186
     
    97102
    98103      // create a solution instance
    99       var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value, NrOfRoundsParameter.ActualValue.Value);
     104      var bestSolution = new Solution(bestTree, RobocodePathParameter.ActualValue.Value, NrOfRoundsParameter.ActualValue.Value, EnemiesParameter.ActualValue);
    100105      // store the new solution in the best solution parameter
    101106      BestSolutionParameter.ActualValue = bestSolution;
Note: See TracChangeset for help on using the changeset viewer.