CODE OF KUTULU @ Codingame 

Why play games when you can write bots to play them? Join me at: https://www.codingame.com/contests/code-of-kutulu

Once again I’m taking part in CodinGame online contest, this time in Lovecraftian theme ending on June 25. You implement a bot that is supposed to play in game run on Codingame site against other bots. The game is about explorers trying to survive the longest in a dungeon before losing their sanity.

I already did get to silver leagues in other games like Ghost in the Cell (while refreshing my C++), Code Royale (Dota-like game, worked on my Python3 skills). In Code Royale I played with strategy pattern, so that I could easily change the behavior of bot and started using this lisp-like predicate construct to help me pipe a lot of conditions easily and read-ably:

def dt(cond, l, r):
    x = cond is True
    print(str(x), file=sys.stderr)
    if x:
        return l
    else:
        return r

This time I also want to setup my deck to be able to run games offline for faster feedback and potentially play with some better algorithms.

Best players create simulations of the game, often re-implementing it for performance reasons. Being able to simulate the progress of the game they apply Mini-maxes, Genetic Algorithms, Neural Networks and other fancy things to select the best moves. This is in line with what Elon Musks OpenAI owning Dota2 single-player is about:

edit: nice deep dive into properly approaching this kind of contests: https://github.com/Manwe56/competitive-programming/blob/master/docs/advices.pdf
edit2: This post comes down to two songs by same guy:

Advertisements