File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
java/org/ggp/base/apps/utilities
resources/org/ggp/base/apps/utilities Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,9 @@ Python console
3939 - How to run: ./gradlew pythonConsole
4040 - Description: A console for interactively running Python code via Jython.
4141 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) {
121121 classpath = sourceSets. main. runtimeClasspath
122122}
123123
124- // This currently fails with an exception
125124task simpleGameSim (type : JavaExec ) {
126125 main = ' org.ggp.base.apps.utilities.SimpleGameSim'
127126 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 {
5353 // keep them secure and hidden, and pass them to "setCryptographicKeys" in Match.
5454 // The match will then be signed using those keys. Do not use the sample keys if you
5555 // 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" ))));
5757 } catch (JSONException e ) {
5858 System .err .println ("Could not load sample cryptograhic keys: " + e );
5959 }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments