Thanks hoijui!
Right, release v0.1!
Here it is:
http://manageddreams.com/ailadder/AILadder.tar.bz2
There are three parts essentially:
- calcengine runs on the calcengines
- - essentially, tweak the config.py, and run ./calcengine.py
- webserver/db/createall.sh will setup your Mysql database
- - you only need to do this on the webserver
- - you will need a mysql database, and the username and password that goes with it for this
- webserver/website is the website, which runs under apache, or basically anything that can run python as cgi, which is many things, but it is tested on apache2, with python 2.6.2 on Ubuntu Jaunty
- - tweak the config.py (copy from config.py.template), create a 'replays' subdirectory, and make sure the replays directory is writable to the webserver
There are instructions floating around inside the installation. For the website, there is a link 'Setup notes' on the index page of the website.
This is not yet a fully-fledged automated ladder, but what you can do with it is:
- install it on any webserver, including localhost
- run as many calcengines as you like, just tweak their config.py to point to your webserver
- submit requests for lots of matches, and when you come back a bit later, the results should be available, along with the replays!
The replays are tar.bz2'd then uploaded to the website. That conflicts slightly with the philosophy of keeping the website 'lightweight', essentially, is this compatible with running it on springrts.com sometime? Unsure. Better ideas for the replays?
Screenshot of new results page (note: the results were created using a spring simulator, for ease of development, so take no notice of the ratio of draws and so on):
