Skip to content
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

Implement doubler strategy from PRISON project #747

Merged
merged 4 commits into from
Oct 23, 2016

Conversation

mturzanska
Copy link

Related to #379

margaret added 3 commits October 22, 2016 14:42
Add Doubler class.
Add the strategy to strategies pool.
Tweak docstrings.
Copy link
Member

@drvinceknight drvinceknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, just the very one minor comment about the wording of the docstring.

class Doubler(Player):
"""
Cooperates except when the opponent defected and
opponent's cooperations are less than twice as often
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be changed to:

and opponent's cooperation count is less than twice their defections.

@meatballs what do you think? Your judgement is way better than mine with these things.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

Cooperates except when the opponent has defected and
the opponent's cooperation count is less twice their defection count.

Rephrase docstrings.
@drvinceknight
Copy link
Member

Thanks @mturzanska 👍

@meatballs meatballs merged commit 63da756 into Axelrod-Python:master Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants