You are playing a game where you have an army of soldiers and villagers, where villagers can build factories which in turn produce more soldier and villager units, and soldiers can attack opponent factories and units. But the trick here is, you are not playing the game, but you have to write an AI code to play the game.