Created
September 10, 2015 20:47
-
-
Save drvinceknight/9f7504cf19021af7307a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axelrod | |
strategies = axelrod.basic_strategies | |
strategies += axelrod.ordinary_strategies | |
strategies += axelrod.cheating_strategies | |
count = 0 | |
for s in strategies: | |
s = s() | |
if None in s.behaviour.values(): | |
unclassified_keys = [key for key in s.behaviour if s.behaviour[key] is None] | |
print s, unclassified_keys, len(unclassified_keys) | |
count += 1 | |
print '===============' | |
print "{} strategies are missing classifiers".format(count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment