def reinforce(self, game_master): while self.reserves > 0: print('player has armies to deploy') print("%s's territories: " % self.name) print("---------------------------------------------------") print(list(game_master.player_territories(self).keys())) risk.printer.display_user_armies( self, game_master.player_territories(self)) commands.prompt_user(self, game_master, reinforce_commands, HumonRiskPlayer._no_more_reserves)
def reinforce(self, game_master): while self.reserves > 0: print 'player has armies to deploy' print "%s's territories: " % self.name print "---------------------------------------------------" print game_master.player_territories(self).keys() risk.printer.display_user_armies(self, game_master.player_territories(self)) commands.prompt_user(self, game_master, reinforce_commands, HumonRiskPlayer._no_more_reserves)
def fortify(self, game_master): print("Fortification phase, next to end turn") commands.prompt_user(self, game_master, fortify_commands)
def attack(self, game_master): print("Attack phase, next to enter fortification phase") commands.prompt_user(self, game_master, attack_commands)
def take_turn(self, game_master): commands.prompt_user(self, game_master)
def fortify(self, game_master): print "Fortification phase, next to end turn" commands.prompt_user(self, game_master, fortify_commands)
def attack(self, game_master): print "Attack phase, next to enter fortification phase" commands.prompt_user(self, game_master, attack_commands)