Changeset 6.1.49 for main.py


Ignore:
Timestamp:
08/21/2016 04:18:56 AM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160821041856-9lz1d4tjqpvg1zme
Message:

Delegated get_proposed_team()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.48 r6.1.49  
    5454        self.mission += 1
    5555
     56    def get_proposed_team(self, team_size):
     57        return self.players[self.captain].propose_team(team_size)
     58
    5659
    5760class AdvanceMission(object):
     
    7578    def do(self):
    7679        print("Captain is {}".format(self.shared.captain))
    77         team = self.shared.players[self.shared.captain].propose_team(self.team_size)
     80        team = self.shared.get_proposed_team(self.team_size)
    7881        print("He proposed {}".format(team))
    7982
Note: See TracChangeset for help on using the changeset viewer.