{"action":"closed","issue":{"url":"https://api.github.com/repos/duarte-pompeu/snake/issues/6","labels_url":"https://api.github.com/repos/duarte-pompeu/snake/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/duarte-pompeu/snake/issues/6/comments","events_url":"https://api.github.com/repos/duarte-pompeu/snake/issues/6/events","html_url":"https://github.com/duarte-pompeu/snake/issues/6","id":95013760,"number":6,"title":"Use deques instead of lists for turns and food","user":{"login":"duarte-pompeu","id":7232812,"avatar_url":"https://avatars.githubusercontent.com/u/7232812?v=3","gravatar_id":"","url":"https://api.github.com/users/duarte-pompeu","html_url":"https://github.com/duarte-pompeu","followers_url":"https://api.github.com/users/duarte-pompeu/followers","following_url":"https://api.github.com/users/duarte-pompeu/following{/other_user}","gists_url":"https://api.github.com/users/duarte-pompeu/gists{/gist_id}","starred_url":"https://api.github.com/users/duarte-pompeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duarte-pompeu/subscriptions","organizations_url":"https://api.github.com/users/duarte-pompeu/orgs","repos_url":"https://api.github.com/users/duarte-pompeu/repos","events_url":"https://api.github.com/users/duarte-pompeu/events{/privacy}","received_events_url":"https://api.github.com/users/duarte-pompeu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/duarte-pompeu/snake/milestones/1","html_url":"https://github.com/duarte-pompeu/snake/milestones/Demo%20release","labels_url":"https://api.github.com/repos/duarte-pompeu/snake/milestones/1/labels","id":1208262,"number":1,"title":"Demo release","description":"","creator":{"login":"duarte-pompeu","id":7232812,"avatar_url":"https://avatars.githubusercontent.com/u/7232812?v=3","gravatar_id":"","url":"https://api.github.com/users/duarte-pompeu","html_url":"https://github.com/duarte-pompeu","followers_url":"https://api.github.com/users/duarte-pompeu/followers","following_url":"https://api.github.com/users/duarte-pompeu/following{/other_user}","gists_url":"https://api.github.com/users/duarte-pompeu/gists{/gist_id}","starred_url":"https://api.github.com/users/duarte-pompeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duarte-pompeu/subscriptions","organizations_url":"https://api.github.com/users/duarte-pompeu/orgs","repos_url":"https://api.github.com/users/duarte-pompeu/repos","events_url":"https://api.github.com/users/duarte-pompeu/events{/privacy}","received_events_url":"https://api.github.com/users/duarte-pompeu/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":6,"state":"open","created_at":"2015-07-14T23:01:28Z","updated_at":"2015-07-14T23:23:07Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-07-14T18:57:33Z","updated_at":"2015-07-14T23:23:07Z","closed_at":"2015-07-14T23:23:07Z","body":"From https://docs.python.org/2/tutorial/datastructures.html#using-lists-as-queues\r\n\r\nTo implement a queue, use collections.deque which was designed to have fast appends and pops from both ends."}}