Changeset 6.1.14


Ignore:
Timestamp:
08/20/2016 06:25:19 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820182519-1fr055wl890bhynj
Message:

Hoisted normal win/lose logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.13 r6.1.14  
    130130            team_failures = 0
    131131            perform_mission()
     132            state = "ADVANCE_MISSIONS"
    132133
    133             if wins >= 3:
    134                 print("The Resistance won!")
    135                 for p in players:
    136                     p.observe_game(True)
    137                 return
    138             elif losses >= 3:
    139                 print("The Spies won!")
    140                 for p in players:
    141                     p.observe_game(False)
    142                 return
     134        if wins >= 3:
     135            print("The Resistance won!")
     136            for p in players:
     137                p.observe_game(True)
     138            return
     139        elif losses >= 3:
     140            print("The Spies won!")
     141            for p in players:
     142                p.observe_game(False)
     143            return
    143144
    144             state = "ADVANCE_MISSIONS"
    145145
    146146
Note: See TracChangeset for help on using the changeset viewer.