{"action":"created","comment":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/77445221","id":77445221,"diff_hunk":"@@ -9,29 +9,119 @@ var board = [];\n var solution = '';\n var letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'];\n \n+\n+\n+\n function printBoard() {\n     for (var i = 0; i < board.length; i++) {\n         console.log(board[i])\n     }\n }\n \n+\n+\n function generateSolution() {\n     for (var i = 0; i < 4; i++) {\n         var randomIndex = getRandomInt(0, letters.length);\n         solution += letters[randomIndex];\n     }\n }\n \n+\n function getRandomInt(min, max) {\n   return Math.floor(Math.random() * (max - min)) + min;\n }\n \n-function generateHint() {\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+\n+function generateHint(solution, guess) {\n     // your code here\n+    // generateHint() is a function that is created to do exactly\n+    // what it says it will do, generate a hint.\n+    // spec 2 is broken down into several parts\n+    //\n+    // the first thing we know is that it takes in two arguments\n+    // the two arguements are 'solution' and 'guess'\n+    // arguments are the named parameters placed in the parantheses immediately\n+    // following the function name. - done\n+    //\n+    //\n+    // 2.1\n+    // create a variable named solutionArray\n+    // create a variable named guessArray\n+    var solutionArray = solution.split('');\n+    var guessArray = guess.split('');\n+    var correctLetterLocations = 0; // will record how many correct \"letter-locations\" were guessed\n+    var correctLetters = 0;\n+\n+","path":"apps/05Mastermind.js","position":62,"original_position":62,"commit_id":"d1c202af049c59345bca53175f3daa971cac6f7a","original_commit_id":"d1c202af049c59345bca53175f3daa971cac6f7a","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected indentation of 2 space characters but found 4. (indent)](https://www.codacy.com/app/AustinCodingAcademy/intermediate-workbook/file/3738791130/issues/source?bid=3643438&fileBranchId=3643461#l66)","created_at":"2016-09-04T01:03:57Z","updated_at":"2016-09-04T01:03:57Z","html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54#discussion_r77445221","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/77445221"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/54#discussion_r77445221"},"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-09-04T01:03:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a8056db76e4822cd8c25bdcafb2e8792a67be23","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/d1c202af049c59345bca53175f3daa971cac6f7a","head":{"label":"MannyHagman:gh-pages","ref":"gh-pages","sha":"d1c202af049c59345bca53175f3daa971cac6f7a","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-09-04T01:00:50Z","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":210,"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":"e02114ac572708d4059ed56d2d3c73aff82cda33","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 - 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-29T22:54:46Z","pushed_at":"2016-09-04T01:00:50Z","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/intermediate-workbook","size":19429,"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":27,"forks":59,"open_issues":27,"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/d1c202af049c59345bca53175f3daa971cac6f7a"}}}}
{"actor":{"display_login":"codacy-bot"}}