{"action":"created","comment":{"url":"https://api.github.com/repos/mangin/HW0/pulls/comments/28096891","id":28096891,"diff_hunk":"@@ -0,0 +1,208 @@\n+/*global readline*/\n+/*global print*/\n+function jump_coord(x1, x2, y1, y2) {\n+    \"use strict\";\n+    var x, y, res;\n+    if (x1 === x2) {\n+        y = (y1 + y2) / 2;\n+        y = Math.floor(y);\n+        x = x1;\n+    } else if (y1 === y2) {\n+        x = (x1 + x2) / 2;\n+        x = Math.floor(x);\n+        y = y1;\n+    } else {\n+        x = (x1 + x2) / 2;","path":"batman.js","position":15,"original_position":15,"commit_id":"62f834e470f2970147153aa1f84e09da27351d2d","original_commit_id":"62f834e470f2970147153aa1f84e09da27351d2d","user":{"login":"mangin","id":7918881,"avatar_url":"https://avatars.githubusercontent.com/u/7918881?v=3","gravatar_id":"","url":"https://api.github.com/users/mangin","html_url":"https://github.com/mangin","followers_url":"https://api.github.com/users/mangin/followers","following_url":"https://api.github.com/users/mangin/following{/other_user}","gists_url":"https://api.github.com/users/mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangin/subscriptions","organizations_url":"https://api.github.com/users/mangin/orgs","repos_url":"https://api.github.com/users/mangin/repos","events_url":"https://api.github.com/users/mangin/events{/privacy}","received_events_url":"https://api.github.com/users/mangin/received_events","type":"User","site_admin":false},"body":"мне кажется, что разбор всех случаев лишний","created_at":"2015-04-09T19:59:28Z","updated_at":"2015-04-09T19:59:28Z","html_url":"https://github.com/mangin/HW0/pull/23#discussion_r28096891","pull_request_url":"https://api.github.com/repos/mangin/HW0/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/mangin/HW0/pulls/comments/28096891"},"html":{"href":"https://github.com/mangin/HW0/pull/23#discussion_r28096891"},"pull_request":{"href":"https://api.github.com/repos/mangin/HW0/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/mangin/HW0/pulls/23","id":31673550,"html_url":"https://github.com/mangin/HW0/pull/23","diff_url":"https://github.com/mangin/HW0/pull/23.diff","patch_url":"https://github.com/mangin/HW0/pull/23.patch","issue_url":"https://api.github.com/repos/mangin/HW0/issues/23","number":23,"state":"open","locked":false,"title":"HW0","user":{"login":"melomasha","id":10142841,"avatar_url":"https://avatars.githubusercontent.com/u/10142841?v=3","gravatar_id":"","url":"https://api.github.com/users/melomasha","html_url":"https://github.com/melomasha","followers_url":"https://api.github.com/users/melomasha/followers","following_url":"https://api.github.com/users/melomasha/following{/other_user}","gists_url":"https://api.github.com/users/melomasha/gists{/gist_id}","starred_url":"https://api.github.com/users/melomasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melomasha/subscriptions","organizations_url":"https://api.github.com/users/melomasha/orgs","repos_url":"https://api.github.com/users/melomasha/repos","events_url":"https://api.github.com/users/melomasha/events{/privacy}","received_events_url":"https://api.github.com/users/melomasha/received_events","type":"User","site_admin":false},"body":"Были проблемы с parseInt в JSLint, починить не получилось(идея\r\nзакомментирована, но если сделать так не работает). Ещё Jlint ругается\r\nна объявление переменной в цикле, но тут у меня нет идея как обойтись\r\nбез этого в данной задаче. В дальнейшем буду сдавать задачки вовремя.\r\nТут я ооочень сильно недооценила JSLint.","created_at":"2015-03-21T16:12:11Z","updated_at":"2015-04-09T19:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d785a40dcdc0cd4fb1abbb6a907119c36ec7a0e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mangin/HW0/pulls/23/commits","review_comments_url":"https://api.github.com/repos/mangin/HW0/pulls/23/comments","review_comment_url":"https://api.github.com/repos/mangin/HW0/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mangin/HW0/issues/23/comments","statuses_url":"https://api.github.com/repos/mangin/HW0/statuses/62f834e470f2970147153aa1f84e09da27351d2d","head":{"label":"melomasha:master","ref":"master","sha":"62f834e470f2970147153aa1f84e09da27351d2d","user":{"login":"melomasha","id":10142841,"avatar_url":"https://avatars.githubusercontent.com/u/10142841?v=3","gravatar_id":"","url":"https://api.github.com/users/melomasha","html_url":"https://github.com/melomasha","followers_url":"https://api.github.com/users/melomasha/followers","following_url":"https://api.github.com/users/melomasha/following{/other_user}","gists_url":"https://api.github.com/users/melomasha/gists{/gist_id}","starred_url":"https://api.github.com/users/melomasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melomasha/subscriptions","organizations_url":"https://api.github.com/users/melomasha/orgs","repos_url":"https://api.github.com/users/melomasha/repos","events_url":"https://api.github.com/users/melomasha/events{/privacy}","received_events_url":"https://api.github.com/users/melomasha/received_events","type":"User","site_admin":false},"repo":{"id":32638942,"name":"HW0","full_name":"melomasha/HW0","owner":{"login":"melomasha","id":10142841,"avatar_url":"https://avatars.githubusercontent.com/u/10142841?v=3","gravatar_id":"","url":"https://api.github.com/users/melomasha","html_url":"https://github.com/melomasha","followers_url":"https://api.github.com/users/melomasha/followers","following_url":"https://api.github.com/users/melomasha/following{/other_user}","gists_url":"https://api.github.com/users/melomasha/gists{/gist_id}","starred_url":"https://api.github.com/users/melomasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melomasha/subscriptions","organizations_url":"https://api.github.com/users/melomasha/orgs","repos_url":"https://api.github.com/users/melomasha/repos","events_url":"https://api.github.com/users/melomasha/events{/privacy}","received_events_url":"https://api.github.com/users/melomasha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/melomasha/HW0","description":"Нулевой домашнее задание","fork":true,"url":"https://api.github.com/repos/melomasha/HW0","forks_url":"https://api.github.com/repos/melomasha/HW0/forks","keys_url":"https://api.github.com/repos/melomasha/HW0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/melomasha/HW0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/melomasha/HW0/teams","hooks_url":"https://api.github.com/repos/melomasha/HW0/hooks","issue_events_url":"https://api.github.com/repos/melomasha/HW0/issues/events{/number}","events_url":"https://api.github.com/repos/melomasha/HW0/events","assignees_url":"https://api.github.com/repos/melomasha/HW0/assignees{/user}","branches_url":"https://api.github.com/repos/melomasha/HW0/branches{/branch}","tags_url":"https://api.github.com/repos/melomasha/HW0/tags","blobs_url":"https://api.github.com/repos/melomasha/HW0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/melomasha/HW0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/melomasha/HW0/git/refs{/sha}","trees_url":"https://api.github.com/repos/melomasha/HW0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/melomasha/HW0/statuses/{sha}","languages_url":"https://api.github.com/repos/melomasha/HW0/languages","stargazers_url":"https://api.github.com/repos/melomasha/HW0/stargazers","contributors_url":"https://api.github.com/repos/melomasha/HW0/contributors","subscribers_url":"https://api.github.com/repos/melomasha/HW0/subscribers","subscription_url":"https://api.github.com/repos/melomasha/HW0/subscription","commits_url":"https://api.github.com/repos/melomasha/HW0/commits{/sha}","git_commits_url":"https://api.github.com/repos/melomasha/HW0/git/commits{/sha}","comments_url":"https://api.github.com/repos/melomasha/HW0/comments{/number}","issue_comment_url":"https://api.github.com/repos/melomasha/HW0/issues/comments{/number}","contents_url":"https://api.github.com/repos/melomasha/HW0/contents/{+path}","compare_url":"https://api.github.com/repos/melomasha/HW0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/melomasha/HW0/merges","archive_url":"https://api.github.com/repos/melomasha/HW0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/melomasha/HW0/downloads","issues_url":"https://api.github.com/repos/melomasha/HW0/issues{/number}","pulls_url":"https://api.github.com/repos/melomasha/HW0/pulls{/number}","milestones_url":"https://api.github.com/repos/melomasha/HW0/milestones{/number}","notifications_url":"https://api.github.com/repos/melomasha/HW0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/melomasha/HW0/labels{/name}","releases_url":"https://api.github.com/repos/melomasha/HW0/releases{/id}","created_at":"2015-03-21T16:03:56Z","updated_at":"2015-03-21T16:11:25Z","pushed_at":"2015-03-21T16:11:25Z","git_url":"git://github.com/melomasha/HW0.git","ssh_url":"git@github.com:melomasha/HW0.git","clone_url":"https://github.com/melomasha/HW0.git","svn_url":"https://github.com/melomasha/HW0","homepage":null,"size":81,"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":"mangin:master","ref":"master","sha":"688c63d1fb9f7fb642427fa49604b50445b5f428","user":{"login":"mangin","id":7918881,"avatar_url":"https://avatars.githubusercontent.com/u/7918881?v=3","gravatar_id":"","url":"https://api.github.com/users/mangin","html_url":"https://github.com/mangin","followers_url":"https://api.github.com/users/mangin/followers","following_url":"https://api.github.com/users/mangin/following{/other_user}","gists_url":"https://api.github.com/users/mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangin/subscriptions","organizations_url":"https://api.github.com/users/mangin/orgs","repos_url":"https://api.github.com/users/mangin/repos","events_url":"https://api.github.com/users/mangin/events{/privacy}","received_events_url":"https://api.github.com/users/mangin/received_events","type":"User","site_admin":false},"repo":{"id":31767276,"name":"HW0","full_name":"mangin/HW0","owner":{"login":"mangin","id":7918881,"avatar_url":"https://avatars.githubusercontent.com/u/7918881?v=3","gravatar_id":"","url":"https://api.github.com/users/mangin","html_url":"https://github.com/mangin","followers_url":"https://api.github.com/users/mangin/followers","following_url":"https://api.github.com/users/mangin/following{/other_user}","gists_url":"https://api.github.com/users/mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangin/subscriptions","organizations_url":"https://api.github.com/users/mangin/orgs","repos_url":"https://api.github.com/users/mangin/repos","events_url":"https://api.github.com/users/mangin/events{/privacy}","received_events_url":"https://api.github.com/users/mangin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mangin/HW0","description":"Нулевой домашнее задание","fork":false,"url":"https://api.github.com/repos/mangin/HW0","forks_url":"https://api.github.com/repos/mangin/HW0/forks","keys_url":"https://api.github.com/repos/mangin/HW0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mangin/HW0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mangin/HW0/teams","hooks_url":"https://api.github.com/repos/mangin/HW0/hooks","issue_events_url":"https://api.github.com/repos/mangin/HW0/issues/events{/number}","events_url":"https://api.github.com/repos/mangin/HW0/events","assignees_url":"https://api.github.com/repos/mangin/HW0/assignees{/user}","branches_url":"https://api.github.com/repos/mangin/HW0/branches{/branch}","tags_url":"https://api.github.com/repos/mangin/HW0/tags","blobs_url":"https://api.github.com/repos/mangin/HW0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mangin/HW0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mangin/HW0/git/refs{/sha}","trees_url":"https://api.github.com/repos/mangin/HW0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mangin/HW0/statuses/{sha}","languages_url":"https://api.github.com/repos/mangin/HW0/languages","stargazers_url":"https://api.github.com/repos/mangin/HW0/stargazers","contributors_url":"https://api.github.com/repos/mangin/HW0/contributors","subscribers_url":"https://api.github.com/repos/mangin/HW0/subscribers","subscription_url":"https://api.github.com/repos/mangin/HW0/subscription","commits_url":"https://api.github.com/repos/mangin/HW0/commits{/sha}","git_commits_url":"https://api.github.com/repos/mangin/HW0/git/commits{/sha}","comments_url":"https://api.github.com/repos/mangin/HW0/comments{/number}","issue_comment_url":"https://api.github.com/repos/mangin/HW0/issues/comments{/number}","contents_url":"https://api.github.com/repos/mangin/HW0/contents/{+path}","compare_url":"https://api.github.com/repos/mangin/HW0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mangin/HW0/merges","archive_url":"https://api.github.com/repos/mangin/HW0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mangin/HW0/downloads","issues_url":"https://api.github.com/repos/mangin/HW0/issues{/number}","pulls_url":"https://api.github.com/repos/mangin/HW0/pulls{/number}","milestones_url":"https://api.github.com/repos/mangin/HW0/milestones{/number}","notifications_url":"https://api.github.com/repos/mangin/HW0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mangin/HW0/labels{/name}","releases_url":"https://api.github.com/repos/mangin/HW0/releases{/id}","created_at":"2015-03-06T11:55:34Z","updated_at":"2015-03-06T11:55:34Z","pushed_at":"2015-04-03T15:06:42Z","git_url":"git://github.com/mangin/HW0.git","ssh_url":"git@github.com:mangin/HW0.git","clone_url":"https://github.com/mangin/HW0.git","svn_url":"https://github.com/mangin/HW0","homepage":null,"size":286,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":3,"forks":27,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mangin/HW0/pulls/23"},"html":{"href":"https://github.com/mangin/HW0/pull/23"},"issue":{"href":"https://api.github.com/repos/mangin/HW0/issues/23"},"comments":{"href":"https://api.github.com/repos/mangin/HW0/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/mangin/HW0/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/mangin/HW0/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mangin/HW0/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/mangin/HW0/statuses/62f834e470f2970147153aa1f84e09da27351d2d"}}}}