Skip to content
Little GolemMake your next move.

Bot API

Public forum discussion.

#1 · Inge Wallin

12 Sep 2015

I 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.

#2 · z

12 Sep 2015

There's no official API, but it's quite easy to scrape the HTML and play moves by making http requests.

#3 · Inge Wallin

12 Sep 2015

Thanks for the info.  I wonder if there is some toolkit to download, preferrably in python...

#4 · Tommah

12 Sep 2015

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.

#5 · Inge Wallin

12 Sep 2015

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.  :)

#7 · Mirko Rahn

12 Sep 2015

Of course, 'login=YOUR_LOGIN&password=YOUR_PASSWORD'  (was removed due to some markup magic, sorry)

#8 · Inge Wallin

12 Sep 2015

Mirko Rahn: That is awesome.  Is there any documentation of this API anywhere?

#9 · Mirko Rahn

12 Sep 2015

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.