- Timestamp:
- 08/20/2016 09:09:16 PM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160820210916-o7q99qssutktstv6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.32 r6.1.33 48 48 self.shared = shared 49 49 50 def advance_mission(self): 51 self.shared.mission += 1 52 team_size = mission_size(self.shared.player_count, self.shared.mission) 53 print("Mission {} needs {} members".format(self.shared.mission, team_size)) 54 return AssembleTeam(self.shared, team_size) 55 50 56 51 57 class AssembleTeam(object): … … 86 92 team_failures = 0 87 93 team = None 88 89 def advance_mission():90 state.shared.mission += 191 team_size = mission_size(state.shared.player_count, state.shared.mission)92 print("Mission {} needs {} members".format(state.shared.mission, team_size))93 return AssembleTeam(shared, team_size)94 94 95 95 def assemble_team(): … … 148 148 while True: 149 149 if isinstance(state, AdvanceMission): 150 state = advance_mission()150 state = state.advance_mission() 151 151 elif isinstance(state, AssembleTeam): 152 152 state = assemble_team()
Note: See TracChangeset
for help on using the changeset viewer.