Changeset 6.1.2


Ignore:
Timestamp:
08/20/2016 05:26:09 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820172609-bjvsl0w07extdjpy
Message:

Advance mission on completion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.1 r6.1.2  
    5555    captain = 0
    5656    team_failures = 0
    57     mission = 0                 # The first mission is actually 1.
     57    mission = 1
    5858
    5959    while True:
    60         mission += 1
    6160        team_size = mission_size(player_count, mission)
    6261        print("Mission {} needs {} members".format(mission, team_size))
     
    9291                    print("Mission succeeded")
    9392                    wins += 1
     93                    mission += 1
    9494                    if wins >= 3:
    9595                        print("The Resistance won!")
     
    100100                    print("Mission had {} failures".format(failures))
    101101                    losses += 1
     102                    mission += 1
    102103                    if losses >= 3:
    103104                        print("The Spies won!")
Note: See TracChangeset for help on using the changeset viewer.