{"action":"created","comment":{"url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/comments/142474500","pull_request_review_id":66841434,"id":142474500,"diff_hunk":"@@ -0,0 +1,75 @@\n+defmodule Hangman.Game do\n+    defstruct(\n+        turns: 7,\n+        game_state: :initializing,\n+        used: %MapSet{},\n+        word: [],\n+        last_guess: \"\",\n+    )\n+\n+  def new_game() do\n+    word = String.codepoints( Dictionary.random_word() )","path":"hangman/lib/hangman/game.ex","position":11,"original_position":11,"commit_id":"8753c6d7fa2e60d2205590e76ef90032a3c8d889","original_commit_id":"8753c6d7fa2e60d2205590e76ef90032a3c8d889","user":{"login":"pragdave","id":10648,"avatar_url":"https://avatars0.githubusercontent.com/u/10648?v=4","gravatar_id":"","url":"https://api.github.com/users/pragdave","html_url":"https://github.com/pragdave","followers_url":"https://api.github.com/users/pragdave/followers","following_url":"https://api.github.com/users/pragdave/following{/other_user}","gists_url":"https://api.github.com/users/pragdave/gists{/gist_id}","starred_url":"https://api.github.com/users/pragdave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragdave/subscriptions","organizations_url":"https://api.github.com/users/pragdave/orgs","repos_url":"https://api.github.com/users/pragdave/repos","events_url":"https://api.github.com/users/pragdave/events{/privacy}","received_events_url":"https://api.github.com/users/pragdave/received_events","type":"User","site_admin":false},"body":"## idiomatic -2\r\n\r\nI'd really like to see a pipeline here:\r\n\r\n~~~ elixir\r\nword = Dictionary.random_word()\r\n       |> String.codepoints()\r\n       |> Enum.drop(-1)\r\n~~~\r\n\r\n## -5 works\r\n\r\nThe `Enum.drop` is a bug. If you run this against my tests or against the human player code, it drops the last letter of the word to be guessed. I'm guessing you originally tested this by doing an IO.gets on the word to be guessed, and this code stripped the trailing \\n?\r\n","created_at":"2017-10-03T17:53:49Z","updated_at":"2017-10-03T17:53:50Z","html_url":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16#discussion_r142474500","pull_request_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/comments/142474500"},"html":{"href":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16#discussion_r142474500"},"pull_request":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16","id":144111113,"html_url":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16","diff_url":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16.diff","patch_url":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16.patch","issue_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/16","number":16,"state":"open","locked":false,"title":"Michael Gilbert HW2 Submission","user":{"login":"euphoricpoptarts","id":18105702,"avatar_url":"https://avatars2.githubusercontent.com/u/18105702?v=4","gravatar_id":"","url":"https://api.github.com/users/euphoricpoptarts","html_url":"https://github.com/euphoricpoptarts","followers_url":"https://api.github.com/users/euphoricpoptarts/followers","following_url":"https://api.github.com/users/euphoricpoptarts/following{/other_user}","gists_url":"https://api.github.com/users/euphoricpoptarts/gists{/gist_id}","starred_url":"https://api.github.com/users/euphoricpoptarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphoricpoptarts/subscriptions","organizations_url":"https://api.github.com/users/euphoricpoptarts/orgs","repos_url":"https://api.github.com/users/euphoricpoptarts/repos","events_url":"https://api.github.com/users/euphoricpoptarts/events{/privacy}","received_events_url":"https://api.github.com/users/euphoricpoptarts/received_events","type":"User","site_admin":false},"body":"Michael Gilbert : 44823653","created_at":"2017-10-02T04:56:18Z","updated_at":"2017-10-03T17:53:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cd21587e8a57337b8d44c210c350fe113d6644a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16/commits","review_comments_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16/comments","review_comment_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/16/comments","statuses_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/statuses/8753c6d7fa2e60d2205590e76ef90032a3c8d889","head":{"label":"euphoricpoptarts:hw2","ref":"hw2","sha":"8753c6d7fa2e60d2205590e76ef90032a3c8d889","user":{"login":"euphoricpoptarts","id":18105702,"avatar_url":"https://avatars2.githubusercontent.com/u/18105702?v=4","gravatar_id":"","url":"https://api.github.com/users/euphoricpoptarts","html_url":"https://github.com/euphoricpoptarts","followers_url":"https://api.github.com/users/euphoricpoptarts/followers","following_url":"https://api.github.com/users/euphoricpoptarts/following{/other_user}","gists_url":"https://api.github.com/users/euphoricpoptarts/gists{/gist_id}","starred_url":"https://api.github.com/users/euphoricpoptarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphoricpoptarts/subscriptions","organizations_url":"https://api.github.com/users/euphoricpoptarts/orgs","repos_url":"https://api.github.com/users/euphoricpoptarts/repos","events_url":"https://api.github.com/users/euphoricpoptarts/events{/privacy}","received_events_url":"https://api.github.com/users/euphoricpoptarts/received_events","type":"User","site_admin":false},"repo":{"id":105487300,"name":"2-first-hangman","full_name":"euphoricpoptarts/2-first-hangman","owner":{"login":"euphoricpoptarts","id":18105702,"avatar_url":"https://avatars2.githubusercontent.com/u/18105702?v=4","gravatar_id":"","url":"https://api.github.com/users/euphoricpoptarts","html_url":"https://github.com/euphoricpoptarts","followers_url":"https://api.github.com/users/euphoricpoptarts/followers","following_url":"https://api.github.com/users/euphoricpoptarts/following{/other_user}","gists_url":"https://api.github.com/users/euphoricpoptarts/gists{/gist_id}","starred_url":"https://api.github.com/users/euphoricpoptarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphoricpoptarts/subscriptions","organizations_url":"https://api.github.com/users/euphoricpoptarts/orgs","repos_url":"https://api.github.com/users/euphoricpoptarts/repos","events_url":"https://api.github.com/users/euphoricpoptarts/events{/privacy}","received_events_url":"https://api.github.com/users/euphoricpoptarts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/euphoricpoptarts/2-first-hangman","description":null,"fork":true,"url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman","forks_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/forks","keys_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/teams","hooks_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/hooks","issue_events_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/issues/events{/number}","events_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/events","assignees_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/assignees{/user}","branches_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/branches{/branch}","tags_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/tags","blobs_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/git/refs{/sha}","trees_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/statuses/{sha}","languages_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/languages","stargazers_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/stargazers","contributors_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/contributors","subscribers_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/subscribers","subscription_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/subscription","commits_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/commits{/sha}","git_commits_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/git/commits{/sha}","comments_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/comments{/number}","issue_comment_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/issues/comments{/number}","contents_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/contents/{+path}","compare_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/merges","archive_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/downloads","issues_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/issues{/number}","pulls_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/pulls{/number}","milestones_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/milestones{/number}","notifications_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/labels{/name}","releases_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/releases{/id}","deployments_url":"https://api.github.com/repos/euphoricpoptarts/2-first-hangman/deployments","created_at":"2017-10-02T01:20:15Z","updated_at":"2017-10-02T01:20:17Z","pushed_at":"2017-10-02T05:25:34Z","git_url":"git://github.com/euphoricpoptarts/2-first-hangman.git","ssh_url":"git@github.com:euphoricpoptarts/2-first-hangman.git","clone_url":"https://github.com/euphoricpoptarts/2-first-hangman.git","svn_url":"https://github.com/euphoricpoptarts/2-first-hangman","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cse-x345-fall-2017:master","ref":"master","sha":"cba3451b26b38fd0f72668018252fd8968735e61","user":{"login":"cse-x345-fall-2017","id":31137627,"avatar_url":"https://avatars3.githubusercontent.com/u/31137627?v=4","gravatar_id":"","url":"https://api.github.com/users/cse-x345-fall-2017","html_url":"https://github.com/cse-x345-fall-2017","followers_url":"https://api.github.com/users/cse-x345-fall-2017/followers","following_url":"https://api.github.com/users/cse-x345-fall-2017/following{/other_user}","gists_url":"https://api.github.com/users/cse-x345-fall-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/cse-x345-fall-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cse-x345-fall-2017/subscriptions","organizations_url":"https://api.github.com/users/cse-x345-fall-2017/orgs","repos_url":"https://api.github.com/users/cse-x345-fall-2017/repos","events_url":"https://api.github.com/users/cse-x345-fall-2017/events{/privacy}","received_events_url":"https://api.github.com/users/cse-x345-fall-2017/received_events","type":"Organization","site_admin":false},"repo":{"id":104155745,"name":"2-first-hangman","full_name":"cse-x345-fall-2017/2-first-hangman","owner":{"login":"cse-x345-fall-2017","id":31137627,"avatar_url":"https://avatars3.githubusercontent.com/u/31137627?v=4","gravatar_id":"","url":"https://api.github.com/users/cse-x345-fall-2017","html_url":"https://github.com/cse-x345-fall-2017","followers_url":"https://api.github.com/users/cse-x345-fall-2017/followers","following_url":"https://api.github.com/users/cse-x345-fall-2017/following{/other_user}","gists_url":"https://api.github.com/users/cse-x345-fall-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/cse-x345-fall-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cse-x345-fall-2017/subscriptions","organizations_url":"https://api.github.com/users/cse-x345-fall-2017/orgs","repos_url":"https://api.github.com/users/cse-x345-fall-2017/repos","events_url":"https://api.github.com/users/cse-x345-fall-2017/events{/privacy}","received_events_url":"https://api.github.com/users/cse-x345-fall-2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cse-x345-fall-2017/2-first-hangman","description":null,"fork":false,"url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman","forks_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/forks","keys_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/teams","hooks_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/hooks","issue_events_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/events{/number}","events_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/events","assignees_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/assignees{/user}","branches_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/branches{/branch}","tags_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/tags","blobs_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/git/refs{/sha}","trees_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/statuses/{sha}","languages_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/languages","stargazers_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/stargazers","contributors_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/contributors","subscribers_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/subscribers","subscription_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/subscription","commits_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/commits{/sha}","git_commits_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/git/commits{/sha}","comments_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/comments{/number}","issue_comment_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/comments{/number}","contents_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/contents/{+path}","compare_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/merges","archive_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/downloads","issues_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues{/number}","pulls_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls{/number}","milestones_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/milestones{/number}","notifications_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/labels{/name}","releases_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/releases{/id}","deployments_url":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/deployments","created_at":"2017-09-20T02:36:12Z","updated_at":"2017-09-20T02:37:02Z","pushed_at":"2017-10-02T14:27:09Z","git_url":"git://github.com/cse-x345-fall-2017/2-first-hangman.git","ssh_url":"git@github.com:cse-x345-fall-2017/2-first-hangman.git","clone_url":"https://github.com/cse-x345-fall-2017/2-first-hangman.git","svn_url":"https://github.com/cse-x345-fall-2017/2-first-hangman","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":17,"forks":23,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16"},"html":{"href":"https://github.com/cse-x345-fall-2017/2-first-hangman/pull/16"},"issue":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/16"},"comments":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/cse-x345-fall-2017/2-first-hangman/statuses/8753c6d7fa2e60d2205590e76ef90032a3c8d889"}},"author_association":"NONE"}}
{"actor":{"display_login":"pragdave"}}