{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/comments/31342428","id":31342428,"diff_hunk":"@@ -0,0 +1,90 @@\n+module Scrabble\n+\n+  class Scrabble\n+    # Set constants with general error message, point values of each letter, all letters\n+    WORD_ERROR = \"ERROR: Invalid input. Either your word has more that 7 letters or you entered something ridiculous. You only have 7 tiles, and Scrabble uses WORDS!\"\n+    POINTS = {\n+      1 => [\"a\", \"e\", \"i\", \"o\", \"u\", \"l\", \"n\", \"r\", \"s\", \"t\"],\n+      2 => [\"d\", \"g\"],\n+      3 => [\"b\", \"c\", \"m\", \"p\"],\n+      4 => [\"f\", \"h\", \"v\", \"w\", \"y\"],\n+      5 => [\"k\"],\n+      6 => [\"j\", \"x\"],\n+      7 => [\"q\", \"z\"]\n+    }\n+\n+    LETTERS = (\"a\"..\"z\").to_a\n+\n+    def self.get_points(word)\n+      # set initial value of score\n+      score = 0\n+\n+      # convert to string, make letters lower case, & push letters to array\n+      word_array = word.to_s.downcase.split(\"\").push","path":"lib/scrabble-project/scrabble-class.rb","position":23,"original_position":23,"commit_id":"91518e0f3878d9755710ae04c309147be247c02d","original_commit_id":"91518e0f3878d9755710ae04c309147be247c02d","user":{"login":"Elffers","id":5466070,"avatar_url":"https://avatars.githubusercontent.com/u/5466070?v=3","gravatar_id":"","url":"https://api.github.com/users/Elffers","html_url":"https://github.com/Elffers","followers_url":"https://api.github.com/users/Elffers/followers","following_url":"https://api.github.com/users/Elffers/following{/other_user}","gists_url":"https://api.github.com/users/Elffers/gists{/gist_id}","starred_url":"https://api.github.com/users/Elffers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elffers/subscriptions","organizations_url":"https://api.github.com/users/Elffers/orgs","repos_url":"https://api.github.com/users/Elffers/repos","events_url":"https://api.github.com/users/Elffers/events{/privacy}","received_events_url":"https://api.github.com/users/Elffers/received_events","type":"User","site_admin":false},"body":"Couple things:\r\n1) `word` should already be a string, so there's no need to call `.to_s` on it. If you wanted to ensure that the argument passed into `.get_points` is a string, you might consider putting it in your `.valid_input?` method.\r\n2) Since `.split(\"\")` already returns an array, you don't need `.push` at the end, here, especially if you're not providing an argument to push. In other words,  you're already assigning `word_array` to the return value of `word.downcase.split(\"\")`.  On the other hand, if you wanted to start off with `word_array` as an empty array, how would you use `.push` to populate that array?\r\n3) Also, there is another method on String that does exactly what `.split(\"\")` does, and does not require an argument. Can you find it in the documentation?","created_at":"2015-05-29T16:52:24Z","updated_at":"2015-05-29T16:52:24Z","html_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7#discussion_r31342428","pull_request_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/comments/31342428"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7#discussion_r31342428"},"pull_request":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7","id":36372868,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7","diff_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7.diff","patch_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7.patch","issue_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/7","number":7,"state":"open","locked":false,"title":"Completed Scrabble project","user":{"login":"sallyamoore","id":10969102,"avatar_url":"https://avatars.githubusercontent.com/u/10969102?v=3","gravatar_id":"","url":"https://api.github.com/users/sallyamoore","html_url":"https://github.com/sallyamoore","followers_url":"https://api.github.com/users/sallyamoore/followers","following_url":"https://api.github.com/users/sallyamoore/following{/other_user}","gists_url":"https://api.github.com/users/sallyamoore/gists{/gist_id}","starred_url":"https://api.github.com/users/sallyamoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallyamoore/subscriptions","organizations_url":"https://api.github.com/users/sallyamoore/orgs","repos_url":"https://api.github.com/users/sallyamoore/repos","events_url":"https://api.github.com/users/sallyamoore/events{/privacy}","received_events_url":"https://api.github.com/users/sallyamoore/received_events","type":"User","site_admin":false},"body":"I completed breakfast on this one and started dabbling in lunch. I didn't finish lunch. I ran into an issue with the total_score method in the Player class -- I wanted to use the score method and constants from the Scrabble class rather than recreating that functionality, but I didn't have time to figure out how best to do that. What would you suggest? \r\n\r\n(Please excuse the typos in the messages that accompany some of my commits -- I'm having an issue with word wrapping in my terminal that makes it difficult to see these kinds of typos. I'll fix it before the next project.) ","created_at":"2015-05-28T05:22:28Z","updated_at":"2015-05-29T16:52:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56d5948ce60c25f1947c2e4f9e30a0257bd14f5c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/7/comments","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/statuses/91518e0f3878d9755710ae04c309147be247c02d","head":{"label":"sallyamoore:sam/master","ref":"sam/master","sha":"91518e0f3878d9755710ae04c309147be247c02d","user":{"login":"sallyamoore","id":10969102,"avatar_url":"https://avatars.githubusercontent.com/u/10969102?v=3","gravatar_id":"","url":"https://api.github.com/users/sallyamoore","html_url":"https://github.com/sallyamoore","followers_url":"https://api.github.com/users/sallyamoore/followers","following_url":"https://api.github.com/users/sallyamoore/following{/other_user}","gists_url":"https://api.github.com/users/sallyamoore/gists{/gist_id}","starred_url":"https://api.github.com/users/sallyamoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallyamoore/subscriptions","organizations_url":"https://api.github.com/users/sallyamoore/orgs","repos_url":"https://api.github.com/users/sallyamoore/repos","events_url":"https://api.github.com/users/sallyamoore/events{/privacy}","received_events_url":"https://api.github.com/users/sallyamoore/received_events","type":"User","site_admin":false},"repo":{"id":36325505,"name":"C3Projects--Scrabble","full_name":"sallyamoore/C3Projects--Scrabble","owner":{"login":"sallyamoore","id":10969102,"avatar_url":"https://avatars.githubusercontent.com/u/10969102?v=3","gravatar_id":"","url":"https://api.github.com/users/sallyamoore","html_url":"https://github.com/sallyamoore","followers_url":"https://api.github.com/users/sallyamoore/followers","following_url":"https://api.github.com/users/sallyamoore/following{/other_user}","gists_url":"https://api.github.com/users/sallyamoore/gists{/gist_id}","starred_url":"https://api.github.com/users/sallyamoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallyamoore/subscriptions","organizations_url":"https://api.github.com/users/sallyamoore/orgs","repos_url":"https://api.github.com/users/sallyamoore/repos","events_url":"https://api.github.com/users/sallyamoore/events{/privacy}","received_events_url":"https://api.github.com/users/sallyamoore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sallyamoore/C3Projects--Scrabble","description":"Cohort[2] Scrabble project","fork":true,"url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble","forks_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/forks","keys_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/teams","hooks_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/hooks","issue_events_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/issues/events{/number}","events_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/events","assignees_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/assignees{/user}","branches_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/branches{/branch}","tags_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/tags","blobs_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/git/refs{/sha}","trees_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/statuses/{sha}","languages_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/languages","stargazers_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/stargazers","contributors_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/contributors","subscribers_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/subscribers","subscription_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/subscription","commits_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/commits{/sha}","git_commits_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/git/commits{/sha}","comments_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/comments{/number}","issue_comment_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/issues/comments{/number}","contents_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/contents/{+path}","compare_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/merges","archive_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/downloads","issues_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/issues{/number}","pulls_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/pulls{/number}","milestones_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/milestones{/number}","notifications_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/labels{/name}","releases_url":"https://api.github.com/repos/sallyamoore/C3Projects--Scrabble/releases{/id}","created_at":"2015-05-26T21:43:10Z","updated_at":"2015-05-26T21:43:10Z","pushed_at":"2015-05-28T20:19:41Z","git_url":"git://github.com/sallyamoore/C3Projects--Scrabble.git","ssh_url":"git@github.com:sallyamoore/C3Projects--Scrabble.git","clone_url":"https://github.com/sallyamoore/C3Projects--Scrabble.git","svn_url":"https://github.com/sallyamoore/C3Projects--Scrabble","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"Ada-Developers-Academy:sam/master","ref":"sam/master","sha":"b450d0751e90cafd2bbaa3f55645fc1374936a84","user":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":36305785,"name":"C3Projects--Scrabble","full_name":"Ada-Developers-Academy/C3Projects--Scrabble","owner":{"login":"Ada-Developers-Academy","id":4689715,"avatar_url":"https://avatars.githubusercontent.com/u/4689715?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-Developers-Academy","html_url":"https://github.com/Ada-Developers-Academy","followers_url":"https://api.github.com/users/Ada-Developers-Academy/followers","following_url":"https://api.github.com/users/Ada-Developers-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Ada-Developers-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-Developers-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-Developers-Academy/subscriptions","organizations_url":"https://api.github.com/users/Ada-Developers-Academy/orgs","repos_url":"https://api.github.com/users/Ada-Developers-Academy/repos","events_url":"https://api.github.com/users/Ada-Developers-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-Developers-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble","description":"Cohort[2] Scrabble project","fork":false,"url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble","forks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/forks","keys_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/teams","hooks_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/hooks","issue_events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/events","assignees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/tags","blobs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/languages","stargazers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/stargazers","contributors_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/contributors","subscribers_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/subscribers","subscription_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/subscription","commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/merges","archive_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/downloads","issues_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/labels{/name}","releases_url":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/releases{/id}","created_at":"2015-05-26T15:35:52Z","updated_at":"2015-05-26T15:48:41Z","pushed_at":"2015-05-29T03:26:13Z","git_url":"git://github.com/Ada-Developers-Academy/C3Projects--Scrabble.git","ssh_url":"git@github.com:Ada-Developers-Academy/C3Projects--Scrabble.git","clone_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble.git","svn_url":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble","homepage":null,"size":730,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":24,"forks":26,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7"},"html":{"href":"https://github.com/Ada-Developers-Academy/C3Projects--Scrabble/pull/7"},"issue":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/7"},"comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-Developers-Academy/C3Projects--Scrabble/statuses/91518e0f3878d9755710ae04c309147be247c02d"}}}}