Changeset 6.1.36
- Timestamp:
- 08/20/2016 09:17:14 PM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160820211714-gag0wrky8bpt71qw
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.35 r6.1.36 65 65 class PerformMission(object): 66 66 67 def __init__(self, shared ):67 def __init__(self, shared, team): 68 68 self.shared = shared 69 self.team = team 69 70 70 71 … … 91 92 losses = 0 92 93 team_failures = 0 93 team = None94 94 95 95 def assemble_team(): 96 nonlocal team , team_failures96 nonlocal team_failures 97 97 98 98 print("Captain is {}".format(state.shared.captain)) … … 116 116 if approved: 117 117 team_failures = 0 118 return PerformMission(shared )118 return PerformMission(shared, team) 119 119 else: 120 120 team_failures += 1 … … 125 125 126 126 failures = 0 127 for i in team:127 for i in state.team: 128 128 if role_deck[i] == "SPY": 129 129 if not players[i].perform_mission():
Note: See TracChangeset
for help on using the changeset viewer.