File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
runner/src/main/java/com/codingame/gameengine/runner Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,19 @@ public class CommandLinePlayerAgent extends Agent {
20
20
* Creates an Agent for your game, will run the given commandLine at game start
21
21
*
22
22
* @param commandLine
23
- * the commandLine to run
23
+ * the command line to run
24
24
*/
25
25
public CommandLinePlayerAgent (String commandLine ) {
26
26
super ();
27
- this .commandArray = new String [] { commandLine } ;
27
+ this .commandArray = commandLine . split ( " " ) ;
28
28
}
29
-
29
+
30
+ /**
31
+ * Creates an Agent for your game, will run the given commandLine at game start
32
+ *
33
+ * @param commandArray
34
+ * the command array to run
35
+ */
30
36
public CommandLinePlayerAgent (String [] commandArray ) {
31
37
super ();
32
38
this .commandArray = commandArray ;
You can’t perform that action at this time.
0 commit comments