Changes between Version 434 and Version 435 of WikiStart
- Timestamp:
- 07/28/21 10:17:58 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v434 v435 859 859 860 860 861 == Writing a party in Python 862 We provide a python-to-java adapter so that you can easily write your party in python instead of Java. You can check the full working example code [source:/exampleparties/randompartypy/src/main/resources/RandomParty.py here]. A python-based party looks like this:861 == Writing a party in Python2 (Jython) 862 We provide a python-to-java adapter so that you can easily write your party in python 2. Jython, a java-based python 2 interpreter, is used to run your party. You can check the full working example code [source:/exampleparties/randompartypy/src/main/resources/RandomParty.py here]. A python-based party looks like this: 863 863 {{{ 864 864 class RandomParty (DefaultParty): … … 911 911 The python party must be wrapped into a jar wrapper to get it accepted by the parties server. This is done automatically by the maven build script, again just execute {{{mvn package}}} to build. The javadoc with the [source:/pythonadapter/src/main/java/geniusweb/pythonadapter/PythonPartyAdapter.java PythonPartyAdapter] gives the details about this wrapper. 912 912 913 == Writing a party in C-Python 3 914 To write a party in C-python 3, check [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPython/wiki/WikiStart GeniusWebPython]. 913 915 914 916 == Writing a Boa Party