{"action":"created","comment":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/76111498","id":76111498,"diff_hunk":"@@ -16,23 +26,85 @@ function printStacks() {\n     console.log(\"c: \" + stacks.c);\n }\n \n-function movePiece() {\n+\n+\n+// Instructions for Spec 1\n+// below is our function declaration, or function statement\n+// function statements should contain:\n+//\n+//\n+// 1. the name of the function  (we already have this)\n+// 2. arguments in parentheses seperated by commas (we are given these, startStack and endStack)\n+// 3. javascript statements that define the function enclosed in curly brackets(we are told to startStack.push() and endStack.pull())\n+//\n+//\n+// After we define our function we then need to call this function from another function towersOfHanoi()\n+// End Spec 1\n+\n+\n+function movePiece(startStack, endStack) {\n     // Your code here\n \n+    // startStack.pop();\n+    // stacks[startStack].pop()\n+    var stackPiece = stacks[startStack].pop();\n+    stacks[endStack].push(stackPiece);\n+\n }\n \n-function isLegal() {\n-    // Your code here\n \n+// Instructions for Spec 2\n+// 1. the function isLegal() takes two arguments, startStack and endStack\n+// 2. It should check to see if the block(stackPiece) being moved,\n+// from startStack is smaller (less than operator) than the last the block in endStack\n+// 3. return true if it is allowed\n+// 4. return false if it is not\n+// 5. if endStack has no block any block can be moved there (if endStack is empty the move is legal)\n+//\n+//\n+//\n+\n+// what is a legal move?\n+// if something exists in start stack and nothing exits in endStack then the\n+\n+function isLegal(startStack, endStack) {\n+    // Your code here\n+    var startStackArray = stacks[startStack];\n+    var endStackArray   = stacks[endStack];\n+\n+    if (startStackArray.length === 0) {\n+      return false;","path":"apps/04TowersOfHanoi.js","position":71,"original_position":71,"commit_id":"8e2e7eaee9fe2c7515a73fd8d2b29a0b2a08cecc","original_commit_id":"8ec21315f9416ea4230953770541c5eefdd65993","user":{"login":"maddiesolz","id":2287075,"avatar_url":"https://avatars.githubusercontent.com/u/2287075?v=3","gravatar_id":"","url":"https://api.github.com/users/maddiesolz","html_url":"https://github.com/maddiesolz","followers_url":"https://api.github.com/users/maddiesolz/followers","following_url":"https://api.github.com/users/maddiesolz/following{/other_user}","gists_url":"https://api.github.com/users/maddiesolz/gists{/gist_id}","starred_url":"https://api.github.com/users/maddiesolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddiesolz/subscriptions","organizations_url":"https://api.github.com/users/maddiesolz/orgs","repos_url":"https://api.github.com/users/maddiesolz/repos","events_url":"https://api.github.com/users/maddiesolz/events{/privacy}","received_events_url":"https://api.github.com/users/maddiesolz/received_events","type":"User","site_admin":false},"body":"This is good! If i am trying to move from b to c which are both empty, this would stop me from breaking the program","created_at":"2016-08-24T18:23:53Z","updated_at":"2016-08-24T18:23:53Z","html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54#discussion_r76111498","pull_request_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/76111498"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54#discussion_r76111498"},"pull_request":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54","id":78777853,"html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54","diff_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54.diff","patch_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54.patch","issue_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/54","number":54,"state":"open","locked":false,"title":"austin.intermediate.summer2.hagman.manny","user":{"login":"MannyHagman","id":7909800,"avatar_url":"https://avatars.githubusercontent.com/u/7909800?v=3","gravatar_id":"","url":"https://api.github.com/users/MannyHagman","html_url":"https://github.com/MannyHagman","followers_url":"https://api.github.com/users/MannyHagman/followers","following_url":"https://api.github.com/users/MannyHagman/following{/other_user}","gists_url":"https://api.github.com/users/MannyHagman/gists{/gist_id}","starred_url":"https://api.github.com/users/MannyHagman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MannyHagman/subscriptions","organizations_url":"https://api.github.com/users/MannyHagman/orgs","repos_url":"https://api.github.com/users/MannyHagman/repos","events_url":"https://api.github.com/users/MannyHagman/events{/privacy}","received_events_url":"https://api.github.com/users/MannyHagman/received_events","type":"User","site_admin":false},"body":"First Commit","created_at":"2016-07-26T01:17:54Z","updated_at":"2016-08-24T18:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60e22a5d56c0db90bcc19fe0cad371a0add7dafe","assignee":{"login":"paulrenenichols","id":2683933,"avatar_url":"https://avatars.githubusercontent.com/u/2683933?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrenenichols","html_url":"https://github.com/paulrenenichols","followers_url":"https://api.github.com/users/paulrenenichols/followers","following_url":"https://api.github.com/users/paulrenenichols/following{/other_user}","gists_url":"https://api.github.com/users/paulrenenichols/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrenenichols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrenenichols/subscriptions","organizations_url":"https://api.github.com/users/paulrenenichols/orgs","repos_url":"https://api.github.com/users/paulrenenichols/repos","events_url":"https://api.github.com/users/paulrenenichols/events{/privacy}","received_events_url":"https://api.github.com/users/paulrenenichols/received_events","type":"User","site_admin":false},"assignees":[{"login":"maddiesolz","id":2287075,"avatar_url":"https://avatars.githubusercontent.com/u/2287075?v=3","gravatar_id":"","url":"https://api.github.com/users/maddiesolz","html_url":"https://github.com/maddiesolz","followers_url":"https://api.github.com/users/maddiesolz/followers","following_url":"https://api.github.com/users/maddiesolz/following{/other_user}","gists_url":"https://api.github.com/users/maddiesolz/gists{/gist_id}","starred_url":"https://api.github.com/users/maddiesolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maddiesolz/subscriptions","organizations_url":"https://api.github.com/users/maddiesolz/orgs","repos_url":"https://api.github.com/users/maddiesolz/repos","events_url":"https://api.github.com/users/maddiesolz/events{/privacy}","received_events_url":"https://api.github.com/users/maddiesolz/received_events","type":"User","site_admin":false},{"login":"paulrenenichols","id":2683933,"avatar_url":"https://avatars.githubusercontent.com/u/2683933?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrenenichols","html_url":"https://github.com/paulrenenichols","followers_url":"https://api.github.com/users/paulrenenichols/followers","following_url":"https://api.github.com/users/paulrenenichols/following{/other_user}","gists_url":"https://api.github.com/users/paulrenenichols/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrenenichols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrenenichols/subscriptions","organizations_url":"https://api.github.com/users/paulrenenichols/orgs","repos_url":"https://api.github.com/users/paulrenenichols/repos","events_url":"https://api.github.com/users/paulrenenichols/events{/privacy}","received_events_url":"https://api.github.com/users/paulrenenichols/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54/commits","review_comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54/comments","review_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/54/comments","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/8e2e7eaee9fe2c7515a73fd8d2b29a0b2a08cecc","head":{"label":"MannyHagman:gh-pages","ref":"gh-pages","sha":"8e2e7eaee9fe2c7515a73fd8d2b29a0b2a08cecc","user":{"login":"MannyHagman","id":7909800,"avatar_url":"https://avatars.githubusercontent.com/u/7909800?v=3","gravatar_id":"","url":"https://api.github.com/users/MannyHagman","html_url":"https://github.com/MannyHagman","followers_url":"https://api.github.com/users/MannyHagman/followers","following_url":"https://api.github.com/users/MannyHagman/following{/other_user}","gists_url":"https://api.github.com/users/MannyHagman/gists{/gist_id}","starred_url":"https://api.github.com/users/MannyHagman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MannyHagman/subscriptions","organizations_url":"https://api.github.com/users/MannyHagman/orgs","repos_url":"https://api.github.com/users/MannyHagman/repos","events_url":"https://api.github.com/users/MannyHagman/events{/privacy}","received_events_url":"https://api.github.com/users/MannyHagman/received_events","type":"User","site_admin":false},"repo":{"id":64040583,"name":"intermediate-workbook","full_name":"MannyHagman/intermediate-workbook","owner":{"login":"MannyHagman","id":7909800,"avatar_url":"https://avatars.githubusercontent.com/u/7909800?v=3","gravatar_id":"","url":"https://api.github.com/users/MannyHagman","html_url":"https://github.com/MannyHagman","followers_url":"https://api.github.com/users/MannyHagman/followers","following_url":"https://api.github.com/users/MannyHagman/following{/other_user}","gists_url":"https://api.github.com/users/MannyHagman/gists{/gist_id}","starred_url":"https://api.github.com/users/MannyHagman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MannyHagman/subscriptions","organizations_url":"https://api.github.com/users/MannyHagman/orgs","repos_url":"https://api.github.com/users/MannyHagman/repos","events_url":"https://api.github.com/users/MannyHagman/events{/privacy}","received_events_url":"https://api.github.com/users/MannyHagman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MannyHagman/intermediate-workbook","description":"Austin Coding Academy - Frontend Intermediate Workbook","fork":true,"url":"https://api.github.com/repos/MannyHagman/intermediate-workbook","forks_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/MannyHagman/intermediate-workbook/deployments","created_at":"2016-07-23T23:46:15Z","updated_at":"2016-07-27T18:39:09Z","pushed_at":"2016-08-22T19:06:24Z","git_url":"git://github.com/MannyHagman/intermediate-workbook.git","ssh_url":"git@github.com:MannyHagman/intermediate-workbook.git","clone_url":"https://github.com/MannyHagman/intermediate-workbook.git","svn_url":"https://github.com/MannyHagman/intermediate-workbook","homepage":"http://austincodingacademy.github.io/frontend-intermediate-workbook","size":115,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"gh-pages"}},"base":{"label":"AustinCodingAcademy:gh-pages","ref":"gh-pages","sha":"5fd7c4783840b2f82b326e978f25978a9bd2d308","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":"intermediate-workbook","full_name":"AustinCodingAcademy/intermediate-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/intermediate-workbook","description":"Austin Coding Academy - Frontend Intermediate Workbook","fork":false,"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook","forks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/deployments","created_at":"2015-11-05T04:24:51Z","updated_at":"2016-08-15T20:37:05Z","pushed_at":"2016-08-24T18:12:52Z","git_url":"git://github.com/AustinCodingAcademy/intermediate-workbook.git","ssh_url":"git@github.com:AustinCodingAcademy/intermediate-workbook.git","clone_url":"https://github.com/AustinCodingAcademy/intermediate-workbook.git","svn_url":"https://github.com/AustinCodingAcademy/intermediate-workbook","homepage":"http://austincodingacademy.github.io/frontend-intermediate-workbook","size":19248,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":59,"mirror_url":null,"open_issues_count":26,"forks":59,"open_issues":26,"watchers":4,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54"},"issue":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/54"},"comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/8e2e7eaee9fe2c7515a73fd8d2b29a0b2a08cecc"}}}}
{"actor":{"display_login":"maddiesolz"}}