-
Notifications
You must be signed in to change notification settings - Fork 273
Implemented strategy Cave (k49r from Axelrod's Second) #1141
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
Conversation
Fixed one of my tests for the calculation issue I fixed in last commit. |
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.
This looks great (these PRs are awesome), just the one adjustment to the seeds in the test and could you also add the strategy to the second tournament docs?
(D, D), (C, D), (C, D), (D, D), (C, D), (D, D), (C, D), | ||
(C, D), (D, D), (C, D)] # Randomly choose | ||
actions += [(D, D)] * 30 # Defect | ||
self.versus_test(axelrod.Defector(), expected_actions=actions) |
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 put the seed argument in to self.versus_test
please:
self.versus_test(axelrod.Defector(), expected_actions=actions, seed=1)
Same below.
I have gone through the logic and agree this strategy is correctly implemented (as well as the great match of the fps). |
This is looking good to me. Thanks again @gaffney2010! |
Fingerprints below: