Changeset 6.1.15


Ignore:
Timestamp:
08/20/2016 06:27:22 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820182722-2rhllkszywrku2xz
Message:

Hoisted voting-loss logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.14 r6.1.15  
    121121                team_failures += 1
    122122
    123             if team_failures == 5:
    124                 print("The spies won!")
    125                 for p in players:
    126                     p.observe_game(False)
    127                 return
    128 
    129123        elif state == "PERFORM_MISSION":
    130124            team_failures = 0
     
    132126            state = "ADVANCE_MISSIONS"
    133127
    134         if wins >= 3:
     128        if team_failures == 5:
     129            print("The spies won!")
     130            for p in players:
     131                p.observe_game(False)
     132            return
     133        elif wins >= 3:
    135134            print("The Resistance won!")
    136135            for p in players:
Note: See TracChangeset for help on using the changeset viewer.