Bot API General forum
9 replies. Last post: 2015-09-12
Reply to this topic Return to forumReturn to forum
You have 0 new messages
You have 0 games on move.
You have 0 invitations to game.
9 replies. Last post: 2015-09-12
Reply to this topic Return to forumI see a number of bots being connected to LG and I wonder how is this done. Is there an API
that a bot developer can use? I couldn't find any documentation about neither an API nor
any protocol. Can somebody point me to a resource to find out more about this?
The reason I am asking is because I am developing an Amazons bot and I would like to put
it up to play automatically.
There's no official API, but it's quite easy to scrape the HTML and play moves by making http requests.
Thanks for the info. I wonder if there is some toolkit to download, preferrably in python…
The code for my Amazons bot is available at http://hippolyta.amecy.com . It includes instructions on setting it up on LG. You could create an account and get my bot running under it, then swap out my bot for yours.
Tommah: Thanks, I'll try that. This is very nice of you.
As a side note, my bot Molpadia is currently playing with yours but through my account. :)
There is an XML based API available. Try
wget -o /dev/null -O /dev/stdout 'http://www.littlegolem.net/get_xml.jsp?login=&password='
Of course, 'login=YOUR_LOGIN&password=YOUR_PASSWORD' (was removed due to some markup magic, sorry)
Mirko Rahn: That is awesome. Is there any documentation of this API anywhere?
Not that I know any documentation. The XML interface I learned from a personal communication with one of the bot authors (sorry, I forgot the name ._.) However, it works fine since years and I guess it will continue to do so. Unless RIchard decides to remove it, of course.