Changeset 6.1.41
- Timestamp:
- 08/21/2016 03:53:45 AM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160821035345-phthq2jk8uhgfrbr
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.40 r6.1.41 44 44 self.captain = 0 45 45 self.team_failures = 0 46 self.wins = 0 46 47 47 48 … … 117 118 shared = Shared(player_count, players) 118 119 119 wins = 0120 120 losses = 0 121 121 122 122 def perform_mission(): 123 nonlocal wins,losses123 nonlocal losses 124 124 125 125 failures = 0 … … 136 136 if success: 137 137 print("Mission succeeded") 138 wins += 1138 state.shared.wins += 1 139 139 else: 140 140 print("Mission had {} failures".format(failures)) … … 158 158 p.observe_game(False) 159 159 return 160 elif wins >= 3:160 elif shared.wins >= 3: 161 161 print("The Resistance won!") 162 162 for p in shared.players:
Note: See TracChangeset
for help on using the changeset viewer.