how to bot Hex, Havannah

7 replies. Last post: 2019-10-18

Reply to this topic Return to forum

how to bot
  • Tom Ace at 2019-10-17

    If no one else wants to offer bots for download, how hard is it to set one up?  I have some spare time.

    Can anyone say where the bots we see playing here got their code from?  Is there more than one flavor?  I downloaded code from

    but I am new to Python and don’t have all the required libraries on hand.  To gear up to run this might be a bit of work, which is OK but it would be nice to know if this is the right starting point or if other code is preferable.

    If I get a bot running I would be happy to offer it for others to download.

    Or would any of the people running bots here be kind enough to offer downloads (hint, hint).

  • Arek Kulczycki at 2019-10-17

    I do not have any spare time but if by any chance I will have, then I would like to help. I would like to learn some machine learning and generally Im a python backend developer so maybe Im able to at least understand some of the existing code ;)

  • Arek Kulczycki at 2019-10-17

    Tomorrow I download the code and have a look

  • gzero_bot at 2019-10-18

    Just wanted to point out that gzero has been available to “download” since the first line of code was written.  It is a GGP bot, not a hex bot however, and it isn’t exactly double click and away you go.


    and for models:

    all trained models for other games can be found in the gzero_data repo also.

    If anyone wants the training data so they can continue where I left off, I can give you access via ssh/scp.

  • gzero_bot at 2019-10-18

    I was thinking if 15x15 comes to fruition here on LG, perhaps anyone here would like to be part of a collaborative effort for a new bot?  I am thinking 95% pure python, minimal dependencies and  keeping things as simple as possible.

  • Arek Kulczycki at 2019-10-18

    So I managed to run the script that TomAce has linked. It has some ugly hard-coded constants which I corrected, but it doesn’t have a requirements file so I’m not sure if I use proper libraries' versions.  Generally it runs, but the problem is that it takes up all my memory and dies.

    Does anybody have an experience in how to manage tensorflow 2.0 memory usage?

  • lguser at 2019-10-18

    downloading gzero bot seems like the best choice because it has already been trained

Return to forum

Reply to this topic

Include game board: [game;id:123456] or [game;id:123456;move:20] or [game;id:123456;move:20;title:some text]