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

[WIP] Add DoubleResurrection strategy #965

Merged
merged 5 commits into from
Apr 17, 2017
Merged

[WIP] Add DoubleResurrection strategy #965

merged 5 commits into from
Apr 17, 2017

Conversation

souravsingh
Copy link
Contributor

The PR adds DoubleResurrection strategy to Axelrod.
I have added a WIP tag to check if the tests pass properly.


def test_strategy(self):
# Starts by Cooperating
self.first_play_test(C)
Copy link
Member

Choose a reason for hiding this comment

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

Would you be able to re write these tests using the new framework?

I know you started writing this before the change but we'd appreciate it :)

http://axelrod.readthedocs.io/en/latest/tutorials/contributing/strategy/writing_test_for_the_new_strategy.html

Copy link
Member

@marcharper marcharper left a comment

Choose a reason for hiding this comment

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

Looking good, just one classifier update and a few more tests needed.

name = "DoubleResurrection"
player = axelrod.DoubleResurrection
expected_classifier = {
'memory_depth': 1,
Copy link
Member

Choose a reason for hiding this comment

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

memory_depth should be 5

# Starts by Cooperating
self.first_play_test(C)

actions = [(C, C), (C, D), (D, C), (C, D), (D, C)]
Copy link
Member

Choose a reason for hiding this comment

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

Can we make sure we have tests that check both 5 round depth behaviors? I think the tests will need to be at least 6 rounds of history to make sure they are triggered.

@drvinceknight
Copy link
Member

@souravsingh I've pushed those extra tests and fixed the memory length 👍

@marcharper
Copy link
Member

What happened here? Looks like we need a rebase?

@drvinceknight
Copy link
Member

Looks like we need a rebase?

Done.

@marcharper marcharper merged commit 292a70e into Axelrod-Python:master Apr 17, 2017
@souravsingh souravsingh deleted the add-strategy branch April 17, 2017 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants