Skip to content

Conversation

@drvinceknight
Copy link
Member

Contributes towards #884

Contributes towards #884
self.assertEqual(P1.grudged, False)
self.assertEqual(P1.grudge_memory, 1)
player = axelrod.Punisher()
self.assertEqual(player.history, [])
Copy link
Member

Choose a reason for hiding this comment

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

This line is probably not necessary, or is better as a generic player test in test_player.py.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah good call. I'll clean this up now 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Just checked and it already is a generic player test :)

self.assertEqual(P1.grudged, False)
self.assertEqual(P1.grudge_memory, 1)
player = axelrod.InversePunisher()
self.assertEqual(player.history, [])
Copy link
Member

Choose a reason for hiding this comment

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

Same comment

@meatballs meatballs merged commit 7a65c17 into master May 25, 2017
@meatballs meatballs deleted the 884-punisher branch May 25, 2017 11:55
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.

4 participants