{"action":"created","comment":{"url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/comments/151516128","pull_request_review_id":77237756,"id":151516128,"diff_hunk":"@@ -0,0 +1,139 @@\n+var inquirer = require(\"inquirer\");\n+var Word = require(\"./word.js\");\n+\n+// Prearranged words for the hangman program\n+var words = ['PROGRAM', 'LANGUAGE', 'STRING', 'JAVASCRIPT', 'PYTHON'];\n+\n+// Array to store word Objects that are created based on the words above\n+var wordArray = [];\n+\n+\n+// Function to initalize wordArray with word Objects\n+function initWords() {\n+\tfor (var i=0; i<words.length; i++) {\n+\t\tvar newWord = new Word(words[i]);\n+\t\twordArray.push(newWord);\n+\t}\n+}\n+\n+// Function to reset all the words for a fresh start of the game\n+function resetGame() {\n+\tconsole.log(\"RESET game!\");\n+\tfor (var i=0; i < wordArray.length; i++) {\n+\t\twordArray[i].resetWord();\n+\t}","path":"hangman.js","position":24,"original_position":24,"commit_id":"588d8df97170a3f716808e5f97223ac6d9d8d59d","original_commit_id":"588d8df97170a3f716808e5f97223ac6d9d8d59d","user":{"login":"AbrahamFergie","id":15825329,"avatar_url":"https://avatars0.githubusercontent.com/u/15825329?v=4","gravatar_id":"","url":"https://api.github.com/users/AbrahamFergie","html_url":"https://github.com/AbrahamFergie","followers_url":"https://api.github.com/users/AbrahamFergie/followers","following_url":"https://api.github.com/users/AbrahamFergie/following{/other_user}","gists_url":"https://api.github.com/users/AbrahamFergie/gists{/gist_id}","starred_url":"https://api.github.com/users/AbrahamFergie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbrahamFergie/subscriptions","organizations_url":"https://api.github.com/users/AbrahamFergie/orgs","repos_url":"https://api.github.com/users/AbrahamFergie/repos","events_url":"https://api.github.com/users/AbrahamFergie/events{/privacy}","received_events_url":"https://api.github.com/users/AbrahamFergie/received_events","type":"User","site_admin":false},"body":"same with this:\r\n```javascript\r\nreturn wordArray.map(function(word){\r\n  return word.resetWord()\r\n})","created_at":"2017-11-16T19:36:24Z","updated_at":"2017-11-16T19:36:24Z","html_url":"https://github.com/nchandika1/Hangman-Constructor/pull/1#discussion_r151516128","pull_request_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/comments/151516128"},"html":{"href":"https://github.com/nchandika1/Hangman-Constructor/pull/1#discussion_r151516128"},"pull_request":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1","id":152577546,"html_url":"https://github.com/nchandika1/Hangman-Constructor/pull/1","diff_url":"https://github.com/nchandika1/Hangman-Constructor/pull/1.diff","patch_url":"https://github.com/nchandika1/Hangman-Constructor/pull/1.patch","issue_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/1","number":1,"state":"open","locked":false,"title":"Homework Feedback","user":{"login":"nchandika1","id":32001947,"avatar_url":"https://avatars2.githubusercontent.com/u/32001947?v=4","gravatar_id":"","url":"https://api.github.com/users/nchandika1","html_url":"https://github.com/nchandika1","followers_url":"https://api.github.com/users/nchandika1/followers","following_url":"https://api.github.com/users/nchandika1/following{/other_user}","gists_url":"https://api.github.com/users/nchandika1/gists{/gist_id}","starred_url":"https://api.github.com/users/nchandika1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchandika1/subscriptions","organizations_url":"https://api.github.com/users/nchandika1/orgs","repos_url":"https://api.github.com/users/nchandika1/repos","events_url":"https://api.github.com/users/nchandika1/events{/privacy}","received_events_url":"https://api.github.com/users/nchandika1/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-14T18:06:15Z","updated_at":"2017-11-16T19:36:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ecdf8093a26f0ccd252b0947033833c3738531c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/1/comments","statuses_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/statuses/588d8df97170a3f716808e5f97223ac6d9d8d59d","head":{"label":"nchandika1:master","ref":"master","sha":"588d8df97170a3f716808e5f97223ac6d9d8d59d","user":{"login":"nchandika1","id":32001947,"avatar_url":"https://avatars2.githubusercontent.com/u/32001947?v=4","gravatar_id":"","url":"https://api.github.com/users/nchandika1","html_url":"https://github.com/nchandika1","followers_url":"https://api.github.com/users/nchandika1/followers","following_url":"https://api.github.com/users/nchandika1/following{/other_user}","gists_url":"https://api.github.com/users/nchandika1/gists{/gist_id}","starred_url":"https://api.github.com/users/nchandika1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchandika1/subscriptions","organizations_url":"https://api.github.com/users/nchandika1/orgs","repos_url":"https://api.github.com/users/nchandika1/repos","events_url":"https://api.github.com/users/nchandika1/events{/privacy}","received_events_url":"https://api.github.com/users/nchandika1/received_events","type":"User","site_admin":false},"repo":{"id":109926780,"name":"Hangman-Constructor","full_name":"nchandika1/Hangman-Constructor","owner":{"login":"nchandika1","id":32001947,"avatar_url":"https://avatars2.githubusercontent.com/u/32001947?v=4","gravatar_id":"","url":"https://api.github.com/users/nchandika1","html_url":"https://github.com/nchandika1","followers_url":"https://api.github.com/users/nchandika1/followers","following_url":"https://api.github.com/users/nchandika1/following{/other_user}","gists_url":"https://api.github.com/users/nchandika1/gists{/gist_id}","starred_url":"https://api.github.com/users/nchandika1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchandika1/subscriptions","organizations_url":"https://api.github.com/users/nchandika1/orgs","repos_url":"https://api.github.com/users/nchandika1/repos","events_url":"https://api.github.com/users/nchandika1/events{/privacy}","received_events_url":"https://api.github.com/users/nchandika1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nchandika1/Hangman-Constructor","description":"Hangman Game using javascript constructors","fork":false,"url":"https://api.github.com/repos/nchandika1/Hangman-Constructor","forks_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/forks","keys_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/teams","hooks_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/hooks","issue_events_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/events{/number}","events_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/events","assignees_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/assignees{/user}","branches_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/branches{/branch}","tags_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/tags","blobs_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/refs{/sha}","trees_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/statuses/{sha}","languages_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/languages","stargazers_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/stargazers","contributors_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/contributors","subscribers_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/subscribers","subscription_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/subscription","commits_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/commits{/sha}","git_commits_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/commits{/sha}","comments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/comments{/number}","issue_comment_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/comments{/number}","contents_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/contents/{+path}","compare_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/merges","archive_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/downloads","issues_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues{/number}","pulls_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls{/number}","milestones_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/milestones{/number}","notifications_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/labels{/name}","releases_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/releases{/id}","deployments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/deployments","created_at":"2017-11-08T04:15:45Z","updated_at":"2017-11-08T13:54:30Z","pushed_at":"2017-11-14T18:06:15Z","git_url":"git://github.com/nchandika1/Hangman-Constructor.git","ssh_url":"git@github.com:nchandika1/Hangman-Constructor.git","clone_url":"https://github.com/nchandika1/Hangman-Constructor.git","svn_url":"https://github.com/nchandika1/Hangman-Constructor","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nchandika1:homework","ref":"homework","sha":"c7e653af286fc067fff30ebf07ce03c6a9426826","user":{"login":"nchandika1","id":32001947,"avatar_url":"https://avatars2.githubusercontent.com/u/32001947?v=4","gravatar_id":"","url":"https://api.github.com/users/nchandika1","html_url":"https://github.com/nchandika1","followers_url":"https://api.github.com/users/nchandika1/followers","following_url":"https://api.github.com/users/nchandika1/following{/other_user}","gists_url":"https://api.github.com/users/nchandika1/gists{/gist_id}","starred_url":"https://api.github.com/users/nchandika1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchandika1/subscriptions","organizations_url":"https://api.github.com/users/nchandika1/orgs","repos_url":"https://api.github.com/users/nchandika1/repos","events_url":"https://api.github.com/users/nchandika1/events{/privacy}","received_events_url":"https://api.github.com/users/nchandika1/received_events","type":"User","site_admin":false},"repo":{"id":109926780,"name":"Hangman-Constructor","full_name":"nchandika1/Hangman-Constructor","owner":{"login":"nchandika1","id":32001947,"avatar_url":"https://avatars2.githubusercontent.com/u/32001947?v=4","gravatar_id":"","url":"https://api.github.com/users/nchandika1","html_url":"https://github.com/nchandika1","followers_url":"https://api.github.com/users/nchandika1/followers","following_url":"https://api.github.com/users/nchandika1/following{/other_user}","gists_url":"https://api.github.com/users/nchandika1/gists{/gist_id}","starred_url":"https://api.github.com/users/nchandika1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchandika1/subscriptions","organizations_url":"https://api.github.com/users/nchandika1/orgs","repos_url":"https://api.github.com/users/nchandika1/repos","events_url":"https://api.github.com/users/nchandika1/events{/privacy}","received_events_url":"https://api.github.com/users/nchandika1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nchandika1/Hangman-Constructor","description":"Hangman Game using javascript constructors","fork":false,"url":"https://api.github.com/repos/nchandika1/Hangman-Constructor","forks_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/forks","keys_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/teams","hooks_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/hooks","issue_events_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/events{/number}","events_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/events","assignees_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/assignees{/user}","branches_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/branches{/branch}","tags_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/tags","blobs_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/refs{/sha}","trees_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/statuses/{sha}","languages_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/languages","stargazers_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/stargazers","contributors_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/contributors","subscribers_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/subscribers","subscription_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/subscription","commits_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/commits{/sha}","git_commits_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/git/commits{/sha}","comments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/comments{/number}","issue_comment_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/comments{/number}","contents_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/contents/{+path}","compare_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/merges","archive_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/downloads","issues_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues{/number}","pulls_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls{/number}","milestones_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/milestones{/number}","notifications_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/labels{/name}","releases_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/releases{/id}","deployments_url":"https://api.github.com/repos/nchandika1/Hangman-Constructor/deployments","created_at":"2017-11-08T04:15:45Z","updated_at":"2017-11-08T13:54:30Z","pushed_at":"2017-11-14T18:06:15Z","git_url":"git://github.com/nchandika1/Hangman-Constructor.git","ssh_url":"git@github.com:nchandika1/Hangman-Constructor.git","clone_url":"https://github.com/nchandika1/Hangman-Constructor.git","svn_url":"https://github.com/nchandika1/Hangman-Constructor","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1"},"html":{"href":"https://github.com/nchandika1/Hangman-Constructor/pull/1"},"issue":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/1"},"comments":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nchandika1/Hangman-Constructor/statuses/588d8df97170a3f716808e5f97223ac6d9d8d59d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"AbrahamFergie"}}