File tree 4 files changed +7
-2
lines changed
java/org/ggp/base/apps/utilities
resources/org/ggp/base/apps/utilities
4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,9 @@ Python console
39
39
- How to run: ./gradlew pythonConsole
40
40
- Description: A console for interactively running Python code via Jython.
41
41
Jython is a Python implementation that runs in the JVM.
42
+
43
+ Simple game simulation
44
+ - Main class: org.ggp.base.apps.utilities.SimpleGameSim
45
+ - How to run: ./gradlew simpleGameSim
46
+ - Description: Runs a play-through of a single match, to illustrate how the
47
+ game server code works. See the source code for details.
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ task server(type: JavaExec) {
121
121
classpath = sourceSets. main. runtimeClasspath
122
122
}
123
123
124
- // This currently fails with an exception
125
124
task simpleGameSim (type : JavaExec ) {
126
125
main = ' org.ggp.base.apps.utilities.SimpleGameSim'
127
126
classpath = sourceSets. main. runtimeClasspath
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static void main(String[] args) throws InterruptedException {
53
53
// keep them secure and hidden, and pass them to "setCryptographicKeys" in Match.
54
54
// The match will then be signed using those keys. Do not use the sample keys if you
55
55
// want to actually prove anything.
56
- theMatch .setCryptographicKeys (new EncodedKeyPair (FileUtils .readFileAsString (new File ("src/org/ggp/base/apps/utilities/SampleKeys.json" ))));
56
+ theMatch .setCryptographicKeys (new EncodedKeyPair (FileUtils .readFileAsString (new File ("src/main/resources/ org/ggp/base/apps/utilities/SampleKeys.json" ))));
57
57
} catch (JSONException e ) {
58
58
System .err .println ("Could not load sample cryptograhic keys: " + e );
59
59
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments