Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9891


Ignore:
Timestamp:
08/21/13 16:14:02 (11 years ago)
Author:
ascheibe
Message:

#2069 moved battle runner from Robocode directory to HL bin

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  
    2424//
    2525// Add this file to the HL bin folder. Compile it with the following command:
    26 // javac -cp c:\robocode\;robocode.jar BattleRunner.java
     26// javac -cp c:\robocode\libs\robocode.jar BattleRunner.java
    2727//
    2828public class BattleRunner {
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/HeuristicLab.Problems.Robocode-3.3.csproj

    r9888 r9891  
    9393  <ItemGroup>
    9494    <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>
    95101    <None Include="HeuristicLab.snk" />
    96102    <None Include="Plugin.cs.frame" />
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Interpreter.cs

    r9889 r9891  
    2525using System.IO;
    2626using System.Linq;
     27using System.Reflection;
    2728using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2829
     
    3536      string interpretedProgram = InterpretProgramTree(tree.Root, robotName);
    3637      string formattedPath = path.Replace("/", "\\");
     38      string battleRunnerPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
    3739
    3840      try {
     
    7072
    7173      ProcessStartInfo evaluateCodeInfo = new ProcessStartInfo();
     74
    7275      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;" +
    7577                                   formattedPath + "\\libs\\picocontainer-2.14.2.jar BattleRunner Evaluation." +
    7678                                   robotName + "* " + formattedPath;
Note: See TracChangeset for help on using the changeset viewer.