You might want to check out the "BWAPI" project I started a few years ago. Basically it's a framework to automate the real time strategy game "Starcraft" by "Blizzard Entertainment" via various programming langauges. It's being used during many artificial intelligence conferences and there are many universities developing their own bots.
https://code.google.com/p/bwapi/