Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def fortify(self, game_master):
     print("Fortification phase, next to end turn")
     commands.prompt_user(self, game_master, fortify_commands)
Exemplo n.º 4
0
 def attack(self, game_master):
     print("Attack phase, next to enter fortification phase")
     commands.prompt_user(self, game_master, attack_commands)
Exemplo n.º 5
0
 def take_turn(self, game_master):
     commands.prompt_user(self, game_master)
Exemplo n.º 6
0
 def fortify(self, game_master):
     print "Fortification phase, next to end turn"
     commands.prompt_user(self, game_master, fortify_commands)
Exemplo n.º 7
0
 def attack(self, game_master):
     print "Attack phase, next to enter fortification phase"
     commands.prompt_user(self, game_master, attack_commands)