Changeset 6.1.37
- Timestamp:
- 08/20/2016 09:18:55 PM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160820211855-9ulqlhxl8w3d8poe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.36 r6.1.37 42 42 self.mission = 0 43 43 self.captain = 0 44 self.team_failures = 0 44 45 45 46 … … 91 92 wins = 0 92 93 losses = 0 93 team_failures = 094 94 95 95 def assemble_team(): 96 nonlocal team_failures97 98 96 print("Captain is {}".format(state.shared.captain)) 99 97 team = players[state.shared.captain].propose_team(state.team_size) … … 115 113 116 114 if approved: 117 team_failures = 0115 state.shared.team_failures = 0 118 116 return PerformMission(shared, team) 119 117 else: 120 team_failures += 1118 state.shared.team_failures += 1 121 119 return AssembleTeam(shared, state.team_size) 122 120 … … 154 152 state = perform_mission() 155 153 156 if team_failures == 5:154 if shared.team_failures == 5: 157 155 print("The spies won!") 158 156 for p in players:
Note: See TracChangeset
for help on using the changeset viewer.