{"action":"created","comment":{"url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments/35416104","id":35416104,"diff_hunk":"@@ -432,6 +432,36 @@ Axelrod's second tournament\n \n Work in progress.\n \n+TESTER\n+^^^^^^\n+\n+This strategy is a TFT variant that attempts to exploit certain strategies. It\n+defects on the first move. If the opponent ever defects, TESTER 'apologies' by\n+cooperating and then plays TFT for the rest of the game. Otherwise TESTER\n+alternates cooperation and defection.\n+\n+*This strategy came 46th in Axelrod's second tournament.*\n+\n+Implementation\n+**************\n+\n+Here is how this is implemented in the library::\n+\n+   import axelrod\n+   p1 = axelrod.Tester()  # Create a Tester player\n+   p2 = axelrod.Random()  # Create a player that plays randomly\n+   for round in range(5):\n+       p1.play(p2)\n+\n+   print p1.history\n+   print p2.history\n+\n+which gives::","path":"docs/overview_of_strategies.rst","position":28,"original_position":28,"commit_id":"a796b5217bc45be211030b5a73ef33bcb862df8f","original_commit_id":"a796b5217bc45be211030b5a73ef33bcb862df8f","user":{"login":"drvinceknight","id":2131546,"avatar_url":"https://avatars.githubusercontent.com/u/2131546?v=3","gravatar_id":"","url":"https://api.github.com/users/drvinceknight","html_url":"https://github.com/drvinceknight","followers_url":"https://api.github.com/users/drvinceknight/followers","following_url":"https://api.github.com/users/drvinceknight/following{/other_user}","gists_url":"https://api.github.com/users/drvinceknight/gists{/gist_id}","starred_url":"https://api.github.com/users/drvinceknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drvinceknight/subscriptions","organizations_url":"https://api.github.com/users/drvinceknight/orgs","repos_url":"https://api.github.com/users/drvinceknight/repos","events_url":"https://api.github.com/users/drvinceknight/events{/privacy}","received_events_url":"https://api.github.com/users/drvinceknight/received_events","type":"User","site_admin":false},"body":"Can you throw in a comment that this is just for the given seed (see other similar strategies).","created_at":"2015-07-24T12:03:04Z","updated_at":"2015-07-24T12:03:04Z","html_url":"https://github.com/Axelrod-Python/Axelrod/pull/235#discussion_r35416104","pull_request_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235","_links":{"self":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments/35416104"},"html":{"href":"https://github.com/Axelrod-Python/Axelrod/pull/235#discussion_r35416104"},"pull_request":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235"}}},"pull_request":{"url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235","id":40734554,"html_url":"https://github.com/Axelrod-Python/Axelrod/pull/235","diff_url":"https://github.com/Axelrod-Python/Axelrod/pull/235.diff","patch_url":"https://github.com/Axelrod-Python/Axelrod/pull/235.patch","issue_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/235","number":235,"state":"open","locked":false,"title":"New strategies Tester and SoftJoss, and Unit Tests update","user":{"login":"marcharper","id":203345,"avatar_url":"https://avatars.githubusercontent.com/u/203345?v=3","gravatar_id":"","url":"https://api.github.com/users/marcharper","html_url":"https://github.com/marcharper","followers_url":"https://api.github.com/users/marcharper/followers","following_url":"https://api.github.com/users/marcharper/following{/other_user}","gists_url":"https://api.github.com/users/marcharper/gists{/gist_id}","starred_url":"https://api.github.com/users/marcharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcharper/subscriptions","organizations_url":"https://api.github.com/users/marcharper/orgs","repos_url":"https://api.github.com/users/marcharper/repos","events_url":"https://api.github.com/users/marcharper/events{/privacy}","received_events_url":"https://api.github.com/users/marcharper/received_events","type":"User","site_admin":false},"body":"In writing unit tests for Tester (one of the strategies from Axelrod and @tscizzle's tournament), I had to modify test_responses in test_player.py to actually submit the plays in sequence (rather than simply overwriting the history), because the strategy needed to set internal state for the tests. Because of this change, I had to correct ~10 tests for other strategies.\r\n\r\nPlease take a look!\r\n\r\n","created_at":"2015-07-24T01:11:18Z","updated_at":"2015-07-24T12:03:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0261380b75700c550d2a2abbc288f0d1c274316","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235/commits","review_comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235/comments","review_comment_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/235/comments","statuses_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/a796b5217bc45be211030b5a73ef33bcb862df8f","head":{"label":"marcharper:new_strategies","ref":"new_strategies","sha":"a796b5217bc45be211030b5a73ef33bcb862df8f","user":{"login":"marcharper","id":203345,"avatar_url":"https://avatars.githubusercontent.com/u/203345?v=3","gravatar_id":"","url":"https://api.github.com/users/marcharper","html_url":"https://github.com/marcharper","followers_url":"https://api.github.com/users/marcharper/followers","following_url":"https://api.github.com/users/marcharper/following{/other_user}","gists_url":"https://api.github.com/users/marcharper/gists{/gist_id}","starred_url":"https://api.github.com/users/marcharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcharper/subscriptions","organizations_url":"https://api.github.com/users/marcharper/orgs","repos_url":"https://api.github.com/users/marcharper/repos","events_url":"https://api.github.com/users/marcharper/events{/privacy}","received_events_url":"https://api.github.com/users/marcharper/received_events","type":"User","site_admin":false},"repo":{"id":31346719,"name":"Axelrod","full_name":"marcharper/Axelrod","owner":{"login":"marcharper","id":203345,"avatar_url":"https://avatars.githubusercontent.com/u/203345?v=3","gravatar_id":"","url":"https://api.github.com/users/marcharper","html_url":"https://github.com/marcharper","followers_url":"https://api.github.com/users/marcharper/followers","following_url":"https://api.github.com/users/marcharper/following{/other_user}","gists_url":"https://api.github.com/users/marcharper/gists{/gist_id}","starred_url":"https://api.github.com/users/marcharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcharper/subscriptions","organizations_url":"https://api.github.com/users/marcharper/orgs","repos_url":"https://api.github.com/users/marcharper/repos","events_url":"https://api.github.com/users/marcharper/events{/privacy}","received_events_url":"https://api.github.com/users/marcharper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcharper/Axelrod","description":"A repository used to reproduce Axelrod's tournament","fork":true,"url":"https://api.github.com/repos/marcharper/Axelrod","forks_url":"https://api.github.com/repos/marcharper/Axelrod/forks","keys_url":"https://api.github.com/repos/marcharper/Axelrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcharper/Axelrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcharper/Axelrod/teams","hooks_url":"https://api.github.com/repos/marcharper/Axelrod/hooks","issue_events_url":"https://api.github.com/repos/marcharper/Axelrod/issues/events{/number}","events_url":"https://api.github.com/repos/marcharper/Axelrod/events","assignees_url":"https://api.github.com/repos/marcharper/Axelrod/assignees{/user}","branches_url":"https://api.github.com/repos/marcharper/Axelrod/branches{/branch}","tags_url":"https://api.github.com/repos/marcharper/Axelrod/tags","blobs_url":"https://api.github.com/repos/marcharper/Axelrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcharper/Axelrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcharper/Axelrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcharper/Axelrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcharper/Axelrod/statuses/{sha}","languages_url":"https://api.github.com/repos/marcharper/Axelrod/languages","stargazers_url":"https://api.github.com/repos/marcharper/Axelrod/stargazers","contributors_url":"https://api.github.com/repos/marcharper/Axelrod/contributors","subscribers_url":"https://api.github.com/repos/marcharper/Axelrod/subscribers","subscription_url":"https://api.github.com/repos/marcharper/Axelrod/subscription","commits_url":"https://api.github.com/repos/marcharper/Axelrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcharper/Axelrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcharper/Axelrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcharper/Axelrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcharper/Axelrod/contents/{+path}","compare_url":"https://api.github.com/repos/marcharper/Axelrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcharper/Axelrod/merges","archive_url":"https://api.github.com/repos/marcharper/Axelrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcharper/Axelrod/downloads","issues_url":"https://api.github.com/repos/marcharper/Axelrod/issues{/number}","pulls_url":"https://api.github.com/repos/marcharper/Axelrod/pulls{/number}","milestones_url":"https://api.github.com/repos/marcharper/Axelrod/milestones{/number}","notifications_url":"https://api.github.com/repos/marcharper/Axelrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcharper/Axelrod/labels{/name}","releases_url":"https://api.github.com/repos/marcharper/Axelrod/releases{/id}","created_at":"2015-02-26T02:24:00Z","updated_at":"2015-07-20T18:26:22Z","pushed_at":"2015-07-24T01:19:08Z","git_url":"git://github.com/marcharper/Axelrod.git","ssh_url":"git@github.com:marcharper/Axelrod.git","clone_url":"https://github.com/marcharper/Axelrod.git","svn_url":"https://github.com/marcharper/Axelrod","homepage":null,"size":33210,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Axelrod-Python:master","ref":"master","sha":"8351a33b91c0a17db15b5b314f26d84928839f5b","user":{"login":"Axelrod-Python","id":11720937,"avatar_url":"https://avatars.githubusercontent.com/u/11720937?v=3","gravatar_id":"","url":"https://api.github.com/users/Axelrod-Python","html_url":"https://github.com/Axelrod-Python","followers_url":"https://api.github.com/users/Axelrod-Python/followers","following_url":"https://api.github.com/users/Axelrod-Python/following{/other_user}","gists_url":"https://api.github.com/users/Axelrod-Python/gists{/gist_id}","starred_url":"https://api.github.com/users/Axelrod-Python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axelrod-Python/subscriptions","organizations_url":"https://api.github.com/users/Axelrod-Python/orgs","repos_url":"https://api.github.com/users/Axelrod-Python/repos","events_url":"https://api.github.com/users/Axelrod-Python/events{/privacy}","received_events_url":"https://api.github.com/users/Axelrod-Python/received_events","type":"Organization","site_admin":false},"repo":{"id":30959449,"name":"Axelrod","full_name":"Axelrod-Python/Axelrod","owner":{"login":"Axelrod-Python","id":11720937,"avatar_url":"https://avatars.githubusercontent.com/u/11720937?v=3","gravatar_id":"","url":"https://api.github.com/users/Axelrod-Python","html_url":"https://github.com/Axelrod-Python","followers_url":"https://api.github.com/users/Axelrod-Python/followers","following_url":"https://api.github.com/users/Axelrod-Python/following{/other_user}","gists_url":"https://api.github.com/users/Axelrod-Python/gists{/gist_id}","starred_url":"https://api.github.com/users/Axelrod-Python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axelrod-Python/subscriptions","organizations_url":"https://api.github.com/users/Axelrod-Python/orgs","repos_url":"https://api.github.com/users/Axelrod-Python/repos","events_url":"https://api.github.com/users/Axelrod-Python/events{/privacy}","received_events_url":"https://api.github.com/users/Axelrod-Python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Axelrod-Python/Axelrod","description":"A repository used to reproduce Axelrod's tournament","fork":false,"url":"https://api.github.com/repos/Axelrod-Python/Axelrod","forks_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/forks","keys_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/teams","hooks_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/hooks","issue_events_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/events{/number}","events_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/events","assignees_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/assignees{/user}","branches_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/branches{/branch}","tags_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/tags","blobs_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/refs{/sha}","trees_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/{sha}","languages_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/languages","stargazers_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/stargazers","contributors_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/contributors","subscribers_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/subscribers","subscription_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/subscription","commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/commits{/sha}","git_commits_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/git/commits{/sha}","comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/comments{/number}","issue_comment_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/comments{/number}","contents_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/contents/{+path}","compare_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/merges","archive_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/downloads","issues_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues{/number}","pulls_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls{/number}","milestones_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/milestones{/number}","notifications_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/labels{/name}","releases_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/releases{/id}","created_at":"2015-02-18T09:37:17Z","updated_at":"2015-07-22T19:06:24Z","pushed_at":"2015-07-24T09:35:58Z","git_url":"git://github.com/Axelrod-Python/Axelrod.git","ssh_url":"git@github.com:Axelrod-Python/Axelrod.git","clone_url":"https://github.com/Axelrod-Python/Axelrod.git","svn_url":"https://github.com/Axelrod-Python/Axelrod","homepage":"http://axelrod.readthedocs.org/","size":35694,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":18,"forks":19,"open_issues":18,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235"},"html":{"href":"https://github.com/Axelrod-Python/Axelrod/pull/235"},"issue":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/235"},"comments":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/235/comments"},"review_comments":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235/comments"},"review_comment":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/pulls/235/commits"},"statuses":{"href":"https://api.github.com/repos/Axelrod-Python/Axelrod/statuses/a796b5217bc45be211030b5a73ef33bcb862df8f"}}}}