{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/84846883","pull_request_review_id":5596552,"id":84846883,"diff_hunk":"@@ -56,7 +69,18 @@ fun timeForHalfWay(t1: Double, v1: Double,\n  */\n fun whichRookThreatens(kingX: Int, kingY: Int,\n                        rookX1: Int, rookY1: Int,\n-                       rookX2: Int, rookY2: Int): Int = TODO()\n+                       rookX2: Int, rookY2: Int): Int {\n+    val r1Threat = (kingX == rookX1) || (kingY == rookY1)\n+    val r2Threat = (kingX == rookX2) || (kingY == rookY2)\n+\n+    if (r1Threat && r2Threat) return 3\n+    else if (r1Threat) return 1\n+    else if (r2Threat) return 2\n+    else return 0\n+","path":"src/lesson2/task1/IfElse.kt","position":47,"original_position":47,"commit_id":"3a10f3ca2807ff4542248b60f8dd49835ac1b23c","original_commit_id":"3a10f3ca2807ff4542248b60f8dd49835ac1b23c","user":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"body":"Зачем эти пустые строки?","created_at":"2016-10-25T07:50:45Z","updated_at":"2016-10-25T07:50:45Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57#discussion_r84846883","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/84846883"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57#discussion_r84846883"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57","id":85093944,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/57","number":57,"state":"open","locked":false,"title":"Lessons 1-3 Копылов М.","user":{"login":"RainbowDev","id":22040213,"avatar_url":"https://avatars.githubusercontent.com/u/22040213?v=3","gravatar_id":"","url":"https://api.github.com/users/RainbowDev","html_url":"https://github.com/RainbowDev","followers_url":"https://api.github.com/users/RainbowDev/followers","following_url":"https://api.github.com/users/RainbowDev/following{/other_user}","gists_url":"https://api.github.com/users/RainbowDev/gists{/gist_id}","starred_url":"https://api.github.com/users/RainbowDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainbowDev/subscriptions","organizations_url":"https://api.github.com/users/RainbowDev/orgs","repos_url":"https://api.github.com/users/RainbowDev/repos","events_url":"https://api.github.com/users/RainbowDev/events{/privacy}","received_events_url":"https://api.github.com/users/RainbowDev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-13T17:47:24Z","updated_at":"2016-10-25T08:04:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ac721fe1487997491dd8974deb574dc0fbea7a8","assignee":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"assignees":[{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57/comments","review_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/57/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/3a10f3ca2807ff4542248b60f8dd49835ac1b23c","head":{"label":"RainbowDev:master","ref":"master","sha":"3a10f3ca2807ff4542248b60f8dd49835ac1b23c","user":{"login":"RainbowDev","id":22040213,"avatar_url":"https://avatars.githubusercontent.com/u/22040213?v=3","gravatar_id":"","url":"https://api.github.com/users/RainbowDev","html_url":"https://github.com/RainbowDev","followers_url":"https://api.github.com/users/RainbowDev/followers","following_url":"https://api.github.com/users/RainbowDev/following{/other_user}","gists_url":"https://api.github.com/users/RainbowDev/gists{/gist_id}","starred_url":"https://api.github.com/users/RainbowDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainbowDev/subscriptions","organizations_url":"https://api.github.com/users/RainbowDev/orgs","repos_url":"https://api.github.com/users/RainbowDev/repos","events_url":"https://api.github.com/users/RainbowDev/events{/privacy}","received_events_url":"https://api.github.com/users/RainbowDev/received_events","type":"User","site_admin":false},"repo":{"id":67591197,"name":"KotlinAsFirst2016","full_name":"RainbowDev/KotlinAsFirst2016","owner":{"login":"RainbowDev","id":22040213,"avatar_url":"https://avatars.githubusercontent.com/u/22040213?v=3","gravatar_id":"","url":"https://api.github.com/users/RainbowDev","html_url":"https://github.com/RainbowDev","followers_url":"https://api.github.com/users/RainbowDev/followers","following_url":"https://api.github.com/users/RainbowDev/following{/other_user}","gists_url":"https://api.github.com/users/RainbowDev/gists{/gist_id}","starred_url":"https://api.github.com/users/RainbowDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RainbowDev/subscriptions","organizations_url":"https://api.github.com/users/RainbowDev/orgs","repos_url":"https://api.github.com/users/RainbowDev/repos","events_url":"https://api.github.com/users/RainbowDev/events{/privacy}","received_events_url":"https://api.github.com/users/RainbowDev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RainbowDev/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/RainbowDev/KotlinAsFirst2016/deployments","created_at":"2016-09-07T09:12:50Z","updated_at":"2016-09-07T09:12:53Z","pushed_at":"2016-10-23T15:34:59Z","git_url":"git://github.com/RainbowDev/KotlinAsFirst2016.git","ssh_url":"git@github.com:RainbowDev/KotlinAsFirst2016.git","clone_url":"https://github.com/RainbowDev/KotlinAsFirst2016.git","svn_url":"https://github.com/RainbowDev/KotlinAsFirst2016","homepage":null,"size":393,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"Kotlin-Polytech:master","ref":"master","sha":"1be261c169c06dd8bf0ea258e4fe431d0ebb7a06","user":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"repo":{"id":67405509,"name":"KotlinAsFirst2016","full_name":"Kotlin-Polytech/KotlinAsFirst2016","owner":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","description":null,"fork":false,"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/deployments","created_at":"2016-09-05T09:06:26Z","updated_at":"2016-10-24T11:05:48Z","pushed_at":"2016-10-25T08:02:04Z","git_url":"git://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","ssh_url":"git@github.com:Kotlin-Polytech/KotlinAsFirst2016.git","clone_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","svn_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","homepage":null,"size":18416,"stargazers_count":14,"watchers_count":14,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":75,"forks":98,"open_issues":75,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/57"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/57"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/3a10f3ca2807ff4542248b60f8dd49835ac1b23c"}}}}
{"actor":{"display_login":"ice-phoenix"}}