예제 #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)
예제 #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)
예제 #3
0
 def fortify(self, game_master):
     print("Fortification phase, next to end turn")
     commands.prompt_user(self, game_master, fortify_commands)
예제 #4
0
 def attack(self, game_master):
     print("Attack phase, next to enter fortification phase")
     commands.prompt_user(self, game_master, attack_commands)
예제 #5
0
파일: player.py 프로젝트: davidsonjohn/risk
 def take_turn(self, game_master):
     commands.prompt_user(self, game_master)
예제 #6
0
 def fortify(self, game_master):
     print "Fortification phase, next to end turn"
     commands.prompt_user(self, game_master, fortify_commands)
예제 #7
0
 def attack(self, game_master):
     print "Attack phase, next to enter fortification phase"
     commands.prompt_user(self, game_master, attack_commands)