{"action":"created","comment":{"url":"https://api.github.com/repos/trvin51/CS106A/pulls/comments/199675267","pull_request_review_id":133839241,"id":199675267,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTY3NTI2Nw==","diff_hunk":"@@ -0,0 +1,84 @@\n+/*\n+ * File: CheckerboardKarel.java\n+ * ----------------------------\n+ * When you finish writing it, the CheckerboardKarel class should draw\n+ * a checkerboard using beepers, as described in Assignment 1.  You\n+ * should make sure that your program works for all of the sample\n+ * worlds supplied in the starter folder.\n+ */\n+\n+import stanford.karel.*;\n+\n+public class CheckerboardKarel extends SuperKarel {\n+\n+\tpublic void run() {\n+\t\twhile (frontIsClear()) {\n+\t\t\twhile (frontIsClear()) {\n+\t\t\t\toneLine();\n+\t\t\t}\t\t\n+\t\t\tif (frontIsBlocked()) {\n+\t\t\t\tturnRight();\n+\t\t\t\tif (frontIsClear()) {\n+\t\t\t\t\tmove();\n+\t\t\t\t\tturnRight();\n+\t\t\t\t}\t\n+\t\t\t\tif (frontIsClear()) {\n+\t\t\t\t\tmove();\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tif (frontIsClear()) {\n+\t\t\t\toneLine();\n+\t\t\t}\n+\t\t\tif (noBeepersPresent()) {\n+\t\t\t\tturnRight();\n+\t\t\t\tif (frontIsClear()) {\n+\t\t\t\t\tmove();\n+\t\t\t\t\tturnRight();\n+\t\t\t\t}\t\n+\t\t\t}\n+\t\t}\n+\t\tif (frontIsBlocked() && noBeepersPresent()) {\n+\t\t\tturnLeft();\n+\t\t\tif (frontIsClear()) {\n+\t\t\t\toneLine();\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\n+\n+\tprivate void oneLine() {\n+\t\twhile (frontIsClear()) {\n+\t\t\tmovingForward();\n+\t\t}\n+\n+\t\tif (frontIsBlocked()) {","path":"Assignment1/CheckerboardKarel.java","position":55,"original_position":55,"commit_id":"6e4da2ed7193ecc9236930e42b477c98898866c4","original_commit_id":"6e4da2ed7193ecc9236930e42b477c98898866c4","user":{"login":"echew7","id":5827338,"node_id":"MDQ6VXNlcjU4MjczMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5827338?v=4","gravatar_id":"","url":"https://api.github.com/users/echew7","html_url":"https://github.com/echew7","followers_url":"https://api.github.com/users/echew7/followers","following_url":"https://api.github.com/users/echew7/following{/other_user}","gists_url":"https://api.github.com/users/echew7/gists{/gist_id}","starred_url":"https://api.github.com/users/echew7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echew7/subscriptions","organizations_url":"https://api.github.com/users/echew7/orgs","repos_url":"https://api.github.com/users/echew7/repos","events_url":"https://api.github.com/users/echew7/events{/privacy}","received_events_url":"https://api.github.com/users/echew7/received_events","type":"User","site_admin":false},"body":"the front will always be blocked after this while loop ends (since the only way the while loop ends is if `frontIsClear()` returns false. therefore, this if statement check is redundant. you should only need the `turnAround()`","created_at":"2018-07-03T03:33:23Z","updated_at":"2018-07-03T03:33:23Z","html_url":"https://github.com/trvin51/CS106A/pull/2#discussion_r199675267","pull_request_url":"https://api.github.com/repos/trvin51/CS106A/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/comments/199675267"},"html":{"href":"https://github.com/trvin51/CS106A/pull/2#discussion_r199675267"},"pull_request":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/trvin51/CS106A/pulls/2","id":197893803,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3ODkzODAz","html_url":"https://github.com/trvin51/CS106A/pull/2","diff_url":"https://github.com/trvin51/CS106A/pull/2.diff","patch_url":"https://github.com/trvin51/CS106A/pull/2.patch","issue_url":"https://api.github.com/repos/trvin51/CS106A/issues/2","number":2,"state":"open","locked":false,"title":"Assignment 1","user":{"login":"trvin51","id":40647926,"node_id":"MDQ6VXNlcjQwNjQ3OTI2","avatar_url":"https://avatars1.githubusercontent.com/u/40647926?v=4","gravatar_id":"","url":"https://api.github.com/users/trvin51","html_url":"https://github.com/trvin51","followers_url":"https://api.github.com/users/trvin51/followers","following_url":"https://api.github.com/users/trvin51/following{/other_user}","gists_url":"https://api.github.com/users/trvin51/gists{/gist_id}","starred_url":"https://api.github.com/users/trvin51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trvin51/subscriptions","organizations_url":"https://api.github.com/users/trvin51/orgs","repos_url":"https://api.github.com/users/trvin51/repos","events_url":"https://api.github.com/users/trvin51/events{/privacy}","received_events_url":"https://api.github.com/users/trvin51/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-28T01:25:11Z","updated_at":"2018-07-03T03:33:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"echew7","id":5827338,"node_id":"MDQ6VXNlcjU4MjczMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5827338?v=4","gravatar_id":"","url":"https://api.github.com/users/echew7","html_url":"https://github.com/echew7","followers_url":"https://api.github.com/users/echew7/followers","following_url":"https://api.github.com/users/echew7/following{/other_user}","gists_url":"https://api.github.com/users/echew7/gists{/gist_id}","starred_url":"https://api.github.com/users/echew7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echew7/subscriptions","organizations_url":"https://api.github.com/users/echew7/orgs","repos_url":"https://api.github.com/users/echew7/repos","events_url":"https://api.github.com/users/echew7/events{/privacy}","received_events_url":"https://api.github.com/users/echew7/received_events","type":"User","site_admin":false},"assignees":[{"login":"echew7","id":5827338,"node_id":"MDQ6VXNlcjU4MjczMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/5827338?v=4","gravatar_id":"","url":"https://api.github.com/users/echew7","html_url":"https://github.com/echew7","followers_url":"https://api.github.com/users/echew7/followers","following_url":"https://api.github.com/users/echew7/following{/other_user}","gists_url":"https://api.github.com/users/echew7/gists{/gist_id}","starred_url":"https://api.github.com/users/echew7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echew7/subscriptions","organizations_url":"https://api.github.com/users/echew7/orgs","repos_url":"https://api.github.com/users/echew7/repos","events_url":"https://api.github.com/users/echew7/events{/privacy}","received_events_url":"https://api.github.com/users/echew7/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trvin51/CS106A/pulls/2/commits","review_comments_url":"https://api.github.com/repos/trvin51/CS106A/pulls/2/comments","review_comment_url":"https://api.github.com/repos/trvin51/CS106A/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trvin51/CS106A/issues/2/comments","statuses_url":"https://api.github.com/repos/trvin51/CS106A/statuses/6e4da2ed7193ecc9236930e42b477c98898866c4","head":{"label":"trvin51:assignment_1","ref":"assignment_1","sha":"6e4da2ed7193ecc9236930e42b477c98898866c4","user":{"login":"trvin51","id":40647926,"node_id":"MDQ6VXNlcjQwNjQ3OTI2","avatar_url":"https://avatars1.githubusercontent.com/u/40647926?v=4","gravatar_id":"","url":"https://api.github.com/users/trvin51","html_url":"https://github.com/trvin51","followers_url":"https://api.github.com/users/trvin51/followers","following_url":"https://api.github.com/users/trvin51/following{/other_user}","gists_url":"https://api.github.com/users/trvin51/gists{/gist_id}","starred_url":"https://api.github.com/users/trvin51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trvin51/subscriptions","organizations_url":"https://api.github.com/users/trvin51/orgs","repos_url":"https://api.github.com/users/trvin51/repos","events_url":"https://api.github.com/users/trvin51/events{/privacy}","received_events_url":"https://api.github.com/users/trvin51/received_events","type":"User","site_admin":false},"repo":{"id":138949031,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg5NDkwMzE=","name":"CS106A","full_name":"trvin51/CS106A","owner":{"login":"trvin51","id":40647926,"node_id":"MDQ6VXNlcjQwNjQ3OTI2","avatar_url":"https://avatars1.githubusercontent.com/u/40647926?v=4","gravatar_id":"","url":"https://api.github.com/users/trvin51","html_url":"https://github.com/trvin51","followers_url":"https://api.github.com/users/trvin51/followers","following_url":"https://api.github.com/users/trvin51/following{/other_user}","gists_url":"https://api.github.com/users/trvin51/gists{/gist_id}","starred_url":"https://api.github.com/users/trvin51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trvin51/subscriptions","organizations_url":"https://api.github.com/users/trvin51/orgs","repos_url":"https://api.github.com/users/trvin51/repos","events_url":"https://api.github.com/users/trvin51/events{/privacy}","received_events_url":"https://api.github.com/users/trvin51/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trvin51/CS106A","description":null,"fork":false,"url":"https://api.github.com/repos/trvin51/CS106A","forks_url":"https://api.github.com/repos/trvin51/CS106A/forks","keys_url":"https://api.github.com/repos/trvin51/CS106A/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trvin51/CS106A/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trvin51/CS106A/teams","hooks_url":"https://api.github.com/repos/trvin51/CS106A/hooks","issue_events_url":"https://api.github.com/repos/trvin51/CS106A/issues/events{/number}","events_url":"https://api.github.com/repos/trvin51/CS106A/events","assignees_url":"https://api.github.com/repos/trvin51/CS106A/assignees{/user}","branches_url":"https://api.github.com/repos/trvin51/CS106A/branches{/branch}","tags_url":"https://api.github.com/repos/trvin51/CS106A/tags","blobs_url":"https://api.github.com/repos/trvin51/CS106A/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trvin51/CS106A/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trvin51/CS106A/git/refs{/sha}","trees_url":"https://api.github.com/repos/trvin51/CS106A/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trvin51/CS106A/statuses/{sha}","languages_url":"https://api.github.com/repos/trvin51/CS106A/languages","stargazers_url":"https://api.github.com/repos/trvin51/CS106A/stargazers","contributors_url":"https://api.github.com/repos/trvin51/CS106A/contributors","subscribers_url":"https://api.github.com/repos/trvin51/CS106A/subscribers","subscription_url":"https://api.github.com/repos/trvin51/CS106A/subscription","commits_url":"https://api.github.com/repos/trvin51/CS106A/commits{/sha}","git_commits_url":"https://api.github.com/repos/trvin51/CS106A/git/commits{/sha}","comments_url":"https://api.github.com/repos/trvin51/CS106A/comments{/number}","issue_comment_url":"https://api.github.com/repos/trvin51/CS106A/issues/comments{/number}","contents_url":"https://api.github.com/repos/trvin51/CS106A/contents/{+path}","compare_url":"https://api.github.com/repos/trvin51/CS106A/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trvin51/CS106A/merges","archive_url":"https://api.github.com/repos/trvin51/CS106A/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trvin51/CS106A/downloads","issues_url":"https://api.github.com/repos/trvin51/CS106A/issues{/number}","pulls_url":"https://api.github.com/repos/trvin51/CS106A/pulls{/number}","milestones_url":"https://api.github.com/repos/trvin51/CS106A/milestones{/number}","notifications_url":"https://api.github.com/repos/trvin51/CS106A/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trvin51/CS106A/labels{/name}","releases_url":"https://api.github.com/repos/trvin51/CS106A/releases{/id}","deployments_url":"https://api.github.com/repos/trvin51/CS106A/deployments","created_at":"2018-06-28T01:02:59Z","updated_at":"2018-06-30T02:19:25Z","pushed_at":"2018-07-03T03:25:11Z","git_url":"git://github.com/trvin51/CS106A.git","ssh_url":"git@github.com:trvin51/CS106A.git","clone_url":"https://github.com/trvin51/CS106A.git","svn_url":"https://github.com/trvin51/CS106A","homepage":null,"size":979,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"trvin51:master","ref":"master","sha":"3dae0f22f908802256377f9ba1ab0ea8a5c4ffd8","user":{"login":"trvin51","id":40647926,"node_id":"MDQ6VXNlcjQwNjQ3OTI2","avatar_url":"https://avatars1.githubusercontent.com/u/40647926?v=4","gravatar_id":"","url":"https://api.github.com/users/trvin51","html_url":"https://github.com/trvin51","followers_url":"https://api.github.com/users/trvin51/followers","following_url":"https://api.github.com/users/trvin51/following{/other_user}","gists_url":"https://api.github.com/users/trvin51/gists{/gist_id}","starred_url":"https://api.github.com/users/trvin51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trvin51/subscriptions","organizations_url":"https://api.github.com/users/trvin51/orgs","repos_url":"https://api.github.com/users/trvin51/repos","events_url":"https://api.github.com/users/trvin51/events{/privacy}","received_events_url":"https://api.github.com/users/trvin51/received_events","type":"User","site_admin":false},"repo":{"id":138949031,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg5NDkwMzE=","name":"CS106A","full_name":"trvin51/CS106A","owner":{"login":"trvin51","id":40647926,"node_id":"MDQ6VXNlcjQwNjQ3OTI2","avatar_url":"https://avatars1.githubusercontent.com/u/40647926?v=4","gravatar_id":"","url":"https://api.github.com/users/trvin51","html_url":"https://github.com/trvin51","followers_url":"https://api.github.com/users/trvin51/followers","following_url":"https://api.github.com/users/trvin51/following{/other_user}","gists_url":"https://api.github.com/users/trvin51/gists{/gist_id}","starred_url":"https://api.github.com/users/trvin51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trvin51/subscriptions","organizations_url":"https://api.github.com/users/trvin51/orgs","repos_url":"https://api.github.com/users/trvin51/repos","events_url":"https://api.github.com/users/trvin51/events{/privacy}","received_events_url":"https://api.github.com/users/trvin51/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trvin51/CS106A","description":null,"fork":false,"url":"https://api.github.com/repos/trvin51/CS106A","forks_url":"https://api.github.com/repos/trvin51/CS106A/forks","keys_url":"https://api.github.com/repos/trvin51/CS106A/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trvin51/CS106A/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trvin51/CS106A/teams","hooks_url":"https://api.github.com/repos/trvin51/CS106A/hooks","issue_events_url":"https://api.github.com/repos/trvin51/CS106A/issues/events{/number}","events_url":"https://api.github.com/repos/trvin51/CS106A/events","assignees_url":"https://api.github.com/repos/trvin51/CS106A/assignees{/user}","branches_url":"https://api.github.com/repos/trvin51/CS106A/branches{/branch}","tags_url":"https://api.github.com/repos/trvin51/CS106A/tags","blobs_url":"https://api.github.com/repos/trvin51/CS106A/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trvin51/CS106A/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trvin51/CS106A/git/refs{/sha}","trees_url":"https://api.github.com/repos/trvin51/CS106A/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trvin51/CS106A/statuses/{sha}","languages_url":"https://api.github.com/repos/trvin51/CS106A/languages","stargazers_url":"https://api.github.com/repos/trvin51/CS106A/stargazers","contributors_url":"https://api.github.com/repos/trvin51/CS106A/contributors","subscribers_url":"https://api.github.com/repos/trvin51/CS106A/subscribers","subscription_url":"https://api.github.com/repos/trvin51/CS106A/subscription","commits_url":"https://api.github.com/repos/trvin51/CS106A/commits{/sha}","git_commits_url":"https://api.github.com/repos/trvin51/CS106A/git/commits{/sha}","comments_url":"https://api.github.com/repos/trvin51/CS106A/comments{/number}","issue_comment_url":"https://api.github.com/repos/trvin51/CS106A/issues/comments{/number}","contents_url":"https://api.github.com/repos/trvin51/CS106A/contents/{+path}","compare_url":"https://api.github.com/repos/trvin51/CS106A/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trvin51/CS106A/merges","archive_url":"https://api.github.com/repos/trvin51/CS106A/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trvin51/CS106A/downloads","issues_url":"https://api.github.com/repos/trvin51/CS106A/issues{/number}","pulls_url":"https://api.github.com/repos/trvin51/CS106A/pulls{/number}","milestones_url":"https://api.github.com/repos/trvin51/CS106A/milestones{/number}","notifications_url":"https://api.github.com/repos/trvin51/CS106A/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trvin51/CS106A/labels{/name}","releases_url":"https://api.github.com/repos/trvin51/CS106A/releases{/id}","deployments_url":"https://api.github.com/repos/trvin51/CS106A/deployments","created_at":"2018-06-28T01:02:59Z","updated_at":"2018-06-30T02:19:25Z","pushed_at":"2018-07-03T03:25:11Z","git_url":"git://github.com/trvin51/CS106A.git","ssh_url":"git@github.com:trvin51/CS106A.git","clone_url":"https://github.com/trvin51/CS106A.git","svn_url":"https://github.com/trvin51/CS106A","homepage":null,"size":979,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/2"},"html":{"href":"https://github.com/trvin51/CS106A/pull/2"},"issue":{"href":"https://api.github.com/repos/trvin51/CS106A/issues/2"},"comments":{"href":"https://api.github.com/repos/trvin51/CS106A/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trvin51/CS106A/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/trvin51/CS106A/statuses/6e4da2ed7193ecc9236930e42b477c98898866c4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"echew7"}}