- Timestamp:
- 09/11/13 15:21:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Interpreter.cs
r9926 r9947 26 26 using System.Linq; 27 27 using System.Reflection; 28 using HeuristicLab.Core; 29 using HeuristicLab.Data; 28 30 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 31 30 32 namespace HeuristicLab.Problems.Robocode { 31 33 public static class Interpreter { 32 public static double EvaluateTankProgram(ISymbolicExpressionTree tree, string path, string robotName = null, bool showUI = false, int nrOfRounds = 3) {34 public static double EvaluateTankProgram(ISymbolicExpressionTree tree, string path, ICheckedItemList<StringValue> enemies, string robotName = null, bool showUI = false, int nrOfRounds = 3) { 33 35 if (robotName == null) 34 36 robotName = GenerateRobotName(); … … 81 83 evaluateCodeInfo.Arguments += " false " + nrOfRounds; 82 84 } 85 86 foreach (var enemy in enemies) 87 evaluateCodeInfo.Arguments += enemy.Value + "* "; 83 88 84 89 evaluateCodeInfo.RedirectStandardOutput = true;
Note: See TracChangeset
for help on using the changeset viewer.