- Timestamp:
- 08/21/2016 03:58:44 AM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160821035844-86y40rzdgfku7clz
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.41 r6.1.42 45 45 self.team_failures = 0 46 46 self.wins = 0 47 self.losses = 0 47 48 48 49 … … 118 119 shared = Shared(player_count, players) 119 120 120 losses = 0121 122 121 def perform_mission(): 123 nonlocal losses124 125 122 failures = 0 126 123 for i in state.team: … … 139 136 else: 140 137 print("Mission had {} failures".format(failures)) 141 losses += 1138 state.shared.losses += 1 142 139 143 140 return AdvanceMission(shared) … … 163 160 p.observe_game(True) 164 161 return 165 elif losses >= 3:162 elif shared.losses >= 3: 166 163 print("The Spies won!") 167 164 for p in shared.players:
Note: See TracChangeset
for help on using the changeset viewer.