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

Fix RevisedDowning #1323

Merged
merged 1 commit into from
Apr 10, 2020
Merged

Conversation

gaffney2010
Copy link
Member

Fixes #1279

It looks like when the fortran was translated to python, PAST was changed to self.history[-1]. Because of where it's set in the fortran, it should actually be self.history[-2].

https://github.com/Axelrod-Python/TourExec/blob/master/src/strategies/K59R.f#L35
https://github.com/Axelrod-Python/Axelrod/blob/master/axelrod/strategies/revised_downing.py#L55

This was tested with axelrod_fortran.

@drvinceknight
Copy link
Member

Nice! Thanks 👍

@drvinceknight drvinceknight merged commit 5309b4c into Axelrod-Python:master Apr 10, 2020
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.

Revise RevisedDowning to match k59r
3 participants