Changeset 10


Ignore:
Timestamp:
09/20/2016 12:44:02 AM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
main
revision id:
dsowen@fugue88.ws-20160920004402-852bmm4m8ficocju
Message:

Run a controlled AI trial, 1000 rounds

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.60 r10  
    109109            return False
    110110
     111    def winner(self):
     112        if self.team_failures == 5:
     113            return "SPIES"
     114        elif self.wins >= 3:
     115            return "RESISTANCE"
     116        elif self.losses >= 3:
     117            return "SPIES"
     118
    111119
    112120class AdvanceMission(object):
     
    196204        state = state.do()
    197205
     206    return shared.winner()
     207
    198208
    199209if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.