Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
←
Previous Changeset
Next Changeset
→
Changeset 7
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
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
main.py
(modified)
(
1 diff
)
Legend:
Unmodified
Added
Removed
main.py
r6
r7
65
65
votes = [p.approve_team(team) for p in players]
66
66
approvals = sum(votes)
67
approved = approvals >
team_size
/ 2
67
approved = approvals >
player_count
/ 2
68
68
print("Team {}: {} for, {} against".format(
69
69
{True: "approved", False: "rejected"}[approved],
Note:
See
TracChangeset
for help on using the changeset viewer.
Download in other formats:
Unified Diff
Zip Archive