-
Notifications
You must be signed in to change notification settings - Fork 269
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
Conversation
|
||
def test_strategy(self): | ||
# Starts by Cooperating | ||
self.first_play_test(C) |
There was a problem hiding this comment.
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 :)
There was a problem hiding this 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, |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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.
@souravsingh I've pushed those extra tests and fixed the memory length 👍 |
What happened here? Looks like we need a rebase? |
Done. |
The PR adds DoubleResurrection strategy to Axelrod.
I have added a WIP tag to check if the tests pass properly.