Exemplo n.º 1
0
 def purchase_phase(self, game: Game):
     '''
     In this phase, one should only buy units. The purchased units are placed into game.purchases.
     :param game: Is the object of the game that contains the map, units etc..
     '''
     while True:
         possible = game.recruitable()
         if len(possible) == 0:
             game.next_phase()
             break
         choice = r.randint(0, len(possible) - 1)
         game.recruit_unit(choice)
Exemplo n.º 2
0
 def purchase_inf(self, game: Game):
     game.recruit_unit(1)