Hi can some help, thanks
def summonTypes():
type=summonTypes[len(self.built) % len(summonTypes)]
def summonTroops():
if self.gold >= self.costOf('soldier'):
self.summon('soldier')
def commandTroops():
friends=self.findFriends()
for friend in friends:
enemies=self.findEnemies()
enemy=self.findNearestEnemy()
self.command(friend, "attack", enemies)
def collectCoins():
coin=self.findNearest(self.findItems())
self.move(coin.pos)
loop:
summonTypes()
summonTroops()
commandTroops()
collectCoins()