Changeset 9891
- Timestamp:
- 08/21/13 16:14:02 (11 years ago)
- Location:
- branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/External Evaluator/BattleRunner.java
r9884 r9891 24 24 // 25 25 // Add this file to the HL bin folder. Compile it with the following command: 26 // javac -cp c:\robocode\ ;robocode.jar BattleRunner.java26 // javac -cp c:\robocode\libs\robocode.jar BattleRunner.java 27 27 // 28 28 public class BattleRunner { -
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/HeuristicLab.Problems.Robocode-3.3.csproj
r9888 r9891 93 93 <ItemGroup> 94 94 <Compile Include="BestSolutionAnalyzer.cs" /> 95 <None Include="BattleObserver.class"> 96 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 97 </None> 98 <None Include="BattleRunner.class"> 99 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 100 </None> 95 101 <None Include="HeuristicLab.snk" /> 96 102 <None Include="Plugin.cs.frame" /> -
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Interpreter.cs
r9889 r9891 25 25 using System.IO; 26 26 using System.Linq; 27 using System.Reflection; 27 28 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 29 … … 35 36 string interpretedProgram = InterpretProgramTree(tree.Root, robotName); 36 37 string formattedPath = path.Replace("/", "\\"); 38 string battleRunnerPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 37 39 38 40 try { … … 70 72 71 73 ProcessStartInfo evaluateCodeInfo = new ProcessStartInfo(); 74 72 75 evaluateCodeInfo.FileName = "cmd.exe"; 73 evaluateCodeInfo.Arguments = "/C java -classpath " + formattedPath + "\\libs;" + formattedPath + 74 "\\libs\\robocode.core-1.8.1.0.jar;" + formattedPath + "\\libs\\robocode.jar;" + 76 evaluateCodeInfo.Arguments = "/C java -classpath " + battleRunnerPath + ";" + formattedPath + "\\libs\\robocode.core-1.8.1.0.jar;" + formattedPath + "\\libs\\robocode.jar;" + 75 77 formattedPath + "\\libs\\picocontainer-2.14.2.jar BattleRunner Evaluation." + 76 78 robotName + "* " + formattedPath;
Note: See TracChangeset
for help on using the changeset viewer.