{"action":"created","comment":{"url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/comments/101111280","pull_request_review_id":21831472,"id":101111280,"diff_hunk":"@@ -7,36 +7,79 @@ var rl = readline.createInterface({\n   output: process.stdout\n });\n \n+\n var stacks = {\n   a: [4, 3, 2, 1],\n   b: [],\n   c: []\n };\n \n+var moves = 1;\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+function movePiece(startStack, endStack) {\n+  //Take peice \n+  var piece = stacks[startStack].pop();\n+  //Place piece\n+  stacks[endStack].push(piece);\n+  \n+  \n+  \n }\n \n-function isLegal() {\n-  // Your code here\n-\n+function isLegal(startStack, endStack) {\n+  var startPiece = (stacks[startStack][(stacks[startStack].length-1)]);\n+  var endPiece = (stacks[endStack][(stacks[endStack].length-1)]);\n+ // if array is empty it will return undefined\n+   if  (endPiece === undefined) {","path":"apps/04TowersOfHanoi.js","position":39,"original_position":39,"commit_id":"fef121ec78e0f76e9e929b201f0985f0f9bf5f25","original_commit_id":"fef121ec78e0f76e9e929b201f0985f0f9bf5f25","user":{"login":"jw56578","id":1421084,"avatar_url":"https://avatars.githubusercontent.com/u/1421084?v=3","gravatar_id":"","url":"https://api.github.com/users/jw56578","html_url":"https://github.com/jw56578","followers_url":"https://api.github.com/users/jw56578/followers","following_url":"https://api.github.com/users/jw56578/following{/other_user}","gists_url":"https://api.github.com/users/jw56578/gists{/gist_id}","starred_url":"https://api.github.com/users/jw56578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jw56578/subscriptions","organizations_url":"https://api.github.com/users/jw56578/orgs","repos_url":"https://api.github.com/users/jw56578/repos","events_url":"https://api.github.com/users/jw56578/events{/privacy}","received_events_url":"https://api.github.com/users/jw56578/received_events","type":"User","site_admin":false},"body":"We need to stay in the mindset of being detail oriented.  Make sure all code within one level of curly braces is all aligned.","created_at":"2017-02-14T18:49:00Z","updated_at":"2017-02-14T18:49:00Z","html_url":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154#discussion_r101111280","pull_request_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/comments/101111280"},"html":{"href":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154#discussion_r101111280"},"pull_request":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154","id":101786025,"html_url":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154","diff_url":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154.diff","patch_url":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154.patch","issue_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/154","number":154,"state":"open","locked":false,"title":"intermediate.ATX.2017Q1.Scott.Foster","user":{"login":"saf0911","id":17575653,"avatar_url":"https://avatars.githubusercontent.com/u/17575653?v=3","gravatar_id":"","url":"https://api.github.com/users/saf0911","html_url":"https://github.com/saf0911","followers_url":"https://api.github.com/users/saf0911/followers","following_url":"https://api.github.com/users/saf0911/following{/other_user}","gists_url":"https://api.github.com/users/saf0911/gists{/gist_id}","starred_url":"https://api.github.com/users/saf0911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saf0911/subscriptions","organizations_url":"https://api.github.com/users/saf0911/orgs","repos_url":"https://api.github.com/users/saf0911/repos","events_url":"https://api.github.com/users/saf0911/events{/privacy}","received_events_url":"https://api.github.com/users/saf0911/received_events","type":"User","site_admin":false},"body":"# Checkpoint Rubric\r\n\r\nThis is the rubric that your instructor will use to grade your checkpoints. Please do not edit. \r\n\r\n## Checkpoint 1: Towers of Hanoi Terminal App\r\n- [x] All tests passed: 55 points\r\n- [x] Properly commented code: 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [x] Demonstrated effective use of JavaScript: 15 points\r\n\r\nSpecific Comments:\r\n\r\n*Comments may also be made on the file itself using github's commenting tools.*\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Checkpoint 2: Towers of Hanoi GUI App\r\n- [ ] All tests passed: 55 points\r\n- [ ] Properly commented code: 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of jQuery: 15 points\r\n\r\nSpecific Comments:\r\n\r\n*Comments may also be made on the file itself using github's commenting tools.*\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Checkpoint 3: Final Project Gist Blog\r\n- [ ] Effective use of AJAX: 20 points\r\n- [ ] Effective use of loops: 20 points\r\n- [ ] Effective use of github API: 20 points\r\n- [ ] Style and design: 10 points\r\n- [ ] Properly commented code: 15 points\r\n- [ ] Properly indented code: 15 points\r\n\r\nSpecific Comments:\r\n\r\n*Comments may also be made on the file itself using github's commenting tools.*\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2017-01-17T02:13:31Z","updated_at":"2017-02-14T18:49:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a940af0bce99ae9bd6156181b78200ea74e2140","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154/commits","review_comments_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154/comments","review_comment_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/154/comments","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/statuses/fef121ec78e0f76e9e929b201f0985f0f9bf5f25","head":{"label":"saf0911:gh-pages","ref":"gh-pages","sha":"fef121ec78e0f76e9e929b201f0985f0f9bf5f25","user":{"login":"saf0911","id":17575653,"avatar_url":"https://avatars.githubusercontent.com/u/17575653?v=3","gravatar_id":"","url":"https://api.github.com/users/saf0911","html_url":"https://github.com/saf0911","followers_url":"https://api.github.com/users/saf0911/followers","following_url":"https://api.github.com/users/saf0911/following{/other_user}","gists_url":"https://api.github.com/users/saf0911/gists{/gist_id}","starred_url":"https://api.github.com/users/saf0911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saf0911/subscriptions","organizations_url":"https://api.github.com/users/saf0911/orgs","repos_url":"https://api.github.com/users/saf0911/repos","events_url":"https://api.github.com/users/saf0911/events{/privacy}","received_events_url":"https://api.github.com/users/saf0911/received_events","type":"User","site_admin":false},"repo":{"id":79175101,"name":"javascript-workbook","full_name":"saf0911/javascript-workbook","owner":{"login":"saf0911","id":17575653,"avatar_url":"https://avatars.githubusercontent.com/u/17575653?v=3","gravatar_id":"","url":"https://api.github.com/users/saf0911","html_url":"https://github.com/saf0911","followers_url":"https://api.github.com/users/saf0911/followers","following_url":"https://api.github.com/users/saf0911/following{/other_user}","gists_url":"https://api.github.com/users/saf0911/gists{/gist_id}","starred_url":"https://api.github.com/users/saf0911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saf0911/subscriptions","organizations_url":"https://api.github.com/users/saf0911/orgs","repos_url":"https://api.github.com/users/saf0911/repos","events_url":"https://api.github.com/users/saf0911/events{/privacy}","received_events_url":"https://api.github.com/users/saf0911/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saf0911/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/saf0911/javascript-workbook","forks_url":"https://api.github.com/repos/saf0911/javascript-workbook/forks","keys_url":"https://api.github.com/repos/saf0911/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saf0911/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saf0911/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/saf0911/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/saf0911/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/saf0911/javascript-workbook/events","assignees_url":"https://api.github.com/repos/saf0911/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/saf0911/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/saf0911/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/saf0911/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saf0911/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saf0911/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/saf0911/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saf0911/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/saf0911/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/saf0911/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/saf0911/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/saf0911/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/saf0911/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/saf0911/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/saf0911/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/saf0911/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/saf0911/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/saf0911/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/saf0911/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saf0911/javascript-workbook/merges","archive_url":"https://api.github.com/repos/saf0911/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saf0911/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/saf0911/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/saf0911/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/saf0911/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/saf0911/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saf0911/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/saf0911/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/saf0911/javascript-workbook/deployments","created_at":"2017-01-17T01:21:02Z","updated_at":"2017-01-17T01:21:05Z","pushed_at":"2017-02-14T01:44:33Z","git_url":"git://github.com/saf0911/javascript-workbook.git","ssh_url":"git@github.com:saf0911/javascript-workbook.git","clone_url":"https://github.com/saf0911/javascript-workbook.git","svn_url":"https://github.com/saf0911/javascript-workbook","homepage":"","size":291,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"AustinCodingAcademy:gh-pages","ref":"gh-pages","sha":"6ff6d7533a758568c1e9f2e91de0db18ef3a0d85","user":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":45587428,"name":"javascript-workbook","full_name":"AustinCodingAcademy/javascript-workbook","owner":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AustinCodingAcademy/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":false,"url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook","forks_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/forks","keys_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/events","assignees_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/merges","archive_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/deployments","created_at":"2015-11-05T04:24:51Z","updated_at":"2017-01-24T02:47:40Z","pushed_at":"2017-02-14T18:33:31Z","git_url":"git://github.com/AustinCodingAcademy/javascript-workbook.git","ssh_url":"git@github.com:AustinCodingAcademy/javascript-workbook.git","clone_url":"https://github.com/AustinCodingAcademy/javascript-workbook.git","svn_url":"https://github.com/AustinCodingAcademy/javascript-workbook","homepage":"","size":275,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":129,"mirror_url":null,"open_issues_count":36,"forks":129,"open_issues":36,"watchers":5,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154"},"html":{"href":"https://github.com/AustinCodingAcademy/javascript-workbook/pull/154"},"issue":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/154"},"comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/AustinCodingAcademy/javascript-workbook/statuses/fef121ec78e0f76e9e929b201f0985f0f9bf5f25"}}}}
{"actor":{"display_login":"jw56578"}}