I spent a year "playing" Screeps, a developer strategy game that runs your NodeJS script to act in the game. It required the development of quite a few complex systems to build a reliable script.
I wrote up my experience on my blog.
I wrote up my experience on my blog.