{"action":"created","issue":{"url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/43","repository_url":"https://api.github.com/repos/ishikota/PyPokerEngine","labels_url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/43/comments","events_url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/43/events","html_url":"https://github.com/ishikota/PyPokerEngine/pull/43","id":191927158,"number":43,"title":"Add utility method on emulator","user":{"login":"ishikota","id":8199616,"avatar_url":"https://avatars.githubusercontent.com/u/8199616?v=3","gravatar_id":"","url":"https://api.github.com/users/ishikota","html_url":"https://github.com/ishikota","followers_url":"https://api.github.com/users/ishikota/followers","following_url":"https://api.github.com/users/ishikota/following{/other_user}","gists_url":"https://api.github.com/users/ishikota/gists{/gist_id}","starred_url":"https://api.github.com/users/ishikota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishikota/subscriptions","organizations_url":"https://api.github.com/users/ishikota/orgs","repos_url":"https://api.github.com/users/ishikota/repos","events_url":"https://api.github.com/users/ishikota/events{/privacy}","received_events_url":"https://api.github.com/users/ishikota/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-28T06:15:02Z","updated_at":"2016-11-28T06:21:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ishikota/PyPokerEngine/pulls/43","html_url":"https://github.com/ishikota/PyPokerEngine/pull/43","diff_url":"https://github.com/ishikota/PyPokerEngine/pull/43.diff","patch_url":"https://github.com/ishikota/PyPokerEngine/pull/43.patch"},"body":"Update `Emulator` class to support manipulating game state from initial state like below\r\nand release as 0.1.1\r\n```\r\nfrom pypokerengine.api.emulator import Emulator\r\nfrom examples.players.fold_man import FoldMan\r\ne = Emulator()\r\ne.set_game_rule(3, 10, 5, 0,)\r\np1, p2, p3 = FoldMan(), FoldMan(), FoldMan()\r\ne.register_player(\"uuid1\", p1)\r\ne.register_player(\"uuid2\", p2)\r\ne.register_player(\"uuid3\", p3)\r\nplayers_info = { \r\n    \"a\": { \"name\": \"hoge\", \"stack\": 100 },\r\n     \"b\": { \"name\": \"fuga\", \"stack\": 100},\r\n     \"c\": { \"name\": \"boo\", \"stack\": 100 } \r\n}\r\nstate = e.generate_initial_game_state(players_info)    # <= new method\r\nstate, events = e.start_new_round(state)\r\ne.generate_possible_actions(state)  # <= new method\r\n# returns => [{'action': 'fold', 'amount': 0}, {'action': 'call', 'amount': 10}, {'action': 'raise', 'amount': {'max': 90, 'min': 15}}]\r\nstate, events = e.apply_action(\"call\", 10)\r\nstate, events = e.run_until_round_finish(state)\r\n```"},"comment":{"url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/comments/263192203","html_url":"https://github.com/ishikota/PyPokerEngine/pull/43#issuecomment-263192203","issue_url":"https://api.github.com/repos/ishikota/PyPokerEngine/issues/43","id":263192203,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T06:21:47Z","updated_at":"2016-11-28T06:21:47Z","body":"\n[![Coverage Status](https://coveralls.io/builds/9018045/badge)](https://coveralls.io/builds/9018045)\n\nCoverage increased (+0.02%) to 97.838% when pulling **5c12f5ccf2896e64356c4d656db58a697fff1ff1 on tweak-emulator** into **8c63b986e82ef4e1d3510ff83a40af25d749c6de on master**.\n"}}
{"actor":{"display_login":"coveralls"}}