{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmith/bwapi/issues/119","labels_url":"https://api.github.com/repos/chrsmith/bwapi/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/bwapi/issues/119/comments","events_url":"https://api.github.com/repos/chrsmith/bwapi/issues/119/events","html_url":"https://github.com/chrsmith/bwapi/issues/119","id":58480814,"number":119,"title":"void onEnd(int winnerID)","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/bwapi/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-21T23:53:06Z","updated_at":"2015-02-21T23:53:06Z","closed_at":null,"body":"```\nIs it possible to tell who won a match?\n\nCan we change\nvoid onEnd();\n\nto\nvoid onEnd(int winnerID);\n\nI plan on automating my bot, so this functionality would help me to\ndetermine if a bot won or lost. I can always try to look at supply count,\nbuilding count, etc, but I don't think I will be able to accurately capture\nwhy somebody left a game.\n\nThis problem is trivial if you assume the opponent fights to the death, but\nwon't work against human players.\n\nIs there a way of telling who won a match, or detecting who has left a match?\n```\n\n-----\nOriginal issue reported on code.google.com by `bgwe...@gmail.com` on 19 Nov 2009 at 5:58"}}