Changeset 6.1.17 for main.py


Ignore:
Timestamp:
08/20/2016 06:31:30 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820183130-flh1olza46z5t07q
Message:

Extracted advance_mission()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.16 r6.1.17  
    6060    team = None
    6161    approved = None
     62    team_size = None
     63
     64    def advance_mission():
     65        nonlocal team_size
     66        team_size = mission_size(player_count, mission)
     67        print("Mission {} needs {} members".format(mission, team_size))
    6268
    6369    def assemble_team():
     
    109115    while True:
    110116        if state == "ADVANCE_MISSIONS":
    111             team_size = mission_size(player_count, mission)
    112             print("Mission {} needs {} members".format(mission, team_size))
     117            advance_mission()
    113118            state = "ASSEMBLE_TEAM"
    114119
Note: See TracChangeset for help on using the changeset viewer.