File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,18 @@ def filtered_strategies(filterset, strategies=all_strategies):
100
100
Applies the filters defined in the given filterset dict and returns those
101
101
strategy classes which pass all of those filters from the given list of
102
102
strategies.
103
+
103
104
e.g.
105
+
104
106
For the filterset dict:
105
107
{
106
108
'stochastic': True,
107
109
'min_memory_depth': 2
108
110
}
111
+
109
112
the function will return a list of all deterministic strategies with a
110
113
memory_depth of 2 or more.
114
+
111
115
Parameters
112
116
----------
113
117
filterset : dict
@@ -119,9 +123,12 @@ def filtered_strategies(filterset, strategies=all_strategies):
119
123
}
120
124
strategies: list
121
125
of subclasses of axelrod.Player
126
+
122
127
Returns
123
128
-------
124
129
list
130
+
125
131
of subclasses of axelrod.Player
132
+
126
133
"""
127
134
return [s for s in strategies if passes_filterset (s , filterset )]
You can’t perform that action at this time.
0 commit comments