Changeset 6.1.43
- Timestamp:
- 08/21/2016 04:03:40 AM (8 years ago)
- branch-nick:
- state
- revision id:
- dsowen@fugue88.ws-20160821040340-f51ivyo0n3o2ip7c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r6.1.42 r6.1.43 38 38 class Shared(object): 39 39 40 def __init__(self, player_count, players ):40 def __init__(self, player_count, players, role_deck): 41 41 self.player_count = player_count 42 42 self.players = players 43 self.role_deck = role_deck 43 44 self.mission = 0 44 45 self.captain = 0 … … 117 118 players[i].reveal_spies(spy_nums) 118 119 119 shared = Shared(player_count, players )120 shared = Shared(player_count, players, role_deck) 120 121 121 122 def perform_mission(): 122 123 failures = 0 123 124 for i in state.team: 124 if role_deck[i] == "SPY":125 if state.shared.role_deck[i] == "SPY": 125 126 if not state.shared.players[i].perform_mission(): 126 127 failures = failures + 1
Note: See TracChangeset
for help on using the changeset viewer.