Skip to content

Commit 5d27034

Browse files
committed
fix(testclient): simplify executable path
1 parent d9ccccb commit 5d27034

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

helpers/test-client/src/sc/TestClient.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@
3636
import static sc.Util.factorial;
3737

3838
/**
39-
* A simple command-line application to test clients. Enables TestMode on startup.
39+
* A simple command-line application to test clients.
40+
* Enables TestMode on startup.
4041
* <p>
4142
* Defaults:
4243
* <ul>
43-
* <li>starts on localhost 13051</li>
44+
* <li>starts on localhost 13050 (13051 with own server)</li>
4445
* <li>displayNames: player1, player2</li>
45-
* <li>client location: ./defaultplayer.jar</li>
46+
* <li>player location: defaultplayer.jar</li>
4647
* <li>canTimeout: true</li>
4748
* </ul>
4849
*/
@@ -119,7 +120,7 @@ public static void main(String[] args) {
119120
for (int i = 0; i < 2; i++) {
120121
players[i].canTimeout = !(noTimeout || (boolean) parser.getOptionValue(noTimeoutOptions[i], false));
121122
players[i].name = (String) parser.getOptionValue(nameOptions[i], "player" + (i + 1));
122-
players[i].executable = new File((String) parser.getOptionValue(execOptions[i], "./defaultplayer.jar"));
123+
players[i].executable = new File((String) parser.getOptionValue(execOptions[i], "defaultplayer.jar"));
123124
players[i].isJar = Util.isJar(players[i].executable);
124125
}
125126
if (players[0].name.equals(players[1].name)) {

0 commit comments

Comments
 (0)