{"action":"opened","issue":{"url":"https://api.github.com/repos/bbitmaster/ale_python_interface/issues/5","repository_url":"https://api.github.com/repos/bbitmaster/ale_python_interface","labels_url":"https://api.github.com/repos/bbitmaster/ale_python_interface/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/bbitmaster/ale_python_interface/issues/5/comments","events_url":"https://api.github.com/repos/bbitmaster/ale_python_interface/issues/5/events","html_url":"https://github.com/bbitmaster/ale_python_interface/issues/5","id":153362657,"number":5,"title":"Sending the same action causes ALE to hang","user":{"login":"el3ment","id":2135235,"avatar_url":"https://avatars.githubusercontent.com/u/2135235?v=3","gravatar_id":"","url":"https://api.github.com/users/el3ment","html_url":"https://github.com/el3ment","followers_url":"https://api.github.com/users/el3ment/followers","following_url":"https://api.github.com/users/el3ment/following{/other_user}","gists_url":"https://api.github.com/users/el3ment/gists{/gist_id}","starred_url":"https://api.github.com/users/el3ment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/el3ment/subscriptions","organizations_url":"https://api.github.com/users/el3ment/orgs","repos_url":"https://api.github.com/users/el3ment/repos","events_url":"https://api.github.com/users/el3ment/events{/privacy}","received_events_url":"https://api.github.com/users/el3ment/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T01:49:38Z","updated_at":"2016-05-06T01:49:38Z","closed_at":null,"body":"Although in this example below, I am sending action 0 -- it's true for any action\r\n\r\n```\r\nimport sys\r\nfrom ale_python_interface import ALEInterface\r\nimport numpy as np\r\n\r\nale = ALEInterface()\r\n\r\nale.loadROM(\"Breakout.bin\")\r\nlegal_actions = ale.getLegalActionSet()\r\n\r\nfor episode in range(10):\r\n    total_reward = 0.0 \r\n    while not ale.game_over():\r\n        print \"acting\"\r\n        reward = ale.act(0);\r\n        total_reward += reward\r\n    print(\"Episode \" + str(episode) + \" ended with score: \" + str(total_reward))\r\n    ale.reset_game()\r\n```"}}