Changeset 6.1.25
- Timestamp:
- 08/20/2016 08:46:48 PM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160820204648-w2xyagebfu9y0f4i
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.24 r6.1.25 40 40 41 41 42 class AssembleTeam(object): 43 pass 44 45 42 46 def main(player_count): 43 47 spy_count = spies_for_players(player_count) … … 70 74 team_size = mission_size(player_count, mission) 71 75 print("Mission {} needs {} members".format(mission, team_size)) 72 return "ASSEMBLE_TEAM"76 return AssembleTeam() 73 77 74 78 def assemble_team(): … … 98 102 else: 99 103 team_failures += 1 100 return "ASSEMBLE_TEAM"104 return AssembleTeam() 101 105 102 106 def perform_mission(): … … 129 133 if isinstance(state, AdvanceMission): 130 134 state = advance_mission() 131 elif state == "ASSEMBLE_TEAM":135 elif isinstance(state, AssembleTeam): 132 136 state = assemble_team() 133 137 elif state == "PERFORM_MISSION":
Note: See TracChangeset
for help on using the changeset viewer.