{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/comments/170643235","pull_request_review_id":99360014,"id":170643235,"diff_hunk":"@@ -1,9 +1,66 @@\n+require 'awesome_print'\n+\n module Scrabble\n   class Scoring\n     def self.score(word)\n+      word = word.downcase\n+      letters_array = word.split(//)\n+\n+      score = 0\n+      letters_array.each do |letter|\n+        case letter\n+        when \"a\" ,\"e\",\"i\",\"o\", \"u\", \"l\", \"n\", \"r\" ,\"s\",\"t\"\n+          score += 1\n+        when \"d\", \"g\"\n+          score += 2\n+        when \"b\",\"c\",\"m\",\"p\"\n+          score += 3\n+        when \"f\", \"h\", \"v\", \"w\", \"y\"\n+          score += 4\n+        when \"k\"\n+          score += 5\n+        when \"j\", \"x\"\n+          score += 8\n+        when \"q\", \"z\"\n+          score += 10\n+        else\n+          return nil\n+        end\n+      end\n+\n+      if letters_array.length == 7\n+        return score + 50\n+      elsif letters_array.length > 7\n+        return nil\n+      end\n+      if score == 0\n+        return nil\n+      end\n+\n+      return score\n     end\n \n     def self.highest_score_from(array_of_words)\n+\n+      if array_of_words.length == 1\n+        return array_of_words[0]\n+      end\n+\n+      # Create & Populate array of words:\n+      winning_word_array = []\n+      if array_of_words == []\n+        return nil\n+      elsif array_of_words.length == 1\n+        winning_word_array << array_of_words","path":"lib/scoring.rb","position":54,"original_position":54,"commit_id":"3c15974f1f4aa77cb8b157d500d5cbc161da9cac","original_commit_id":"3c15974f1f4aa77cb8b157d500d5cbc161da9cac","user":{"login":"CheezItMan","id":1177416,"avatar_url":"https://avatars3.githubusercontent.com/u/1177416?v=4","gravatar_id":"","url":"https://api.github.com/users/CheezItMan","html_url":"https://github.com/CheezItMan","followers_url":"https://api.github.com/users/CheezItMan/followers","following_url":"https://api.github.com/users/CheezItMan/following{/other_user}","gists_url":"https://api.github.com/users/CheezItMan/gists{/gist_id}","starred_url":"https://api.github.com/users/CheezItMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CheezItMan/subscriptions","organizations_url":"https://api.github.com/users/CheezItMan/orgs","repos_url":"https://api.github.com/users/CheezItMan/repos","events_url":"https://api.github.com/users/CheezItMan/events{/privacy}","received_events_url":"https://api.github.com/users/CheezItMan/received_events","type":"User","site_admin":false},"body":"If you're just going to return 1 word, why push `array_of_words` into `winning_word_array` instead `return array_of_words[0]`","created_at":"2018-02-26T16:08:56Z","updated_at":"2018-02-26T16:09:28Z","html_url":"https://github.com/Ada-C9/Scrabble/pull/10#discussion_r170643235","pull_request_url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/comments/170643235"},"html":{"href":"https://github.com/Ada-C9/Scrabble/pull/10#discussion_r170643235"},"pull_request":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10","id":171143457,"html_url":"https://github.com/Ada-C9/Scrabble/pull/10","diff_url":"https://github.com/Ada-C9/Scrabble/pull/10.diff","patch_url":"https://github.com/Ada-C9/Scrabble/pull/10.patch","issue_url":"https://api.github.com/repos/Ada-C9/Scrabble/issues/10","number":10,"state":"open","locked":false,"title":"&&: Aruna & Kate","user":{"login":"Oh-KPond","id":11987546,"avatar_url":"https://avatars1.githubusercontent.com/u/11987546?v=4","gravatar_id":"","url":"https://api.github.com/users/Oh-KPond","html_url":"https://github.com/Oh-KPond","followers_url":"https://api.github.com/users/Oh-KPond/followers","following_url":"https://api.github.com/users/Oh-KPond/following{/other_user}","gists_url":"https://api.github.com/users/Oh-KPond/gists{/gist_id}","starred_url":"https://api.github.com/users/Oh-KPond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oh-KPond/subscriptions","organizations_url":"https://api.github.com/users/Oh-KPond/orgs","repos_url":"https://api.github.com/users/Oh-KPond/repos","events_url":"https://api.github.com/users/Oh-KPond/events{/privacy}","received_events_url":"https://api.github.com/users/Oh-KPond/received_events","type":"User","site_admin":false},"body":"# Scrabble\r\nCongratulations! You're submitting your assignment.\r\n\r\n## Comprehension Questions\r\n\r\nFeature | Feedback\r\n--- | ---\r\nWhat are the advantages of using git when collaboratively working on one code base? | It was helpful for creating sandboxes for our code, as well as being able to use our own environments/computers. It helped if we ever wanted to go back to a previous state.\r\nWhy do you think we chose to make the `score` method in the `Scoring` class a **class method** instead of an **instance method**? | A class method can be used for all instances instead of just one instance or \"player\". Since a game has many players, the score should be accessible to all of those players.\r\nDescribe an example of a test you wrote for a _nominal case_. | The nominal cases, for example, were those that checked to see if the player responded to play or name.\r\nDescribe an example of a test you wrote for an _edge case_. | We did write an edge case for the player play method to make sure that a player could not enter a word that includes special characters.  \r\nDoes your code use any methods from the `Enumerable` mixin? If so, where and why was it helpful? | We did use `max_by` and `min_by` to help with the code that decided a winner when there was a tie. It was helpful because it cut down on code that needed to be changed, and made the code base less bulky.\r\nWhat was one method you and your pair used to debug code? | We used the ruby gem Awesome Print a lot to see what our variable outputs were, and Minitest was great to see where errors were happening.\r\nIs there a specific piece of code you'd like feedback on? | We would like to see feedback on testing and how that can be done better.\r\nWhat are two discussion points that you and your pair discussed when giving/receiving feedback from each other that you would be willing to share? | When we were thinking about the code, but not pair programming, it was great to use Slack as a way to communicate and give feedback about our ideas. We really thought it was important that we were open with each other throughout the program so that that we could remind ourselves of how we had originally planned to grow.","created_at":"2018-02-23T23:51:45Z","updated_at":"2018-02-26T16:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ef71dca5336c3ae3e0779fe26a20be930392f1c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C9/Scrabble/issues/10/comments","statuses_url":"https://api.github.com/repos/Ada-C9/Scrabble/statuses/3c15974f1f4aa77cb8b157d500d5cbc161da9cac","head":{"label":"aruna79:master","ref":"master","sha":"3c15974f1f4aa77cb8b157d500d5cbc161da9cac","user":{"login":"aruna79","id":35058606,"avatar_url":"https://avatars2.githubusercontent.com/u/35058606?v=4","gravatar_id":"","url":"https://api.github.com/users/aruna79","html_url":"https://github.com/aruna79","followers_url":"https://api.github.com/users/aruna79/followers","following_url":"https://api.github.com/users/aruna79/following{/other_user}","gists_url":"https://api.github.com/users/aruna79/gists{/gist_id}","starred_url":"https://api.github.com/users/aruna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aruna79/subscriptions","organizations_url":"https://api.github.com/users/aruna79/orgs","repos_url":"https://api.github.com/users/aruna79/repos","events_url":"https://api.github.com/users/aruna79/events{/privacy}","received_events_url":"https://api.github.com/users/aruna79/received_events","type":"User","site_admin":false},"repo":{"id":122260962,"name":"Scrabble","full_name":"aruna79/Scrabble","owner":{"login":"aruna79","id":35058606,"avatar_url":"https://avatars2.githubusercontent.com/u/35058606?v=4","gravatar_id":"","url":"https://api.github.com/users/aruna79","html_url":"https://github.com/aruna79","followers_url":"https://api.github.com/users/aruna79/followers","following_url":"https://api.github.com/users/aruna79/following{/other_user}","gists_url":"https://api.github.com/users/aruna79/gists{/gist_id}","starred_url":"https://api.github.com/users/aruna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aruna79/subscriptions","organizations_url":"https://api.github.com/users/aruna79/orgs","repos_url":"https://api.github.com/users/aruna79/repos","events_url":"https://api.github.com/users/aruna79/events{/privacy}","received_events_url":"https://api.github.com/users/aruna79/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aruna79/Scrabble","description":"A ruby implementation of the game Scrabble","fork":true,"url":"https://api.github.com/repos/aruna79/Scrabble","forks_url":"https://api.github.com/repos/aruna79/Scrabble/forks","keys_url":"https://api.github.com/repos/aruna79/Scrabble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aruna79/Scrabble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aruna79/Scrabble/teams","hooks_url":"https://api.github.com/repos/aruna79/Scrabble/hooks","issue_events_url":"https://api.github.com/repos/aruna79/Scrabble/issues/events{/number}","events_url":"https://api.github.com/repos/aruna79/Scrabble/events","assignees_url":"https://api.github.com/repos/aruna79/Scrabble/assignees{/user}","branches_url":"https://api.github.com/repos/aruna79/Scrabble/branches{/branch}","tags_url":"https://api.github.com/repos/aruna79/Scrabble/tags","blobs_url":"https://api.github.com/repos/aruna79/Scrabble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aruna79/Scrabble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aruna79/Scrabble/git/refs{/sha}","trees_url":"https://api.github.com/repos/aruna79/Scrabble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aruna79/Scrabble/statuses/{sha}","languages_url":"https://api.github.com/repos/aruna79/Scrabble/languages","stargazers_url":"https://api.github.com/repos/aruna79/Scrabble/stargazers","contributors_url":"https://api.github.com/repos/aruna79/Scrabble/contributors","subscribers_url":"https://api.github.com/repos/aruna79/Scrabble/subscribers","subscription_url":"https://api.github.com/repos/aruna79/Scrabble/subscription","commits_url":"https://api.github.com/repos/aruna79/Scrabble/commits{/sha}","git_commits_url":"https://api.github.com/repos/aruna79/Scrabble/git/commits{/sha}","comments_url":"https://api.github.com/repos/aruna79/Scrabble/comments{/number}","issue_comment_url":"https://api.github.com/repos/aruna79/Scrabble/issues/comments{/number}","contents_url":"https://api.github.com/repos/aruna79/Scrabble/contents/{+path}","compare_url":"https://api.github.com/repos/aruna79/Scrabble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aruna79/Scrabble/merges","archive_url":"https://api.github.com/repos/aruna79/Scrabble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aruna79/Scrabble/downloads","issues_url":"https://api.github.com/repos/aruna79/Scrabble/issues{/number}","pulls_url":"https://api.github.com/repos/aruna79/Scrabble/pulls{/number}","milestones_url":"https://api.github.com/repos/aruna79/Scrabble/milestones{/number}","notifications_url":"https://api.github.com/repos/aruna79/Scrabble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aruna79/Scrabble/labels{/name}","releases_url":"https://api.github.com/repos/aruna79/Scrabble/releases{/id}","deployments_url":"https://api.github.com/repos/aruna79/Scrabble/deployments","created_at":"2018-02-20T21:51:28Z","updated_at":"2018-02-20T21:51:30Z","pushed_at":"2018-02-23T23:23:43Z","git_url":"git://github.com/aruna79/Scrabble.git","ssh_url":"git@github.com:aruna79/Scrabble.git","clone_url":"https://github.com/aruna79/Scrabble.git","svn_url":"https://github.com/aruna79/Scrabble","homepage":"","size":52,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C9:master","ref":"master","sha":"b41d1cd56709f4768f05a6ed45598107155f49bb","user":{"login":"Ada-C9","id":35278806,"avatar_url":"https://avatars0.githubusercontent.com/u/35278806?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C9","html_url":"https://github.com/Ada-C9","followers_url":"https://api.github.com/users/Ada-C9/followers","following_url":"https://api.github.com/users/Ada-C9/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C9/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C9/subscriptions","organizations_url":"https://api.github.com/users/Ada-C9/orgs","repos_url":"https://api.github.com/users/Ada-C9/repos","events_url":"https://api.github.com/users/Ada-C9/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C9/received_events","type":"Organization","site_admin":false},"repo":{"id":122153348,"name":"Scrabble","full_name":"Ada-C9/Scrabble","owner":{"login":"Ada-C9","id":35278806,"avatar_url":"https://avatars0.githubusercontent.com/u/35278806?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C9","html_url":"https://github.com/Ada-C9","followers_url":"https://api.github.com/users/Ada-C9/followers","following_url":"https://api.github.com/users/Ada-C9/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C9/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C9/subscriptions","organizations_url":"https://api.github.com/users/Ada-C9/orgs","repos_url":"https://api.github.com/users/Ada-C9/repos","events_url":"https://api.github.com/users/Ada-C9/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C9/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C9/Scrabble","description":"A ruby implementation of the game Scrabble","fork":true,"url":"https://api.github.com/repos/Ada-C9/Scrabble","forks_url":"https://api.github.com/repos/Ada-C9/Scrabble/forks","keys_url":"https://api.github.com/repos/Ada-C9/Scrabble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C9/Scrabble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C9/Scrabble/teams","hooks_url":"https://api.github.com/repos/Ada-C9/Scrabble/hooks","issue_events_url":"https://api.github.com/repos/Ada-C9/Scrabble/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C9/Scrabble/events","assignees_url":"https://api.github.com/repos/Ada-C9/Scrabble/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C9/Scrabble/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C9/Scrabble/tags","blobs_url":"https://api.github.com/repos/Ada-C9/Scrabble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C9/Scrabble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C9/Scrabble/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C9/Scrabble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C9/Scrabble/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C9/Scrabble/languages","stargazers_url":"https://api.github.com/repos/Ada-C9/Scrabble/stargazers","contributors_url":"https://api.github.com/repos/Ada-C9/Scrabble/contributors","subscribers_url":"https://api.github.com/repos/Ada-C9/Scrabble/subscribers","subscription_url":"https://api.github.com/repos/Ada-C9/Scrabble/subscription","commits_url":"https://api.github.com/repos/Ada-C9/Scrabble/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C9/Scrabble/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C9/Scrabble/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C9/Scrabble/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C9/Scrabble/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C9/Scrabble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C9/Scrabble/merges","archive_url":"https://api.github.com/repos/Ada-C9/Scrabble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C9/Scrabble/downloads","issues_url":"https://api.github.com/repos/Ada-C9/Scrabble/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C9/Scrabble/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C9/Scrabble/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C9/Scrabble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C9/Scrabble/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C9/Scrabble/releases{/id}","deployments_url":"https://api.github.com/repos/Ada-C9/Scrabble/deployments","created_at":"2018-02-20T04:02:27Z","updated_at":"2018-02-20T04:02:29Z","pushed_at":"2018-02-26T07:57:57Z","git_url":"git://github.com/Ada-C9/Scrabble.git","ssh_url":"git@github.com:Ada-C9/Scrabble.git","clone_url":"https://github.com/Ada-C9/Scrabble.git","svn_url":"https://github.com/Ada-C9/Scrabble","homepage":"","size":42,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":22,"license":null,"forks":27,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10"},"html":{"href":"https://github.com/Ada-C9/Scrabble/pull/10"},"issue":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/issues/10"},"comments":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C9/Scrabble/statuses/3c15974f1f4aa77cb8b157d500d5cbc161da9cac"}},"author_association":"NONE"}}
{"actor":{"display_login":"CheezItMan"}}