- Timestamp:
- 08/20/13 14:01:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Interpreter.cs
r9882 r9884 35 35 try { 36 36 outputname = Guid.NewGuid().ToString(); 37 outputname = outputname.Replace('-', '_'); 38 outputname = "Robocode" + outputname; 37 outputname = outputname.Remove(8, 1); 38 outputname = outputname.Remove(12, 1); 39 outputname = outputname.Remove(16, 1); 40 outputname = outputname.Remove(20, 1); 41 outputname = outputname.Remove(0, 1); 42 outputname = outputname.Insert(0, "R"); 43 39 44 string output = interpretedProgram.Replace("class output", "class " + outputname); 40 45 File.WriteAllText(path + "/robots/Evaluation/" + outputname + ".java", output, System.Text.Encoding.Default); … … 87 92 88 93 string scoreString = ""; 89 double evaluation = - 900;94 double evaluation = -1.0; 90 95 try { 91 96 scoreString = evaluateCode.StandardOutput.ReadToEnd().Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries).Last();
Note: See TracChangeset
for help on using the changeset viewer.