for p in self.players]))
self.play_cards_and_place_armies(player)
captures = self.attack_and_fortify(player)
- if captures > 0 and len(self.deck) > 0 and len(self.living_players()) > 1:
- self.deal(player, 1)
+ self.end_of_turn_cards(player, captures)
def select_territories(self):
for t in self.world.territories():
t.player = None
if len(self.living_players()) > 1:
player.report(self.world, self.log)
# else the game is over, and killed will hear about this then.
+ def end_of_turn_cards(self, player, captures):
+ """Deal end-of-turn reward for any territory captures.
+ """
+ if captures > 0 and len(self.deck) > 0 and len(self.living_players()) > 1:
+ self.deal(player, 1)
def living_players(self):
return [p for p in self.players if p.alive == True]