{"action":"created","comment":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/173727798","pull_request_review_id":102957480,"id":173727798,"diff_hunk":"@@ -0,0 +1,61 @@\n+# Bishop moves\n+a = int(input())\n+b = int(input())\n+c = int(input())\n+d = int(input())\n+if a >= 1 and b >= 1 and c >= 1 and d >= 1 and a <= 8 and b <= 8 and c <= 8 and d <= 8:\n+    if c-a == d-b or a-c == d-b :\n+        print (\"YES\")\n+    else:\n+        print (\"NO\")\n+else :\n+    print (\"NO\")\n+\n+\n+# Queen move\n+a = int(input())\n+b = int(input())\n+c = int(input())\n+d = int(input())\n+if a >= 1 and b >= 1 and c >= 1 and d >= 1 and a <= 8 and b <= 8 and c <= 8 and d <= 8:\n+    if (c-a == d-b or a-c == d-b) or (c-a == 0 and d-b != 0) or (d-b == 0 and c-a != 0): \n+        print (\"YES\")\n+    else:\n+        print (\"NO\")\n+else :\n+    print (\"NO\")\n+\n+    \n+# Knight move\n+a = int(input())\n+b = int(input())\n+c = int(input())\n+d = int(input())\n+if a >= 1 and b >= 1 and c >= 1 and d >= 1 and a <= 8 and b <= 8 and c <= 8 and d <= 8:\n+    if ((c-a == 1 or a-c == 1) and (d-b == 2 or b-d == 2)) or ((c-a == 2 or a-c == 2) and (d-b == 1 or b-d == 1)):\n+        print (\"YES\")","path":"students/jakielczyk_miroslaw/lesson_02_flow_control/Lesson_02_part1.py","position":36,"original_position":36,"commit_id":"d260dcaff8aad49df71702b6e217d0d2d80b56a3","original_commit_id":"d260dcaff8aad49df71702b6e217d0d2d80b56a3","user":{"login":"kuszcjan","id":35604539,"avatar_url":"https://avatars3.githubusercontent.com/u/35604539?v=4","gravatar_id":"","url":"https://api.github.com/users/kuszcjan","html_url":"https://github.com/kuszcjan","followers_url":"https://api.github.com/users/kuszcjan/followers","following_url":"https://api.github.com/users/kuszcjan/following{/other_user}","gists_url":"https://api.github.com/users/kuszcjan/gists{/gist_id}","starred_url":"https://api.github.com/users/kuszcjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuszcjan/subscriptions","organizations_url":"https://api.github.com/users/kuszcjan/orgs","repos_url":"https://api.github.com/users/kuszcjan/repos","events_url":"https://api.github.com/users/kuszcjan/events{/privacy}","received_events_url":"https://api.github.com/users/kuszcjan/received_events","type":"User","site_admin":false},"body":"It's not very readable. Please break complex if statements into multiple lines e.g:\r\n```\r\nif ((c-a == 1 or a-c == 1) and (d-b == 2 or b-d == 2)) or \\\r\n   ((c-a == 2 or a-c == 2) and (d-b == 1 or b-d == 1)):\r\n```","created_at":"2018-03-12T09:07:38Z","updated_at":"2018-03-12T09:23:53Z","html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/169#discussion_r173727798","pull_request_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments/173727798"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/169#discussion_r173727798"},"pull_request":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169","id":173875999,"html_url":"https://github.com/jedzej/tietopythontraining-basic/pull/169","diff_url":"https://github.com/jedzej/tietopythontraining-basic/pull/169.diff","patch_url":"https://github.com/jedzej/tietopythontraining-basic/pull/169.patch","issue_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/169","number":169,"state":"open","locked":false,"title":"three parts for lesson_02+flow_control","user":{"login":"miroslawj","id":32279218,"avatar_url":"https://avatars3.githubusercontent.com/u/32279218?v=4","gravatar_id":"","url":"https://api.github.com/users/miroslawj","html_url":"https://github.com/miroslawj","followers_url":"https://api.github.com/users/miroslawj/followers","following_url":"https://api.github.com/users/miroslawj/following{/other_user}","gists_url":"https://api.github.com/users/miroslawj/gists{/gist_id}","starred_url":"https://api.github.com/users/miroslawj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miroslawj/subscriptions","organizations_url":"https://api.github.com/users/miroslawj/orgs","repos_url":"https://api.github.com/users/miroslawj/repos","events_url":"https://api.github.com/users/miroslawj/events{/privacy}","received_events_url":"https://api.github.com/users/miroslawj/received_events","type":"User","site_admin":false},"body":"@kuszcjan please make a review","created_at":"2018-03-08T23:03:27Z","updated_at":"2018-03-12T09:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"667c33af07d6f93f438c267888128c457d70f2f0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169/commits","review_comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169/comments","review_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/169/comments","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/d260dcaff8aad49df71702b6e217d0d2d80b56a3","head":{"label":"miroslawj:kuszcjan/lesson_02_flow_control","ref":"kuszcjan/lesson_02_flow_control","sha":"d260dcaff8aad49df71702b6e217d0d2d80b56a3","user":{"login":"miroslawj","id":32279218,"avatar_url":"https://avatars3.githubusercontent.com/u/32279218?v=4","gravatar_id":"","url":"https://api.github.com/users/miroslawj","html_url":"https://github.com/miroslawj","followers_url":"https://api.github.com/users/miroslawj/followers","following_url":"https://api.github.com/users/miroslawj/following{/other_user}","gists_url":"https://api.github.com/users/miroslawj/gists{/gist_id}","starred_url":"https://api.github.com/users/miroslawj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miroslawj/subscriptions","organizations_url":"https://api.github.com/users/miroslawj/orgs","repos_url":"https://api.github.com/users/miroslawj/repos","events_url":"https://api.github.com/users/miroslawj/events{/privacy}","received_events_url":"https://api.github.com/users/miroslawj/received_events","type":"User","site_admin":false},"repo":{"id":122469483,"name":"tietopythontraining-basic","full_name":"miroslawj/tietopythontraining-basic","owner":{"login":"miroslawj","id":32279218,"avatar_url":"https://avatars3.githubusercontent.com/u/32279218?v=4","gravatar_id":"","url":"https://api.github.com/users/miroslawj","html_url":"https://github.com/miroslawj","followers_url":"https://api.github.com/users/miroslawj/followers","following_url":"https://api.github.com/users/miroslawj/following{/other_user}","gists_url":"https://api.github.com/users/miroslawj/gists{/gist_id}","starred_url":"https://api.github.com/users/miroslawj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miroslawj/subscriptions","organizations_url":"https://api.github.com/users/miroslawj/orgs","repos_url":"https://api.github.com/users/miroslawj/repos","events_url":"https://api.github.com/users/miroslawj/events{/privacy}","received_events_url":"https://api.github.com/users/miroslawj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miroslawj/tietopythontraining-basic","description":null,"fork":true,"url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic","forks_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/miroslawj/tietopythontraining-basic/deployments","created_at":"2018-02-22T11:24:39Z","updated_at":"2018-02-22T11:24:41Z","pushed_at":"2018-03-08T22:56:37Z","git_url":"git://github.com/miroslawj/tietopythontraining-basic.git","ssh_url":"git@github.com:miroslawj/tietopythontraining-basic.git","clone_url":"https://github.com/miroslawj/tietopythontraining-basic.git","svn_url":"https://github.com/miroslawj/tietopythontraining-basic","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jedzej:master","ref":"master","sha":"89a5914015eee138e790c35ccf9a8f68627ed4af","user":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"repo":{"id":118122178,"name":"tietopythontraining-basic","full_name":"jedzej/tietopythontraining-basic","owner":{"login":"jedzej","id":57070,"avatar_url":"https://avatars0.githubusercontent.com/u/57070?v=4","gravatar_id":"","url":"https://api.github.com/users/jedzej","html_url":"https://github.com/jedzej","followers_url":"https://api.github.com/users/jedzej/followers","following_url":"https://api.github.com/users/jedzej/following{/other_user}","gists_url":"https://api.github.com/users/jedzej/gists{/gist_id}","starred_url":"https://api.github.com/users/jedzej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedzej/subscriptions","organizations_url":"https://api.github.com/users/jedzej/orgs","repos_url":"https://api.github.com/users/jedzej/repos","events_url":"https://api.github.com/users/jedzej/events{/privacy}","received_events_url":"https://api.github.com/users/jedzej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jedzej/tietopythontraining-basic","description":null,"fork":false,"url":"https://api.github.com/repos/jedzej/tietopythontraining-basic","forks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/forks","keys_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/teams","hooks_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/hooks","issue_events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/events{/number}","events_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/events","assignees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/assignees{/user}","branches_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/branches{/branch}","tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/tags","blobs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/languages","stargazers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/stargazers","contributors_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contributors","subscribers_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscribers","subscription_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/subscription","commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/contents/{+path}","compare_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/merges","archive_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/downloads","issues_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues{/number}","pulls_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/labels{/name}","releases_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/releases{/id}","deployments_url":"https://api.github.com/repos/jedzej/tietopythontraining-basic/deployments","created_at":"2018-01-19T12:23:02Z","updated_at":"2018-03-02T11:09:40Z","pushed_at":"2018-03-12T09:23:45Z","git_url":"git://github.com/jedzej/tietopythontraining-basic.git","ssh_url":"git@github.com:jedzej/tietopythontraining-basic.git","clone_url":"https://github.com/jedzej/tietopythontraining-basic.git","svn_url":"https://github.com/jedzej/tietopythontraining-basic","homepage":null,"size":350,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"archived":false,"open_issues_count":37,"license":null,"forks":76,"open_issues":37,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169"},"html":{"href":"https://github.com/jedzej/tietopythontraining-basic/pull/169"},"issue":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/169"},"comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/jedzej/tietopythontraining-basic/statuses/d260dcaff8aad49df71702b6e217d0d2d80b56a3"}},"author_association":"NONE"}}
{"actor":{"display_login":"kuszcjan"}}