Changeset 4
- Timestamp:
- 08/16/2016 03:07:49 AM (8 years ago)
- branch-nick:
- resistance
- revision id:
- dsowen@fugue88.ws-20160816030749-f2j9ytv656ibq80b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r3 r4 76 76 77 77 """ 78 pass79 80 81 class HumanPlayer(Player):82 83 def __init__(self, player_count, player_num, role):84 super(HumanPlayer, self).__init__(player_count, player_num, role)85 86 def reveal_spies(self, spies):87 print("%s (%s) sees spies: %s" % (self.num, self.role, spies))88 89 def propose_team(self, count):90 if count == 2:91 return [0, 1]92 else:93 return [0, 1, 2]94 95 def approve_team(self, team):96 return True97 98 def observe_team_vote(self, approved, votes):99 pass100 101 def perform_mission(self):102 return False103 104 def observe_mission(self, success, failures):105 78 pass 106 79
Note: See TracChangeset
for help on using the changeset viewer.