AIInterface:Python: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Abma (talk | contribs)
Line 19: Line 19:
As a note: most of the Interface is generated by a python script.
As a note: most of the Interface is generated by a python script.


For windows there is a (cross-compiled) package here:
The Interface should be in the official distribution, testing-builds are there:
http://abma.de/builds/pyai-current.zip
http://abma.de/builds/pyai-current.zip
(if building doesn't fail as ATM)





Revision as of 07:57, 6 October 2010

Spring PyAI

The Spring PyAI Interface can be used to write a skirmish AI in Python. Look at the Development Page of Python if you want write an AI.

Code

http://github.com/spring/Python

Building

The Python Interface is in spring/master, just git clone it, run "git submodule init" and you can compile/install it!

Known Issuses/TODO

  • ai's cant force a specific python version, add an setting into aiinfo.lua
  • only one specific python version can be used, loading different ais using different python versions is currently impossible
  • the init event can be replaced by a function / add release function
  • there are no docs, look into interface.py if you search a function
  • logging could be improved

As a note: most of the Interface is generated by a python script.

The Interface should be in the official distribution, testing-builds are there: http://abma.de/builds/pyai-current.zip (if building doesn't fail as ATM)


Status

Most functions and Datatypes should work. All classes and functions are generated and because of this, there is no further documentation available.

At github you find the main repository for the Interface: http://github.com/spring/Python

Check the NullPythonAI for something to start with.