{"action":"created","comment":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments/87279417","pull_request_review_id":7898569,"id":87279417,"diff_hunk":"@@ -83,6 +83,29 @@ To eat an enemy cell, a cell must almost completely overlap its enemy and be\n - `target`: Target (`Vec2` object) that the cell should go for.\n             Move the cell by changing this value.\n \n+#### Methods\n+*Note: the following methods will only have an effect when called on cells\n+       owned by your player.*\n+\n+- `move(target)`: Moves towards the given `Vec2` target.\n+                  Convenience method that sets `cell.target`.\n+\n+- `split()`: Splits the cell into two distinct cells with half their parent's\n+             mass. The new cells will later be available to control via the\n+             `cells` list in `Player`.\n+             The cell must be at least twice the minimum mass for this call to\n+             have an effect.","path":"clients/python/README.md","position":23,"original_position":15,"commit_id":"54eaa2a7d4794bdcf4f6bdf778bc17875f823f1b","original_commit_id":"a5d3fe22284d0c0fd4a32843c034a434bd9ba933","user":{"login":"JesseEmond","id":1843555,"avatar_url":"https://avatars.githubusercontent.com/u/1843555?v=3","gravatar_id":"","url":"https://api.github.com/users/JesseEmond","html_url":"https://github.com/JesseEmond","followers_url":"https://api.github.com/users/JesseEmond/followers","following_url":"https://api.github.com/users/JesseEmond/following{/other_user}","gists_url":"https://api.github.com/users/JesseEmond/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseEmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseEmond/subscriptions","organizations_url":"https://api.github.com/users/JesseEmond/orgs","repos_url":"https://api.github.com/users/JesseEmond/repos","events_url":"https://api.github.com/users/JesseEmond/events{/privacy}","received_events_url":"https://api.github.com/users/JesseEmond/received_events","type":"User","site_admin":false},"body":"Added.","created_at":"2016-11-09T21:21:11Z","updated_at":"2016-11-09T21:21:11Z","html_url":"https://github.com/DrPandemic/aigar.io/pull/285#discussion_r87279417","pull_request_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285","_links":{"self":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments/87279417"},"html":{"href":"https://github.com/DrPandemic/aigar.io/pull/285#discussion_r87279417"},"pull_request":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285","id":92913700,"html_url":"https://github.com/DrPandemic/aigar.io/pull/285","diff_url":"https://github.com/DrPandemic/aigar.io/pull/285.diff","patch_url":"https://github.com/DrPandemic/aigar.io/pull/285.patch","issue_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/285","number":285,"state":"open","locked":false,"title":"[REBASED] Cell methods for actions","user":{"login":"JesseEmond","id":1843555,"avatar_url":"https://avatars.githubusercontent.com/u/1843555?v=3","gravatar_id":"","url":"https://api.github.com/users/JesseEmond","html_url":"https://github.com/JesseEmond","followers_url":"https://api.github.com/users/JesseEmond/followers","following_url":"https://api.github.com/users/JesseEmond/following{/other_user}","gists_url":"https://api.github.com/users/JesseEmond/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseEmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseEmond/subscriptions","organizations_url":"https://api.github.com/users/JesseEmond/orgs","repos_url":"https://api.github.com/users/JesseEmond/repos","events_url":"https://api.github.com/users/JesseEmond/events{/privacy}","received_events_url":"https://api.github.com/users/JesseEmond/received_events","type":"User","site_admin":false},"body":"# Please rebase before merging.\r\nConvenience methods to call actions on a cell, e.g.:\r\n```py\r\n// ...\r\ncell1.move(opponent.position)\r\n// ...\r\ncell2.split()\r\n// ...\r\ncell3.trade(1)\r\n// ...\r\n```\r\nThen, the game loop takes care of gathering the flags/values that were set and send those over as actions.\r\n\r\nGiven #284 , I did not add `feed()` for now.","created_at":"2016-11-09T06:59:06Z","updated_at":"2016-11-09T21:21:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3384d90f232a25340824f535d952f011473e668e","assignee":{"login":"JesseEmond","id":1843555,"avatar_url":"https://avatars.githubusercontent.com/u/1843555?v=3","gravatar_id":"","url":"https://api.github.com/users/JesseEmond","html_url":"https://github.com/JesseEmond","followers_url":"https://api.github.com/users/JesseEmond/followers","following_url":"https://api.github.com/users/JesseEmond/following{/other_user}","gists_url":"https://api.github.com/users/JesseEmond/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseEmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseEmond/subscriptions","organizations_url":"https://api.github.com/users/JesseEmond/orgs","repos_url":"https://api.github.com/users/JesseEmond/repos","events_url":"https://api.github.com/users/JesseEmond/events{/privacy}","received_events_url":"https://api.github.com/users/JesseEmond/received_events","type":"User","site_admin":false},"assignees":[{"login":"JesseEmond","id":1843555,"avatar_url":"https://avatars.githubusercontent.com/u/1843555?v=3","gravatar_id":"","url":"https://api.github.com/users/JesseEmond","html_url":"https://github.com/JesseEmond","followers_url":"https://api.github.com/users/JesseEmond/followers","following_url":"https://api.github.com/users/JesseEmond/following{/other_user}","gists_url":"https://api.github.com/users/JesseEmond/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseEmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseEmond/subscriptions","organizations_url":"https://api.github.com/users/JesseEmond/orgs","repos_url":"https://api.github.com/users/JesseEmond/repos","events_url":"https://api.github.com/users/JesseEmond/events{/privacy}","received_events_url":"https://api.github.com/users/JesseEmond/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones/2","html_url":"https://github.com/DrPandemic/aigar.io/milestones/Multiplayer%20Game","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones/2/labels","id":2072894,"number":2,"title":"Multiplayer Game","description":"Show multiple players on the screen\r\nManage multiple players in the backend\r\nManage the leaderboard on both front and backend","creator":{"login":"MicLamb","id":6540007,"avatar_url":"https://avatars.githubusercontent.com/u/6540007?v=3","gravatar_id":"","url":"https://api.github.com/users/MicLamb","html_url":"https://github.com/MicLamb","followers_url":"https://api.github.com/users/MicLamb/followers","following_url":"https://api.github.com/users/MicLamb/following{/other_user}","gists_url":"https://api.github.com/users/MicLamb/gists{/gist_id}","starred_url":"https://api.github.com/users/MicLamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicLamb/subscriptions","organizations_url":"https://api.github.com/users/MicLamb/orgs","repos_url":"https://api.github.com/users/MicLamb/repos","events_url":"https://api.github.com/users/MicLamb/events{/privacy}","received_events_url":"https://api.github.com/users/MicLamb/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":51,"state":"open","created_at":"2016-10-16T20:47:02Z","updated_at":"2016-11-09T14:52:33Z","due_on":"2016-11-11T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285/commits","review_comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285/comments","review_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/285/comments","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/54eaa2a7d4794bdcf4f6bdf778bc17875f823f1b","head":{"label":"DrPandemic:cell-actions","ref":"cell-actions","sha":"54eaa2a7d4794bdcf4f6bdf778bc17875f823f1b","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"repo":{"id":68840511,"name":"aigar.io","full_name":"DrPandemic/aigar.io","owner":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DrPandemic/aigar.io","description":null,"fork":false,"url":"https://api.github.com/repos/DrPandemic/aigar.io","forks_url":"https://api.github.com/repos/DrPandemic/aigar.io/forks","keys_url":"https://api.github.com/repos/DrPandemic/aigar.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DrPandemic/aigar.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DrPandemic/aigar.io/teams","hooks_url":"https://api.github.com/repos/DrPandemic/aigar.io/hooks","issue_events_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/events{/number}","events_url":"https://api.github.com/repos/DrPandemic/aigar.io/events","assignees_url":"https://api.github.com/repos/DrPandemic/aigar.io/assignees{/user}","branches_url":"https://api.github.com/repos/DrPandemic/aigar.io/branches{/branch}","tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/tags","blobs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/{sha}","languages_url":"https://api.github.com/repos/DrPandemic/aigar.io/languages","stargazers_url":"https://api.github.com/repos/DrPandemic/aigar.io/stargazers","contributors_url":"https://api.github.com/repos/DrPandemic/aigar.io/contributors","subscribers_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscribers","subscription_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscription","commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/DrPandemic/aigar.io/contents/{+path}","compare_url":"https://api.github.com/repos/DrPandemic/aigar.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DrPandemic/aigar.io/merges","archive_url":"https://api.github.com/repos/DrPandemic/aigar.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DrPandemic/aigar.io/downloads","issues_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues{/number}","pulls_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls{/number}","milestones_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones{/number}","notifications_url":"https://api.github.com/repos/DrPandemic/aigar.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/labels{/name}","releases_url":"https://api.github.com/repos/DrPandemic/aigar.io/releases{/id}","deployments_url":"https://api.github.com/repos/DrPandemic/aigar.io/deployments","created_at":"2016-09-21T17:18:41Z","updated_at":"2016-11-01T23:23:51Z","pushed_at":"2016-11-09T21:21:08Z","git_url":"git://github.com/DrPandemic/aigar.io.git","ssh_url":"git@github.com:DrPandemic/aigar.io.git","clone_url":"https://github.com/DrPandemic/aigar.io.git","svn_url":"https://github.com/DrPandemic/aigar.io","homepage":null,"size":3139,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":3,"default_branch":"master"}},"base":{"label":"DrPandemic:python-api-actions","ref":"python-api-actions","sha":"80315a49f82ae63971e0f755b2e8d1b85f239e62","user":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"repo":{"id":68840511,"name":"aigar.io","full_name":"DrPandemic/aigar.io","owner":{"login":"DrPandemic","id":3250155,"avatar_url":"https://avatars.githubusercontent.com/u/3250155?v=3","gravatar_id":"","url":"https://api.github.com/users/DrPandemic","html_url":"https://github.com/DrPandemic","followers_url":"https://api.github.com/users/DrPandemic/followers","following_url":"https://api.github.com/users/DrPandemic/following{/other_user}","gists_url":"https://api.github.com/users/DrPandemic/gists{/gist_id}","starred_url":"https://api.github.com/users/DrPandemic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrPandemic/subscriptions","organizations_url":"https://api.github.com/users/DrPandemic/orgs","repos_url":"https://api.github.com/users/DrPandemic/repos","events_url":"https://api.github.com/users/DrPandemic/events{/privacy}","received_events_url":"https://api.github.com/users/DrPandemic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DrPandemic/aigar.io","description":null,"fork":false,"url":"https://api.github.com/repos/DrPandemic/aigar.io","forks_url":"https://api.github.com/repos/DrPandemic/aigar.io/forks","keys_url":"https://api.github.com/repos/DrPandemic/aigar.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DrPandemic/aigar.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DrPandemic/aigar.io/teams","hooks_url":"https://api.github.com/repos/DrPandemic/aigar.io/hooks","issue_events_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/events{/number}","events_url":"https://api.github.com/repos/DrPandemic/aigar.io/events","assignees_url":"https://api.github.com/repos/DrPandemic/aigar.io/assignees{/user}","branches_url":"https://api.github.com/repos/DrPandemic/aigar.io/branches{/branch}","tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/tags","blobs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/{sha}","languages_url":"https://api.github.com/repos/DrPandemic/aigar.io/languages","stargazers_url":"https://api.github.com/repos/DrPandemic/aigar.io/stargazers","contributors_url":"https://api.github.com/repos/DrPandemic/aigar.io/contributors","subscribers_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscribers","subscription_url":"https://api.github.com/repos/DrPandemic/aigar.io/subscription","commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/DrPandemic/aigar.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/DrPandemic/aigar.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/DrPandemic/aigar.io/contents/{+path}","compare_url":"https://api.github.com/repos/DrPandemic/aigar.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DrPandemic/aigar.io/merges","archive_url":"https://api.github.com/repos/DrPandemic/aigar.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DrPandemic/aigar.io/downloads","issues_url":"https://api.github.com/repos/DrPandemic/aigar.io/issues{/number}","pulls_url":"https://api.github.com/repos/DrPandemic/aigar.io/pulls{/number}","milestones_url":"https://api.github.com/repos/DrPandemic/aigar.io/milestones{/number}","notifications_url":"https://api.github.com/repos/DrPandemic/aigar.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DrPandemic/aigar.io/labels{/name}","releases_url":"https://api.github.com/repos/DrPandemic/aigar.io/releases{/id}","deployments_url":"https://api.github.com/repos/DrPandemic/aigar.io/deployments","created_at":"2016-09-21T17:18:41Z","updated_at":"2016-11-01T23:23:51Z","pushed_at":"2016-11-09T21:21:08Z","git_url":"git://github.com/DrPandemic/aigar.io.git","ssh_url":"git@github.com:DrPandemic/aigar.io.git","clone_url":"https://github.com/DrPandemic/aigar.io.git","svn_url":"https://github.com/DrPandemic/aigar.io","homepage":null,"size":3139,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":47,"forks":0,"open_issues":47,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285"},"html":{"href":"https://github.com/DrPandemic/aigar.io/pull/285"},"issue":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/issues/285"},"comments":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/DrPandemic/aigar.io/statuses/54eaa2a7d4794bdcf4f6bdf778bc17875f823f1b"}}}}
{"actor":{"display_login":"JesseEmond"}}