{"action":"created","issue":{"url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/276","repository_url":"https://api.github.com/repos/QuantEcon/QuantEcon.py","labels_url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/276/comments","events_url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/276/events","html_url":"https://github.com/QuantEcon/QuantEcon.py/pull/276","id":191681982,"number":276,"title":"Add brute force method for finding pure nash equilibria.","user":{"login":"shizejin","id":22466278,"avatar_url":"https://avatars.githubusercontent.com/u/22466278?v=3","gravatar_id":"","url":"https://api.github.com/users/shizejin","html_url":"https://github.com/shizejin","followers_url":"https://api.github.com/users/shizejin/followers","following_url":"https://api.github.com/users/shizejin/following{/other_user}","gists_url":"https://api.github.com/users/shizejin/gists{/gist_id}","starred_url":"https://api.github.com/users/shizejin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shizejin/subscriptions","organizations_url":"https://api.github.com/users/shizejin/orgs","repos_url":"https://api.github.com/users/shizejin/repos","events_url":"https://api.github.com/users/shizejin/events{/privacy}","received_events_url":"https://api.github.com/users/shizejin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-25T11:29:08Z","updated_at":"2016-11-25T23:57:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/pulls/276","html_url":"https://github.com/QuantEcon/QuantEcon.py/pull/276","diff_url":"https://github.com/QuantEcon/QuantEcon.py/pull/276.diff","patch_url":"https://github.com/QuantEcon/QuantEcon.py/pull/276.patch"},"body":"Based on #266.\r\n\r\nAdd a function `pure_nash_brute` to find all pure nash equilibria of a normal form game using brute force method. \r\n\r\nFor example, consider the Prisoners' Dilemma game. \r\n```\r\n>>> PD_bimatrix = [[(1, 1), (-2, 3)],\r\n...                [(3, -2), (0, 0)]]\r\n>>> g_PD = NormalFormGame(PD_bimatrix)\r\n>>> pure_nash_brute(g_PD)\r\n[(1, 1)]\r\n```\r\n\r\nMainly referred to [Tools for Game Theory](http://nbviewer.jupyter.org/github/QuantEcon/QuantEcon.notebooks/blob/master/game_theory_py.ipynb). @oyamad "},"comment":{"url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/comments/263033649","html_url":"https://github.com/QuantEcon/QuantEcon.py/pull/276#issuecomment-263033649","issue_url":"https://api.github.com/repos/QuantEcon/QuantEcon.py/issues/276","id":263033649,"user":{"login":"mmcky","id":8263752,"avatar_url":"https://avatars.githubusercontent.com/u/8263752?v=3","gravatar_id":"","url":"https://api.github.com/users/mmcky","html_url":"https://github.com/mmcky","followers_url":"https://api.github.com/users/mmcky/followers","following_url":"https://api.github.com/users/mmcky/following{/other_user}","gists_url":"https://api.github.com/users/mmcky/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcky/subscriptions","organizations_url":"https://api.github.com/users/mmcky/orgs","repos_url":"https://api.github.com/users/mmcky/repos","events_url":"https://api.github.com/users/mmcky/events{/privacy}","received_events_url":"https://api.github.com/users/mmcky/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T23:57:35Z","updated_at":"2016-11-25T23:57:35Z","body":"thanks @shizejin @oyamad @jstac. I will merge this now. "}}
{"actor":{"display_login":"mmcky"}}