Changes between Version 434 and Version 435 of WikiStart


Ignore:
Timestamp:
07/28/21 10:17:58 (3 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v434 v435  
    859859
    860860
    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)
     862We 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:
    863863{{{
    864864class RandomParty (DefaultParty):
     
    911911The 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.
    912912
     913== Writing a party in C-Python 3
     914To write a party in C-python 3, check [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPython/wiki/WikiStart GeniusWebPython].
    913915
    914916== Writing a Boa Party