{"action":"created","comment":{"url":"https://api.github.com/repos/yokmmsr/training/pulls/comments/191977633","pull_request_review_id":124657035,"id":191977633,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTk3NzYzMw==","diff_hunk":"@@ -0,0 +1,75 @@\n+class Bingo_card\n+  HIT_MARKER = \"○\"\n+\n+  def initialize(side_size)\n+    @side_size = side_size\n+  end\n+\n+  # ビンゴの初期配置を決めるメソッド\n+  def initial_place\n+    @random_numbers = [*1..100].shuffle\n+    @card_numbers = (0..@side_size - 1).map {@random_numbers.slice!(0, @side_size)}\n+  end\n+\n+  # 当選したかどうか判定、数字を更新するメソッド\n+  def judge_hit(lottery_number)\n+    @card_numbers.each {|column_numbers|\n+      hit_index = 0\n+      column_numbers.each {|number|\n+        if lottery_number.to_s == number.to_s then\n+          puts(\"#{lottery_number}が当たりました！\")\n+          column_numbers[hit_index] = HIT_MARKER\n+          break\n+        end\n+        hit_index += 1\n+      }\n+    }\n+  end\n+\n+  # ビンゴしているかどうか判定するメソッド\n+  def is_bingo\n+    @bingo_count = 0\n+    # 横がそろっているかチェック\n+    @card_numbers.each {|row_numbers|\n+      if row_numbers.all? {|number| number == HIT_MARKER} then\n+        @bingo_count += 1\n+      end\n+    }","path":"BingoGame_Ruby/BingoGame/bingo_card.rb","position":37,"original_position":37,"commit_id":"33ab6e7ff55bb991fed3580c336fd2a65aac7452","original_commit_id":"33ab6e7ff55bb991fed3580c336fd2a65aac7452","user":{"login":"4take","id":16110532,"node_id":"MDQ6VXNlcjE2MTEwNTMy","avatar_url":"https://avatars0.githubusercontent.com/u/16110532?v=4","gravatar_id":"","url":"https://api.github.com/users/4take","html_url":"https://github.com/4take","followers_url":"https://api.github.com/users/4take/followers","following_url":"https://api.github.com/users/4take/following{/other_user}","gists_url":"https://api.github.com/users/4take/gists{/gist_id}","starred_url":"https://api.github.com/users/4take/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4take/subscriptions","organizations_url":"https://api.github.com/users/4take/orgs","repos_url":"https://api.github.com/users/4take/repos","events_url":"https://api.github.com/users/4take/events{/privacy}","received_events_url":"https://api.github.com/users/4take/received_events","type":"User","site_admin":false},"body":"極力、何度も変数を操作しなくていい方法を考えよう！","created_at":"2018-05-31T02:56:15Z","updated_at":"2018-05-31T03:03:46Z","html_url":"https://github.com/yokmmsr/training/pull/11#discussion_r191977633","pull_request_url":"https://api.github.com/repos/yokmmsr/training/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/comments/191977633"},"html":{"href":"https://github.com/yokmmsr/training/pull/11#discussion_r191977633"},"pull_request":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/11"}},"in_reply_to_id":191977575},"pull_request":{"url":"https://api.github.com/repos/yokmmsr/training/pulls/11","id":191079491,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMDc5NDkx","html_url":"https://github.com/yokmmsr/training/pull/11","diff_url":"https://github.com/yokmmsr/training/pull/11.diff","patch_url":"https://github.com/yokmmsr/training/pull/11.patch","issue_url":"https://api.github.com/repos/yokmmsr/training/issues/11","number":11,"state":"open","locked":false,"title":"feature BingoGame by Ruby","user":{"login":"yokmmsr","id":37994812,"node_id":"MDQ6VXNlcjM3OTk0ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/37994812?v=4","gravatar_id":"","url":"https://api.github.com/users/yokmmsr","html_url":"https://github.com/yokmmsr","followers_url":"https://api.github.com/users/yokmmsr/followers","following_url":"https://api.github.com/users/yokmmsr/following{/other_user}","gists_url":"https://api.github.com/users/yokmmsr/gists{/gist_id}","starred_url":"https://api.github.com/users/yokmmsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yokmmsr/subscriptions","organizations_url":"https://api.github.com/users/yokmmsr/orgs","repos_url":"https://api.github.com/users/yokmmsr/repos","events_url":"https://api.github.com/users/yokmmsr/events{/privacy}","received_events_url":"https://api.github.com/users/yokmmsr/received_events","type":"User","site_admin":false},"body":"Rubyのビンゴゲームを修正しました。\r\n・コードの簡略化\r\n・変数名などをスネークケースに変換","created_at":"2018-05-29T09:12:11Z","updated_at":"2018-05-31T03:03:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"471d4c1b91b2ba9e685bfe1d531c9b142fff09f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yokmmsr/training/pulls/11/commits","review_comments_url":"https://api.github.com/repos/yokmmsr/training/pulls/11/comments","review_comment_url":"https://api.github.com/repos/yokmmsr/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yokmmsr/training/issues/11/comments","statuses_url":"https://api.github.com/repos/yokmmsr/training/statuses/33ab6e7ff55bb991fed3580c336fd2a65aac7452","head":{"label":"yokmmsr:BingoGame_Ruby","ref":"BingoGame_Ruby","sha":"33ab6e7ff55bb991fed3580c336fd2a65aac7452","user":{"login":"yokmmsr","id":37994812,"node_id":"MDQ6VXNlcjM3OTk0ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/37994812?v=4","gravatar_id":"","url":"https://api.github.com/users/yokmmsr","html_url":"https://github.com/yokmmsr","followers_url":"https://api.github.com/users/yokmmsr/followers","following_url":"https://api.github.com/users/yokmmsr/following{/other_user}","gists_url":"https://api.github.com/users/yokmmsr/gists{/gist_id}","starred_url":"https://api.github.com/users/yokmmsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yokmmsr/subscriptions","organizations_url":"https://api.github.com/users/yokmmsr/orgs","repos_url":"https://api.github.com/users/yokmmsr/repos","events_url":"https://api.github.com/users/yokmmsr/events{/privacy}","received_events_url":"https://api.github.com/users/yokmmsr/received_events","type":"User","site_admin":false},"repo":{"id":127886124,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc4ODYxMjQ=","name":"training","full_name":"yokmmsr/training","owner":{"login":"yokmmsr","id":37994812,"node_id":"MDQ6VXNlcjM3OTk0ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/37994812?v=4","gravatar_id":"","url":"https://api.github.com/users/yokmmsr","html_url":"https://github.com/yokmmsr","followers_url":"https://api.github.com/users/yokmmsr/followers","following_url":"https://api.github.com/users/yokmmsr/following{/other_user}","gists_url":"https://api.github.com/users/yokmmsr/gists{/gist_id}","starred_url":"https://api.github.com/users/yokmmsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yokmmsr/subscriptions","organizations_url":"https://api.github.com/users/yokmmsr/orgs","repos_url":"https://api.github.com/users/yokmmsr/repos","events_url":"https://api.github.com/users/yokmmsr/events{/privacy}","received_events_url":"https://api.github.com/users/yokmmsr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yokmmsr/training","description":null,"fork":false,"url":"https://api.github.com/repos/yokmmsr/training","forks_url":"https://api.github.com/repos/yokmmsr/training/forks","keys_url":"https://api.github.com/repos/yokmmsr/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yokmmsr/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yokmmsr/training/teams","hooks_url":"https://api.github.com/repos/yokmmsr/training/hooks","issue_events_url":"https://api.github.com/repos/yokmmsr/training/issues/events{/number}","events_url":"https://api.github.com/repos/yokmmsr/training/events","assignees_url":"https://api.github.com/repos/yokmmsr/training/assignees{/user}","branches_url":"https://api.github.com/repos/yokmmsr/training/branches{/branch}","tags_url":"https://api.github.com/repos/yokmmsr/training/tags","blobs_url":"https://api.github.com/repos/yokmmsr/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yokmmsr/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yokmmsr/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/yokmmsr/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yokmmsr/training/statuses/{sha}","languages_url":"https://api.github.com/repos/yokmmsr/training/languages","stargazers_url":"https://api.github.com/repos/yokmmsr/training/stargazers","contributors_url":"https://api.github.com/repos/yokmmsr/training/contributors","subscribers_url":"https://api.github.com/repos/yokmmsr/training/subscribers","subscription_url":"https://api.github.com/repos/yokmmsr/training/subscription","commits_url":"https://api.github.com/repos/yokmmsr/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/yokmmsr/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/yokmmsr/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/yokmmsr/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/yokmmsr/training/contents/{+path}","compare_url":"https://api.github.com/repos/yokmmsr/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yokmmsr/training/merges","archive_url":"https://api.github.com/repos/yokmmsr/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yokmmsr/training/downloads","issues_url":"https://api.github.com/repos/yokmmsr/training/issues{/number}","pulls_url":"https://api.github.com/repos/yokmmsr/training/pulls{/number}","milestones_url":"https://api.github.com/repos/yokmmsr/training/milestones{/number}","notifications_url":"https://api.github.com/repos/yokmmsr/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yokmmsr/training/labels{/name}","releases_url":"https://api.github.com/repos/yokmmsr/training/releases{/id}","deployments_url":"https://api.github.com/repos/yokmmsr/training/deployments","created_at":"2018-04-03T09:43:05Z","updated_at":"2018-05-29T09:07:52Z","pushed_at":"2018-05-31T02:47:50Z","git_url":"git://github.com/yokmmsr/training.git","ssh_url":"git@github.com:yokmmsr/training.git","clone_url":"https://github.com/yokmmsr/training.git","svn_url":"https://github.com/yokmmsr/training","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"Java","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,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yokmmsr:master","ref":"master","sha":"6029a4df380e4be8fc7afe4d7f4b92df00edc846","user":{"login":"yokmmsr","id":37994812,"node_id":"MDQ6VXNlcjM3OTk0ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/37994812?v=4","gravatar_id":"","url":"https://api.github.com/users/yokmmsr","html_url":"https://github.com/yokmmsr","followers_url":"https://api.github.com/users/yokmmsr/followers","following_url":"https://api.github.com/users/yokmmsr/following{/other_user}","gists_url":"https://api.github.com/users/yokmmsr/gists{/gist_id}","starred_url":"https://api.github.com/users/yokmmsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yokmmsr/subscriptions","organizations_url":"https://api.github.com/users/yokmmsr/orgs","repos_url":"https://api.github.com/users/yokmmsr/repos","events_url":"https://api.github.com/users/yokmmsr/events{/privacy}","received_events_url":"https://api.github.com/users/yokmmsr/received_events","type":"User","site_admin":false},"repo":{"id":127886124,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc4ODYxMjQ=","name":"training","full_name":"yokmmsr/training","owner":{"login":"yokmmsr","id":37994812,"node_id":"MDQ6VXNlcjM3OTk0ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/37994812?v=4","gravatar_id":"","url":"https://api.github.com/users/yokmmsr","html_url":"https://github.com/yokmmsr","followers_url":"https://api.github.com/users/yokmmsr/followers","following_url":"https://api.github.com/users/yokmmsr/following{/other_user}","gists_url":"https://api.github.com/users/yokmmsr/gists{/gist_id}","starred_url":"https://api.github.com/users/yokmmsr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yokmmsr/subscriptions","organizations_url":"https://api.github.com/users/yokmmsr/orgs","repos_url":"https://api.github.com/users/yokmmsr/repos","events_url":"https://api.github.com/users/yokmmsr/events{/privacy}","received_events_url":"https://api.github.com/users/yokmmsr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yokmmsr/training","description":null,"fork":false,"url":"https://api.github.com/repos/yokmmsr/training","forks_url":"https://api.github.com/repos/yokmmsr/training/forks","keys_url":"https://api.github.com/repos/yokmmsr/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yokmmsr/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yokmmsr/training/teams","hooks_url":"https://api.github.com/repos/yokmmsr/training/hooks","issue_events_url":"https://api.github.com/repos/yokmmsr/training/issues/events{/number}","events_url":"https://api.github.com/repos/yokmmsr/training/events","assignees_url":"https://api.github.com/repos/yokmmsr/training/assignees{/user}","branches_url":"https://api.github.com/repos/yokmmsr/training/branches{/branch}","tags_url":"https://api.github.com/repos/yokmmsr/training/tags","blobs_url":"https://api.github.com/repos/yokmmsr/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yokmmsr/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yokmmsr/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/yokmmsr/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yokmmsr/training/statuses/{sha}","languages_url":"https://api.github.com/repos/yokmmsr/training/languages","stargazers_url":"https://api.github.com/repos/yokmmsr/training/stargazers","contributors_url":"https://api.github.com/repos/yokmmsr/training/contributors","subscribers_url":"https://api.github.com/repos/yokmmsr/training/subscribers","subscription_url":"https://api.github.com/repos/yokmmsr/training/subscription","commits_url":"https://api.github.com/repos/yokmmsr/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/yokmmsr/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/yokmmsr/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/yokmmsr/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/yokmmsr/training/contents/{+path}","compare_url":"https://api.github.com/repos/yokmmsr/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yokmmsr/training/merges","archive_url":"https://api.github.com/repos/yokmmsr/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yokmmsr/training/downloads","issues_url":"https://api.github.com/repos/yokmmsr/training/issues{/number}","pulls_url":"https://api.github.com/repos/yokmmsr/training/pulls{/number}","milestones_url":"https://api.github.com/repos/yokmmsr/training/milestones{/number}","notifications_url":"https://api.github.com/repos/yokmmsr/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yokmmsr/training/labels{/name}","releases_url":"https://api.github.com/repos/yokmmsr/training/releases{/id}","deployments_url":"https://api.github.com/repos/yokmmsr/training/deployments","created_at":"2018-04-03T09:43:05Z","updated_at":"2018-05-29T09:07:52Z","pushed_at":"2018-05-31T02:47:50Z","git_url":"git://github.com/yokmmsr/training.git","ssh_url":"git@github.com:yokmmsr/training.git","clone_url":"https://github.com/yokmmsr/training.git","svn_url":"https://github.com/yokmmsr/training","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"Java","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,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/11"},"html":{"href":"https://github.com/yokmmsr/training/pull/11"},"issue":{"href":"https://api.github.com/repos/yokmmsr/training/issues/11"},"comments":{"href":"https://api.github.com/repos/yokmmsr/training/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yokmmsr/training/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/yokmmsr/training/statuses/33ab6e7ff55bb991fed3580c336fd2a65aac7452"}},"author_association":"OWNER"}}
{"actor":{"display_login":"4take"}}