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/Solution.cs

    r9926 r9947  
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
     24using HeuristicLab.Data;
    2425using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2526using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    3839    public int NrOfRounds { get; set; }
    3940
     41    [Storable]
     42    public ICheckedItemList<StringValue> Enemies { get; set; }
     43
    4044    [StorableConstructor]
    4145    private Solution(bool deserializing) : base(deserializing) { }
     
    4549      Path = (string)original.Path.Clone();
    4650      NrOfRounds = original.NrOfRounds;
     51      Enemies = cloner.Clone(original.Enemies);
    4752    }
    4853
    49     public Solution(ISymbolicExpressionTree tree, string path, int nrOfRounds)
     54    public Solution(ISymbolicExpressionTree tree, string path, int nrOfRounds, ICheckedItemList<StringValue> enemies)
    5055      : base() {
    5156      this.Tree = tree;
    5257      this.Path = path;
    5358      this.NrOfRounds = nrOfRounds;
     59      this.Enemies = enemies;
    5460    }
    5561
Note: See TracChangeset for help on using the changeset viewer.