File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
helpers/test-client/src/sc Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 36
36
import static sc .Util .factorial ;
37
37
38
38
/**
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.
40
41
* <p>
41
42
* Defaults:
42
43
* <ul>
43
- * <li>starts on localhost 13051</li>
44
+ * <li>starts on localhost 13050 ( 13051 with own server) </li>
44
45
* <li>displayNames: player1, player2</li>
45
- * <li>client location: ./ defaultplayer.jar</li>
46
+ * <li>player location: defaultplayer.jar</li>
46
47
* <li>canTimeout: true</li>
47
48
* </ul>
48
49
*/
@@ -119,7 +120,7 @@ public static void main(String[] args) {
119
120
for (int i = 0 ; i < 2 ; i ++) {
120
121
players [i ].canTimeout = !(noTimeout || (boolean ) parser .getOptionValue (noTimeoutOptions [i ], false ));
121
122
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" ));
123
124
players [i ].isJar = Util .isJar (players [i ].executable );
124
125
}
125
126
if (players [0 ].name .equals (players [1 ].name )) {
You can’t perform that action at this time.
0 commit comments