Skip to content

Commit d66c552

Browse files
author
Julien
committed
doc(sdk): give a proper example
1 parent 0a5ed05 commit d66c552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runner/src/main/java/com/codingame/gameengine/runner/MultiplayerGameRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected void buildInitCommand(Command initCommand) {
168168
* <p>
169169
* The given command array will be executed with <code>Runtime.getRuntime().exec()</code>.
170170
* </p>
171-
* Example: <code>new String[]{"echo", "test command"}</code>
171+
* Example: <code>new String[]{"bash", "-c", "echo command1 && echo command2"}</code>
172172
*
173173
* @param commandArray
174174
* the system command array to run the AI.
@@ -186,7 +186,7 @@ public void addAgent(String[] commandArray, String nickname, String avatarUrl) {
186186
* <p>
187187
* The given command array will be executed with <code>Runtime.getRuntime().exec()</code>.
188188
* </p>
189-
* Example: <code>new String[]{"echo", "test command"}</code>
189+
* Example: <code>new String[]{"bash", "-c", "echo command1 && echo command2"}</code>
190190
*
191191
* @param commandArray
192192
* the system command array to run the AI.
@@ -202,7 +202,7 @@ public void addAgent(String[] commandArray, String nickname) {
202202
* <p>
203203
* The given command array will be executed with <code>Runtime.getRuntime().exec()</code>.
204204
* </p>
205-
* Example: <code>new String[]{"echo", "test command"}</code>
205+
* Example: <code>new String[]{"bash", "-c", "echo command1 && echo command2"}</code>
206206
*
207207
* @param commandArray
208208
* the system command array to run the AI.

0 commit comments

Comments
 (0)