@@ -92,8 +92,7 @@ def create_edges(points):
92
92
edges : list of tuples
93
93
A list containing tuples of length 2. All tuples will have 0 as the
94
94
first element. The second element is the index of the
95
- corresponding probe (+1 to allow for including the Strategy and its
96
- Dual).
95
+ corresponding probe (+1 to allow for including the Strategy).
97
96
"""
98
97
edges = [(0 , index + 1 ) for index , point in enumerate (points )]
99
98
return edges
@@ -134,12 +133,11 @@ def construct_tournament_elements(self, step):
134
133
edges : list of tuples
135
134
A list containing tuples of length 2. All tuples will have either 0
136
135
or 1 as the first element. The second element is the index of the
137
- corresponding probe (+2 to allow for including the Strategy and its
138
- Dual).
136
+ corresponding probe (+1 to allow for including the Strategy).
139
137
140
138
tournament_players : list
141
139
A list containing instances of axelrod.Player. The first item is the
142
- original player, the second is the dual, the rest are the probes.
140
+ original player, the rest are the probes.
143
141
144
142
"""
145
143
probe_points = create_points (step )
@@ -168,8 +166,7 @@ def generate_data(interactions, points, edges):
168
166
edges : list of tuples
169
167
A list containing tuples of length 2. All tuples will have either 0
170
168
or 1 as the first element. The second element is the index of the
171
- corresponding probe (+2 to allow for including the Strategy and its
172
- Dual).
169
+ corresponding probe (+1 to allow for including the Strategy).
173
170
174
171
Returns
175
172
----------
@@ -186,10 +183,11 @@ def fingerprint(self, turns=50, repetitions=10, step=0.01, processes=None,
186
183
filename = None , in_memory = False , progress_bar = True ):
187
184
"""Build and play the spatial tournament.
188
185
189
- Creates the probes and their edges then builds a spatial tournament
190
- where the original strategy only plays probes whose coordinates sum to
191
- less than 1 (or equal). Probes whose coordinates sum to more than 1 play
192
- the Dual Strategy.
186
+ Creates the probes and their edges then builds a spatial tournament.
187
+ When the coordinates of the probe sum to more than 1, the dual of the
188
+ probe is taken instead and then the Joss-Ann Transformer is applied. If
189
+ the coordinates sum to less than 1 (or equal), then only the Joss-Ann is
190
+ applied, a dual is not required.
193
191
194
192
Parameters
195
193
----------
0 commit comments