payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/115","repository_url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction","labels_url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/115/comments","events_url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/115/events","html_url":"https://github.com/ShangtongZhang/reinforcement-learning-an-introduction/pull/115","id":465880660,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk1ODM1MjI2","number":115,"title":"Fix usable_ace_player bug, fix indention error, set POLICY_PLAYER dty…","user":{"login":"goal","id":655309,"node_id":"MDQ6VXNlcjY1NTMwOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/655309?v=4","gravatar_id":"","url":"https://api.github.com/users/goal","html_url":"https://github.com/goal","followers_url":"https://api.github.com/users/goal/followers","following_url":"https://api.github.com/users/goal/following{/other_user}","gists_url":"https://api.github.com/users/goal/gists{/gist_id}","starred_url":"https://api.github.com/users/goal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goal/subscriptions","organizations_url":"https://api.github.com/users/goal/orgs","repos_url":"https://api.github.com/users/goal/repos","events_url":"https://api.github.com/users/goal/events{/privacy}","received_events_url":"https://api.github.com/users/goal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-09T16:37:37Z","updated_at":"2019-07-12T07:22:48Z","closed_at":"2019-07-12T07:22:38Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/pulls/115","html_url":"https://github.com/ShangtongZhang/reinforcement-learning-an-introduction/pull/115","diff_url":"https://github.com/ShangtongZhang/reinforcement-learning-an-introduction/pull/115.diff","patch_url":"https://github.com/ShangtongZhang/reinforcement-learning-an-introduction/pull/115.patch"},"body":"``` python\r\n        # initialize cards of player\r\n        cards = []\r\n        while player_sum < 12:\r\n            # if sum of player is less than 12, always hit\r\n            card = get_card()\r\n            cards.append(card)\r\n            player_sum += card_value(card)\r\n        usable_ace_player = (1 in cards)\r\n\r\n        # Always use an ace as 11, unless there are two.\r\n        # If the player's sum is larger than 21, he must hold two aces.\r\n        if player_sum > 21:\r\n            assert player_sum == 22\r\n            # use one Ace as 1 rather than 11\r\n            player_sum -= 10\r\n```\r\n\r\nAfter initializing, cards of player may be [2, 9, 1], thus player_sum is 12, and the last ace is valued as 1, while usable_ace_player is True, which should be False.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/comments/510778590","html_url":"https://github.com/ShangtongZhang/reinforcement-learning-an-introduction/pull/115#issuecomment-510778590","issue_url":"https://api.github.com/repos/ShangtongZhang/reinforcement-learning-an-introduction/issues/115","id":510778590,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMDc3ODU5MA==","user":{"login":"ShangtongZhang","id":6715118,"node_id":"MDQ6VXNlcjY3MTUxMTg=","avatar_url":"https://avatars2.githubusercontent.com/u/6715118?v=4","gravatar_id":"","url":"https://api.github.com/users/ShangtongZhang","html_url":"https://github.com/ShangtongZhang","followers_url":"https://api.github.com/users/ShangtongZhang/followers","following_url":"https://api.github.com/users/ShangtongZhang/following{/other_user}","gists_url":"https://api.github.com/users/ShangtongZhang/gists{/gist_id}","starred_url":"https://api.github.com/users/ShangtongZhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShangtongZhang/subscriptions","organizations_url":"https://api.github.com/users/ShangtongZhang/orgs","repos_url":"https://api.github.com/users/ShangtongZhang/repos","events_url":"https://api.github.com/users/ShangtongZhang/events{/privacy}","received_events_url":"https://api.github.com/users/ShangtongZhang/received_events","type":"User","site_admin":false},"created_at":"2019-07-12T07:22:48Z","updated_at":"2019-07-12T07:22:48Z","author_association":"OWNER","body":"Thanks for your contribution!"}}
other: {"actor":{"display_login":"ShangtongZhang"}}