{"action":"created","comment":{"url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/comments/188060267","pull_request_review_id":119963746,"id":188060267,"diff_hunk":"@@ -13,29 +13,68 @@ let stacks = {\n   c: []\n };\n \n+/*\n+- a, b, c are the stacks/columns that the blocks go on\n+- the numbers 1, 2, 3, 4 are the blocks, with 1 being the smallest block and 4 being the largest\n+- use .push to add something to the end\n+- use .pop to remove what's on the end of the stack\n+- check to see if the last number on the stack is smaller than the numbers before it\n+*/\n+\n function printStacks() {\n   console.log(\"a: \" + stacks.a);\n   console.log(\"b: \" + stacks.b);\n   console.log(\"c: \" + stacks.c);\n }\n \n function movePiece() {\n-  // Your code here\n-\n+  // when one stack is clicked, remove the last block on it\n+  // add that removed block to the next column the user clicks\n+  let strClickedPiece = stacks.a.pop();\n+  if (stacks.b[stacks.b.length - 1] > strClickedPiece) { // to check if the last block present is bigger than the one being appended\n+    let stacks.b = stacks.b.push(strClickedPiece);","path":"03week/towersOfHanoi.js","position":25,"original_position":25,"commit_id":"91f4ccaba7630082ebb99d75be380d9d226fc9c4","original_commit_id":"91f4ccaba7630082ebb99d75be380d9d226fc9c4","user":{"login":"reneedudley","id":12837355,"avatar_url":"https://avatars0.githubusercontent.com/u/12837355?v=4","gravatar_id":"","url":"https://api.github.com/users/reneedudley","html_url":"https://github.com/reneedudley","followers_url":"https://api.github.com/users/reneedudley/followers","following_url":"https://api.github.com/users/reneedudley/following{/other_user}","gists_url":"https://api.github.com/users/reneedudley/gists{/gist_id}","starred_url":"https://api.github.com/users/reneedudley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneedudley/subscriptions","organizations_url":"https://api.github.com/users/reneedudley/orgs","repos_url":"https://api.github.com/users/reneedudley/repos","events_url":"https://api.github.com/users/reneedudley/events{/privacy}","received_events_url":"https://api.github.com/users/reneedudley/received_events","type":"User","site_admin":false},"body":"should be const","created_at":"2018-05-14T18:52:59Z","updated_at":"2018-05-14T18:56:34Z","html_url":"https://github.com/ATan512/javascript-workbook/pull/6#discussion_r188060267","pull_request_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/comments/188060267"},"html":{"href":"https://github.com/ATan512/javascript-workbook/pull/6#discussion_r188060267"},"pull_request":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6","id":186769075,"html_url":"https://github.com/ATan512/javascript-workbook/pull/6","diff_url":"https://github.com/ATan512/javascript-workbook/pull/6.diff","patch_url":"https://github.com/ATan512/javascript-workbook/pull/6.patch","issue_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/6","number":6,"state":"open","locked":false,"title":"Check point1","user":{"login":"ATan512","id":35517079,"avatar_url":"https://avatars1.githubusercontent.com/u/35517079?v=4","gravatar_id":"","url":"https://api.github.com/users/ATan512","html_url":"https://github.com/ATan512","followers_url":"https://api.github.com/users/ATan512/followers","following_url":"https://api.github.com/users/ATan512/following{/other_user}","gists_url":"https://api.github.com/users/ATan512/gists{/gist_id}","starred_url":"https://api.github.com/users/ATan512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATan512/subscriptions","organizations_url":"https://api.github.com/users/ATan512/orgs","repos_url":"https://api.github.com/users/ATan512/repos","events_url":"https://api.github.com/users/ATan512/events{/privacy}","received_events_url":"https://api.github.com/users/ATan512/received_events","type":"User","site_admin":false},"body":"## Checkpoint Rubric\r\nThis is the rubric that your instructor will use to grade your checkpoints. Please do not edit. \r\n\r\n**Checkpoint 1**\r\n- [ ] All tests passed: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript: 30 points\r\n\r\n**Checkpoint 2**\r\n- [ ] The application works as it should: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript and the DOM API: 30 points\r\n\r\n**Checkpoint 3**\r\n- [ ] Use of React: 25 points\r\n- [ ] Accesses an API: 25 points\r\n- [ ] Proper use of documentation (commenting on code): 25 points\r\n- [ ] The application functions as it should: 25 points\r\n","created_at":"2018-05-08T22:07:46Z","updated_at":"2018-05-14T18:56:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18a4b74537a640a045b9811f6abd9b3cb1372f3d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/6/comments","statuses_url":"https://api.github.com/repos/ATan512/javascript-workbook/statuses/91f4ccaba7630082ebb99d75be380d9d226fc9c4","head":{"label":"ATan512:checkPoint1","ref":"checkPoint1","sha":"91f4ccaba7630082ebb99d75be380d9d226fc9c4","user":{"login":"ATan512","id":35517079,"avatar_url":"https://avatars1.githubusercontent.com/u/35517079?v=4","gravatar_id":"","url":"https://api.github.com/users/ATan512","html_url":"https://github.com/ATan512","followers_url":"https://api.github.com/users/ATan512/followers","following_url":"https://api.github.com/users/ATan512/following{/other_user}","gists_url":"https://api.github.com/users/ATan512/gists{/gist_id}","starred_url":"https://api.github.com/users/ATan512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATan512/subscriptions","organizations_url":"https://api.github.com/users/ATan512/orgs","repos_url":"https://api.github.com/users/ATan512/repos","events_url":"https://api.github.com/users/ATan512/events{/privacy}","received_events_url":"https://api.github.com/users/ATan512/received_events","type":"User","site_admin":false},"repo":{"id":130147714,"name":"javascript-workbook","full_name":"ATan512/javascript-workbook","owner":{"login":"ATan512","id":35517079,"avatar_url":"https://avatars1.githubusercontent.com/u/35517079?v=4","gravatar_id":"","url":"https://api.github.com/users/ATan512","html_url":"https://github.com/ATan512","followers_url":"https://api.github.com/users/ATan512/followers","following_url":"https://api.github.com/users/ATan512/following{/other_user}","gists_url":"https://api.github.com/users/ATan512/gists{/gist_id}","starred_url":"https://api.github.com/users/ATan512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATan512/subscriptions","organizations_url":"https://api.github.com/users/ATan512/orgs","repos_url":"https://api.github.com/users/ATan512/repos","events_url":"https://api.github.com/users/ATan512/events{/privacy}","received_events_url":"https://api.github.com/users/ATan512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ATan512/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/ATan512/javascript-workbook","forks_url":"https://api.github.com/repos/ATan512/javascript-workbook/forks","keys_url":"https://api.github.com/repos/ATan512/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ATan512/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ATan512/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/ATan512/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/ATan512/javascript-workbook/events","assignees_url":"https://api.github.com/repos/ATan512/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/ATan512/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/ATan512/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ATan512/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/ATan512/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/ATan512/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/ATan512/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/ATan512/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/ATan512/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/ATan512/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/ATan512/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/ATan512/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/ATan512/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ATan512/javascript-workbook/merges","archive_url":"https://api.github.com/repos/ATan512/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ATan512/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/ATan512/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/ATan512/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ATan512/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/ATan512/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/ATan512/javascript-workbook/deployments","created_at":"2018-04-19T02:26:41Z","updated_at":"2018-05-04T01:23:20Z","pushed_at":"2018-05-08T22:07:46Z","git_url":"git://github.com/ATan512/javascript-workbook.git","ssh_url":"git@github.com:ATan512/javascript-workbook.git","clone_url":"https://github.com/ATan512/javascript-workbook.git","svn_url":"https://github.com/ATan512/javascript-workbook","homepage":"","size":398,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"ATan512:gh-pages","ref":"gh-pages","sha":"643d9fadeb3e8a5f204616cd58f348f0dec1f4a7","user":{"login":"ATan512","id":35517079,"avatar_url":"https://avatars1.githubusercontent.com/u/35517079?v=4","gravatar_id":"","url":"https://api.github.com/users/ATan512","html_url":"https://github.com/ATan512","followers_url":"https://api.github.com/users/ATan512/followers","following_url":"https://api.github.com/users/ATan512/following{/other_user}","gists_url":"https://api.github.com/users/ATan512/gists{/gist_id}","starred_url":"https://api.github.com/users/ATan512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATan512/subscriptions","organizations_url":"https://api.github.com/users/ATan512/orgs","repos_url":"https://api.github.com/users/ATan512/repos","events_url":"https://api.github.com/users/ATan512/events{/privacy}","received_events_url":"https://api.github.com/users/ATan512/received_events","type":"User","site_admin":false},"repo":{"id":130147714,"name":"javascript-workbook","full_name":"ATan512/javascript-workbook","owner":{"login":"ATan512","id":35517079,"avatar_url":"https://avatars1.githubusercontent.com/u/35517079?v=4","gravatar_id":"","url":"https://api.github.com/users/ATan512","html_url":"https://github.com/ATan512","followers_url":"https://api.github.com/users/ATan512/followers","following_url":"https://api.github.com/users/ATan512/following{/other_user}","gists_url":"https://api.github.com/users/ATan512/gists{/gist_id}","starred_url":"https://api.github.com/users/ATan512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATan512/subscriptions","organizations_url":"https://api.github.com/users/ATan512/orgs","repos_url":"https://api.github.com/users/ATan512/repos","events_url":"https://api.github.com/users/ATan512/events{/privacy}","received_events_url":"https://api.github.com/users/ATan512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ATan512/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/ATan512/javascript-workbook","forks_url":"https://api.github.com/repos/ATan512/javascript-workbook/forks","keys_url":"https://api.github.com/repos/ATan512/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ATan512/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ATan512/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/ATan512/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/ATan512/javascript-workbook/events","assignees_url":"https://api.github.com/repos/ATan512/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/ATan512/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/ATan512/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ATan512/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/ATan512/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/ATan512/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/ATan512/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/ATan512/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/ATan512/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/ATan512/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/ATan512/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/ATan512/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/ATan512/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/ATan512/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ATan512/javascript-workbook/merges","archive_url":"https://api.github.com/repos/ATan512/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ATan512/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/ATan512/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/ATan512/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/ATan512/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/ATan512/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ATan512/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/ATan512/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/ATan512/javascript-workbook/deployments","created_at":"2018-04-19T02:26:41Z","updated_at":"2018-05-04T01:23:20Z","pushed_at":"2018-05-08T22:07:46Z","git_url":"git://github.com/ATan512/javascript-workbook.git","ssh_url":"git@github.com:ATan512/javascript-workbook.git","clone_url":"https://github.com/ATan512/javascript-workbook.git","svn_url":"https://github.com/ATan512/javascript-workbook","homepage":"","size":398,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6"},"html":{"href":"https://github.com/ATan512/javascript-workbook/pull/6"},"issue":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/issues/6"},"comments":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ATan512/javascript-workbook/statuses/91f4ccaba7630082ebb99d75be380d9d226fc9c4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"reneedudley"}}