Changeset 7


Ignore:
Timestamp:
08/22/2016 11:49:11 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
main
revision id:
dsowen@fugue88.ws-20160822234911-2pn5wimlgbxpd0n3
Message:

Fixed calculation of majority for approving a team

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6 r7  
    6565            votes = [p.approve_team(team) for p in players]
    6666            approvals = sum(votes)
    67             approved = approvals > team_size / 2
     67            approved = approvals > player_count / 2
    6868            print("Team {}: {} for, {} against".format(
    6969                {True: "approved", False: "rejected"}[approved],
Note: See TracChangeset for help on using the changeset viewer.