Skip to content

Fix docstrings to remove any mention of Dual of Strategy #784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions axelrod/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def create_edges(points):
edges : list of tuples
A list containing tuples of length 2. All tuples will have 0 as the
first element. The second element is the index of the
corresponding probe (+1 to allow for including the Strategy and its
Dual).
corresponding probe (+1 to allow for including the Strategy).
"""
edges = [(0, index + 1) for index, point in enumerate(points)]
return edges
Expand Down Expand Up @@ -134,12 +133,11 @@ def construct_tournament_elements(self, step):
edges : list of tuples
A list containing tuples of length 2. All tuples will have either 0
or 1 as the first element. The second element is the index of the
corresponding probe (+2 to allow for including the Strategy and its
Dual).
corresponding probe (+1 to allow for including the Strategy).

tournament_players : list
A list containing instances of axelrod.Player. The first item is the
original player, the second is the dual, the rest are the probes.
original player, the rest are the probes.

"""
probe_points = create_points(step)
Expand Down Expand Up @@ -168,8 +166,7 @@ def generate_data(interactions, points, edges):
edges : list of tuples
A list containing tuples of length 2. All tuples will have either 0
or 1 as the first element. The second element is the index of the
corresponding probe (+2 to allow for including the Strategy and its
Dual).
corresponding probe (+1 to allow for including the Strategy).

Returns
----------
Expand All @@ -186,10 +183,11 @@ def fingerprint(self, turns=50, repetitions=10, step=0.01, processes=None,
filename=None, in_memory=False, progress_bar=True):
"""Build and play the spatial tournament.

Creates the probes and their edges then builds a spatial tournament
where the original strategy only plays probes whose coordinates sum to
less than 1 (or equal). Probes whose coordinates sum to more than 1 play
the Dual Strategy.
Creates the probes and their edges then builds a spatial tournament.
When the coordinates of the probe sum to more than 1, the dual of the
probe is taken instead and then the Joss-Ann Transformer is applied. If
the coordinates sum to less than 1 (or equal), then only the Joss-Ann is
applied, a dual is not required.

Parameters
----------
Expand Down