{"action":"created","comment":{"url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/comments/69934827","id":69934827,"diff_hunk":"@@ -985,18 +1011,67 @@ var bot = window.bot = (function () {\n             return (poly);\n         },\n \n+        // check if we can start transition to the circle\n+        followCircleTransitionCheck: function () {\n+            // check size\n+            if (bot.snakeLength < bot.opt.followCircleLength) {\n+                return false;\n+            }\n+\n+            // if size is enough:\n+            // check that there are no snakes around in the radius of 12 body widths\n+            let dMax = bot.followCircleTransition.safeRadius * bot.snakeWidth;\n+            // mark the zone\n+            if (window.visualDebugging) {\n+                canvas.drawCircle(canvas.circle(\n+                    window.snake.xx,\n+                    window.snake.yy,\n+                    dMax\n+                ), 'red', false);\n+            }\n+            let dMax2 = dMax*dMax;","path":"bot.user.js","position":134,"original_position":134,"commit_id":"cc6f2356e02bf42e22905ff593b4d1dc22dddd5f","original_commit_id":"cc6f2356e02bf42e22905ff593b4d1dc22dddd5f","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Infix operators must be spaced                    space-infix-ops","created_at":"2016-07-07T16:01:03Z","updated_at":"2016-07-07T16:01:03Z","html_url":"https://github.com/j-c-m/Slither.io-bot/pull/9#discussion_r69934827","pull_request_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/comments/69934827"},"html":{"href":"https://github.com/j-c-m/Slither.io-bot/pull/9#discussion_r69934827"},"pull_request":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9","id":76574236,"html_url":"https://github.com/j-c-m/Slither.io-bot/pull/9","diff_url":"https://github.com/j-c-m/Slither.io-bot/pull/9.diff","patch_url":"https://github.com/j-c-m/Slither.io-bot/pull/9.patch","issue_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/9","number":9,"state":"open","locked":false,"title":"Minor fixes","user":{"login":"khumarahn","id":5206045,"avatar_url":"https://avatars.githubusercontent.com/u/5206045?v=3","gravatar_id":"","url":"https://api.github.com/users/khumarahn","html_url":"https://github.com/khumarahn","followers_url":"https://api.github.com/users/khumarahn/followers","following_url":"https://api.github.com/users/khumarahn/following{/other_user}","gists_url":"https://api.github.com/users/khumarahn/gists{/gist_id}","starred_url":"https://api.github.com/users/khumarahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khumarahn/subscriptions","organizations_url":"https://api.github.com/users/khumarahn/orgs","repos_url":"https://api.github.com/users/khumarahn/repos","events_url":"https://api.github.com/users/khumarahn/events{/privacy}","received_events_url":"https://api.github.com/users/khumarahn/received_events","type":"User","site_admin":false},"body":"Hi, I made some changes, mostly cosmetic.\r\n\r\nin db4f2b3, I think that it was not enough to check that `window.goalCoordinates` are within 1000 distance. It could happen that the bot is turned on very close to other snakes, and a jerk resulting from pointing 1000 units away initially may lead to a collision.","created_at":"2016-07-07T10:42:51Z","updated_at":"2016-07-07T16:01:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddfb1ba2b67615d2f5535848ff4cef44345dc5bb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9/commits","review_comments_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9/comments","review_comment_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/9/comments","statuses_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/statuses/cc6f2356e02bf42e22905ff593b4d1dc22dddd5f","head":{"label":"khumarahn:_followself","ref":"_followself","sha":"cc6f2356e02bf42e22905ff593b4d1dc22dddd5f","user":{"login":"khumarahn","id":5206045,"avatar_url":"https://avatars.githubusercontent.com/u/5206045?v=3","gravatar_id":"","url":"https://api.github.com/users/khumarahn","html_url":"https://github.com/khumarahn","followers_url":"https://api.github.com/users/khumarahn/followers","following_url":"https://api.github.com/users/khumarahn/following{/other_user}","gists_url":"https://api.github.com/users/khumarahn/gists{/gist_id}","starred_url":"https://api.github.com/users/khumarahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khumarahn/subscriptions","organizations_url":"https://api.github.com/users/khumarahn/orgs","repos_url":"https://api.github.com/users/khumarahn/repos","events_url":"https://api.github.com/users/khumarahn/events{/privacy}","received_events_url":"https://api.github.com/users/khumarahn/received_events","type":"User","site_admin":false},"repo":{"id":62797013,"name":"Slither.io-bot.C","full_name":"khumarahn/Slither.io-bot.C","owner":{"login":"khumarahn","id":5206045,"avatar_url":"https://avatars.githubusercontent.com/u/5206045?v=3","gravatar_id":"","url":"https://api.github.com/users/khumarahn","html_url":"https://github.com/khumarahn","followers_url":"https://api.github.com/users/khumarahn/followers","following_url":"https://api.github.com/users/khumarahn/following{/other_user}","gists_url":"https://api.github.com/users/khumarahn/gists{/gist_id}","starred_url":"https://api.github.com/users/khumarahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khumarahn/subscriptions","organizations_url":"https://api.github.com/users/khumarahn/orgs","repos_url":"https://api.github.com/users/khumarahn/repos","events_url":"https://api.github.com/users/khumarahn/events{/privacy}","received_events_url":"https://api.github.com/users/khumarahn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khumarahn/Slither.io-bot.C","description":"Slither.io Bot Championship Edition","fork":true,"url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C","forks_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/forks","keys_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/teams","hooks_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/hooks","issue_events_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/issues/events{/number}","events_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/events","assignees_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/assignees{/user}","branches_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/branches{/branch}","tags_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/tags","blobs_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/git/refs{/sha}","trees_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/statuses/{sha}","languages_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/languages","stargazers_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/stargazers","contributors_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/contributors","subscribers_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/subscribers","subscription_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/subscription","commits_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/commits{/sha}","git_commits_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/git/commits{/sha}","comments_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/comments{/number}","issue_comment_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/issues/comments{/number}","contents_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/contents/{+path}","compare_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/merges","archive_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/downloads","issues_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/issues{/number}","pulls_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/pulls{/number}","milestones_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/milestones{/number}","notifications_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/labels{/name}","releases_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/releases{/id}","deployments_url":"https://api.github.com/repos/khumarahn/Slither.io-bot.C/deployments","created_at":"2016-07-07T10:08:18Z","updated_at":"2016-07-07T10:09:46Z","pushed_at":"2016-07-07T16:00:51Z","git_url":"git://github.com/khumarahn/Slither.io-bot.C.git","ssh_url":"git@github.com:khumarahn/Slither.io-bot.C.git","clone_url":"https://github.com/khumarahn/Slither.io-bot.C.git","svn_url":"https://github.com/khumarahn/Slither.io-bot.C","homepage":"","size":511,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"j-c-m:_followself","ref":"_followself","sha":"14f1149197f105fca0914ff594bbc1d991ed1f43","user":{"login":"j-c-m","id":5659031,"avatar_url":"https://avatars.githubusercontent.com/u/5659031?v=3","gravatar_id":"","url":"https://api.github.com/users/j-c-m","html_url":"https://github.com/j-c-m","followers_url":"https://api.github.com/users/j-c-m/followers","following_url":"https://api.github.com/users/j-c-m/following{/other_user}","gists_url":"https://api.github.com/users/j-c-m/gists{/gist_id}","starred_url":"https://api.github.com/users/j-c-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-c-m/subscriptions","organizations_url":"https://api.github.com/users/j-c-m/orgs","repos_url":"https://api.github.com/users/j-c-m/repos","events_url":"https://api.github.com/users/j-c-m/events{/privacy}","received_events_url":"https://api.github.com/users/j-c-m/received_events","type":"User","site_admin":false},"repo":{"id":58659817,"name":"Slither.io-bot","full_name":"j-c-m/Slither.io-bot","owner":{"login":"j-c-m","id":5659031,"avatar_url":"https://avatars.githubusercontent.com/u/5659031?v=3","gravatar_id":"","url":"https://api.github.com/users/j-c-m","html_url":"https://github.com/j-c-m","followers_url":"https://api.github.com/users/j-c-m/followers","following_url":"https://api.github.com/users/j-c-m/following{/other_user}","gists_url":"https://api.github.com/users/j-c-m/gists{/gist_id}","starred_url":"https://api.github.com/users/j-c-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-c-m/subscriptions","organizations_url":"https://api.github.com/users/j-c-m/orgs","repos_url":"https://api.github.com/users/j-c-m/repos","events_url":"https://api.github.com/users/j-c-m/events{/privacy}","received_events_url":"https://api.github.com/users/j-c-m/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j-c-m/Slither.io-bot","description":"Slither.io Bot Championship Edition","fork":false,"url":"https://api.github.com/repos/j-c-m/Slither.io-bot","forks_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/forks","keys_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/teams","hooks_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/hooks","issue_events_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/events{/number}","events_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/events","assignees_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/assignees{/user}","branches_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/branches{/branch}","tags_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/tags","blobs_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/languages","stargazers_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/stargazers","contributors_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/contributors","subscribers_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/subscribers","subscription_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/subscription","commits_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/contents/{+path}","compare_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/merges","archive_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/downloads","issues_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues{/number}","pulls_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/labels{/name}","releases_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/releases{/id}","deployments_url":"https://api.github.com/repos/j-c-m/Slither.io-bot/deployments","created_at":"2016-05-12T16:50:01Z","updated_at":"2016-06-30T23:56:43Z","pushed_at":"2016-07-07T16:00:51Z","git_url":"git://github.com/j-c-m/Slither.io-bot.git","ssh_url":"git@github.com:j-c-m/Slither.io-bot.git","clone_url":"https://github.com/j-c-m/Slither.io-bot.git","svn_url":"https://github.com/j-c-m/Slither.io-bot","homepage":"","size":467,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9"},"html":{"href":"https://github.com/j-c-m/Slither.io-bot/pull/9"},"issue":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/9"},"comments":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/j-c-m/Slither.io-bot/statuses/cc6f2356e02bf42e22905ff593b4d1dc22dddd5f"}}}}
{"actor":{"display_login":"houndci-bot"}}