-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation of Python GGP Player Example in src_py #53
Comments
sample_gamer.py isn't intended to the run on its own. To use a Python-based player, you should bring up Eclipse, open GGP Base as an ordinary Java project, and run the Java apps (like Server, Player, and Kiosk) as though you were using a Java-based player. Through the magic of a Jython-based translation layer, your Python-based players should be visible as options alongside the Java-based players. When you add new Python-based players you'll have to add a stub class, similar to SamplePythonGamerStub, to let the Jython-based intermediate layer know which Python modules to look for. There's also a "PythonConsole" app which lets you interact with GGP objects (like the state machine, game repository, etc) from Python. |
Excellent. Sounds like a very flexible architecture. Thank you very much.
|
The newest versions of GGP-Base include Gradle support for running applications without using Eclipse. You can run the aforementioned applications with the following commands (use gradlew.bat instead if on Windows): ./gradlew server Apps run through Gradle will include anything in the src/main/resources folder in the classpath. If you're using the very latest version of the code, you'll need to move any files or folders you added to the src_py (or src_clj) folders to src/main/resources. |
import org.ggp...
statements in src_py fail. Jython or other packages/interpretters besides python 2.7 must be required.Documentation of the steps involved in compiling/running a python game player would be an awesome addition.
The text was updated successfully, but these errors were encountered: