Bot API General forum

9 replies. Last post: 2015-09-12

Reply to this topic Return to forum

Bot API
  • Inge Wallin at 2015-09-12

    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.

  • z at 2015-09-12

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

  • Inge Wallin at 2015-09-12

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

  • Tommah at 2015-09-12

    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.

  • Inge Wallin at 2015-09-12

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

  • Mirko Rahn at 2015-09-12

    There is an XML based API available. Try

    wget -o /dev/null -O /dev/stdout 'http://www.littlegolem.net/get_xml.jsp?login=&password='

  • Mirko Rahn at 2015-09-12

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

  • Inge Wallin at 2015-09-12

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

  • Mirko Rahn at 2015-09-12

    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.

Return to forum

Reply to this topic