{"action":"created","issue":{"url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/43","labels_url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/43/comments","events_url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/43/events","html_url":"https://github.com/Axelrod-Python/DjAxelrod/issues/43","id":90082926,"number":43,"title":"Incorrect Scores","user":{"login":"meatballs","id":338846,"avatar_url":"https://avatars.githubusercontent.com/u/338846?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballs","html_url":"https://github.com/meatballs","followers_url":"https://api.github.com/users/meatballs/followers","following_url":"https://api.github.com/users/meatballs/following{/other_user}","gists_url":"https://api.github.com/users/meatballs/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballs/subscriptions","organizations_url":"https://api.github.com/users/meatballs/orgs","repos_url":"https://api.github.com/users/meatballs/repos","events_url":"https://api.github.com/users/meatballs/events{/privacy}","received_events_url":"https://api.github.com/users/meatballs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T12:17:30Z","updated_at":"2015-06-22T12:32:02Z","closed_at":null,"body":"The scores appear to be allocated to the wrong players:\r\n\r\nCreate a tournament with\r\n* players: Alternator, Cooperator, Defector and TitForTat\r\n* turns: 10\r\n* repetitions: 3\r\n\r\nThe results from djaxelrod are:\r\n```\r\n{\"meta\": \r\n{\"definition\": {\"turns\": 10, \"repetitions\": 3, \"noise\": 0.0},\r\n\"cheating_strategies\": [\"Darwin\", \"Geller\", \"Geller Cooperator\", \"Geller Defector\", \"Mind Bender\", \"Mind Controller\", \"Mind Reader\", \"Mind Warper\", \"Protected Mind Reader\"]},\r\n\"results\": [\r\n{\"player\": \"Defector\", \"scores\": [2.433333333333333, 2.433333333333333, 2.433333333333333]\r\n{\"player\": \"Alternator\", \"scores\": [1.5, 1.5, 1.5]}, \r\n{\"player\": \"Cooperator\", \"scores\": [2.066666666666667, 2.066666666666667, 2.066666666666667]}, \r\n{\"player\": \"Tit For Tat\", \"scores\": [3.1333333333333333, 3.1333333333333333, 3.1333333333333333]}]}\r\n```\r\n\r\nCreate the same tournament within the axelrod library:\r\n```\r\nplayers=[axelrod.Alternator(), axelrod.Cooperator(), axelrod.Defector(), axelrod.TitForTat()]\r\nt=axelrod.Tournament(players=players, turns=10, repetitions=3)\r\nt.play()\r\nt.result_set.normalised_scores\r\n```\r\n\r\nwhich gives the following results:\r\n```\r\n[[2.433333333333333, 2.433333333333333, 2.433333333333333], \r\n[1.5, 1.5, 1.5], \r\n[3.1333333333333333, 3.1333333333333333, 3.1333333333333333],\r\n[2.066666666666667, 2.066666666666667, 2.066666666666667]]\r\n```\r\n\r\n to confirm the order of the results:\r\n```\r\nt.players\r\n```\r\n\r\ngives:\r\n```\r\n[Alternator, Cooperator, Defector, Tit For Tat]\r\n```\r\n\r\nSo, for example, it's Cooperator that scores [1.5, 1.5, 1.5] not Alternator as DjAxelrod shows."},"comment":{"url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/comments/114086231","html_url":"https://github.com/Axelrod-Python/DjAxelrod/issues/43#issuecomment-114086231","issue_url":"https://api.github.com/repos/Axelrod-Python/DjAxelrod/issues/43","id":114086231,"user":{"login":"meatballs","id":338846,"avatar_url":"https://avatars.githubusercontent.com/u/338846?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballs","html_url":"https://github.com/meatballs","followers_url":"https://api.github.com/users/meatballs/followers","following_url":"https://api.github.com/users/meatballs/following{/other_user}","gists_url":"https://api.github.com/users/meatballs/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballs/subscriptions","organizations_url":"https://api.github.com/users/meatballs/orgs","repos_url":"https://api.github.com/users/meatballs/repos","events_url":"https://api.github.com/users/meatballs/events{/privacy}","received_events_url":"https://api.github.com/users/meatballs/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T12:32:02Z","updated_at":"2015-06-22T12:32:02Z","body":"Code from #18 gives:\r\n```\r\n[[u'Defector', [3.1333333333333333, 3.1333333333333333, 3.1333333333333333]], \r\n[u'Alternator', [2.066666666666667, 2.066666666666667, 2.066666666666667]], \r\n[u'Tit For Tat', [2.433333333333333, 2.433333333333333, 2.433333333333333]], \r\n[u'Cooperator', [1.5, 1.5, 1.5]]]\r\n```\r\n\r\nAlternator and TitForTat have their scores swapped"}}