Changeset 6.1.36


Ignore:
Timestamp:
08/20/2016 09:17:14 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820211714-gag0wrky8bpt71qw
Message:

Moved team to states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.35 r6.1.36  
    6565class PerformMission(object):
    6666
    67     def __init__(self, shared):
     67    def __init__(self, shared, team):
    6868        self.shared = shared
     69        self.team = team
    6970
    7071
     
    9192    losses = 0
    9293    team_failures = 0
    93     team = None
    9494
    9595    def assemble_team():
    96         nonlocal team, team_failures
     96        nonlocal team_failures
    9797
    9898        print("Captain is {}".format(state.shared.captain))
     
    116116        if approved:
    117117            team_failures = 0
    118             return PerformMission(shared)
     118            return PerformMission(shared, team)
    119119        else:
    120120            team_failures += 1
     
    125125
    126126        failures = 0
    127         for i in team:
     127        for i in state.team:
    128128            if role_deck[i] == "SPY":
    129129                if not players[i].perform_mission():
Note: See TracChangeset for help on using the changeset viewer.