{"action":"closed","issue":{"url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/688","repository_url":"https://api.github.com/repos/Axelrod-Python/Axelrod","labels_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/688/comments","events_url":"https://api.github.com/repos/Axelrod-Python/Axelrod/issues/688/events","html_url":"https://github.com/Axelrod-Python/Axelrod/issues/688","id":170461800,"number":688,"title":"Unique ID for Player","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/Axelrod/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":19,"created_at":"2016-08-10T16:34:34Z","updated_at":"2016-09-12T10:36:40Z","closed_at":"2016-09-12T10:36:40Z","body":"The axelrod-api project currently generates a unique id for each Player class and a dictionary with the id as its key. These could both be done within the library itself and used more widely than just the api.\r\n\r\nThe unique id is currently produced using a function which strips the whitespace from the player name and converts it to lower case. This could be done with a property in the Player class.\r\n\r\nThe dictionary mapping id to class is done using a comprehension based on the existing strategies lists and could be added to ```strategies.__init__.py```\r\n\r\nThe unique id function is currently ```strategy_id``` within https://github.com/Axelrod-Python/axelrod-api/blob/master/api/core/serializers.py\r\n\r\nThe dictionary is a class variable within https://github.com/Axelrod-Python/axelrod-api/blob/master/api/core/views.py"}}
{"actor":{"display_login":"drvinceknight"}}