예제 #1
0
파일: bot.py 프로젝트: cair/Axis_and_Allies
 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)
예제 #2
0
 def purchase_inf(self, game: Game):
     game.recruit_unit(1)