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):
100100 Applies the filters defined in the given filterset dict and returns those
101101 strategy classes which pass all of those filters from the given list of
102102 strategies.
103+
103104 e.g.
105+
104106 For the filterset dict:
105107 {
106108 'stochastic': True,
107109 'min_memory_depth': 2
108110 }
111+
109112 the function will return a list of all deterministic strategies with a
110113 memory_depth of 2 or more.
114+
111115 Parameters
112116 ----------
113117 filterset : dict
@@ -119,9 +123,12 @@ def filtered_strategies(filterset, strategies=all_strategies):
119123 }
120124 strategies: list
121125 of subclasses of axelrod.Player
126+
122127 Returns
123128 -------
124129 list
130+
125131 of subclasses of axelrod.Player
132+
126133 """
127134 return [s for s in strategies if passes_filterset (s , filterset )]
You can’t perform that action at this time.
0 commit comments