{"action":"created","comment":{"url":"https://api.github.com/repos/dguchi/tryout/pulls/comments/211069699","pull_request_review_id":147424598,"id":211069699,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTA2OTY5OQ==","diff_hunk":"@@ -0,0 +1,115 @@\n+// 課題3：じゃんけん\n+;(function() {\n+  'use strict'\n+\n+  // メッセージ定義\n+  const MSG_DRAW = '「アイコでしょ！」'\n+  const MSG_LOSE = '「あなたの負け！」'\n+  const MSG_WIN = '「あなたの勝ち！」'\n+  const MSG_HAND = ['グー', 'チョキ', 'パー']\n+  const MSG_ERR = '不正な値が入力されました'\n+\n+  // じゃんけん最大値+1\n+  const RPS_MAX = 3\n+\n+  // ランダムで0〜max-1の値を返す関数\n+  function getRandomInt(max) {\n+    return Math.floor(Math.random() * Math.floor(max))\n+  }\n+\n+  // 開始用合図\n+  const outStart = () => {\n+    console.log('「じゃんけん・・・」')\n+    console.log('> 0.グー 1.チョキ 2.パー')\n+  }\n+\n+  // 入力値チェック(NGの場合はnullを返却)\n+  const checkInput = input => {\n+    let ret = null\n+    // 入力は0,1,2のみ受け付ける\n+    if (!isNaN(input)) {\n+      const num = Number(input)\n+      if (Number.isInteger(num)) {\n+        if (num >= 0 && num <= 2) {\n+          ret = num\n+        }\n+      }\n+    }\n+\n+    return ret\n+  }\n+\n+  // じゃんけん用クラス\n+  class RockPaperScissors {","path":"Rock-Paper-Scissors/scripts/main.js","position":43,"original_position":43,"commit_id":"3b8610cbe8e921809c54434d14f43109fdcc2071","original_commit_id":"3b8610cbe8e921809c54434d14f43109fdcc2071","user":{"login":"tanaka-yoshi10","id":6820311,"node_id":"MDQ6VXNlcjY4MjAzMTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6820311?v=4","gravatar_id":"","url":"https://api.github.com/users/tanaka-yoshi10","html_url":"https://github.com/tanaka-yoshi10","followers_url":"https://api.github.com/users/tanaka-yoshi10/followers","following_url":"https://api.github.com/users/tanaka-yoshi10/following{/other_user}","gists_url":"https://api.github.com/users/tanaka-yoshi10/gists{/gist_id}","starred_url":"https://api.github.com/users/tanaka-yoshi10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanaka-yoshi10/subscriptions","organizations_url":"https://api.github.com/users/tanaka-yoshi10/orgs","repos_url":"https://api.github.com/users/tanaka-yoshi10/repos","events_url":"https://api.github.com/users/tanaka-yoshi10/events{/privacy}","received_events_url":"https://api.github.com/users/tanaka-yoshi10/received_events","type":"User","site_admin":false},"body":"class化した狙いは何かありますか？","created_at":"2018-08-18T09:08:30Z","updated_at":"2018-08-18T09:13:32Z","html_url":"https://github.com/dguchi/tryout/pull/1#discussion_r211069699","pull_request_url":"https://api.github.com/repos/dguchi/tryout/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dguchi/tryout/pulls/comments/211069699"},"html":{"href":"https://github.com/dguchi/tryout/pull/1#discussion_r211069699"},"pull_request":{"href":"https://api.github.com/repos/dguchi/tryout/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dguchi/tryout/pulls/1","id":208141594,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MTQxNTk0","html_url":"https://github.com/dguchi/tryout/pull/1","diff_url":"https://github.com/dguchi/tryout/pull/1.diff","patch_url":"https://github.com/dguchi/tryout/pull/1.patch","issue_url":"https://api.github.com/repos/dguchi/tryout/issues/1","number":1,"state":"open","locked":false,"title":"JavaScript課題","user":{"login":"dguchi","id":33976459,"node_id":"MDQ6VXNlcjMzOTc2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/33976459?v=4","gravatar_id":"","url":"https://api.github.com/users/dguchi","html_url":"https://github.com/dguchi","followers_url":"https://api.github.com/users/dguchi/followers","following_url":"https://api.github.com/users/dguchi/following{/other_user}","gists_url":"https://api.github.com/users/dguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguchi/subscriptions","organizations_url":"https://api.github.com/users/dguchi/orgs","repos_url":"https://api.github.com/users/dguchi/repos","events_url":"https://api.github.com/users/dguchi/events{/privacy}","received_events_url":"https://api.github.com/users/dguchi/received_events","type":"User","site_admin":false},"body":"各課題は下記フォルダの/scripts/main.jsに実装しています。\r\n課題１：FizzBuzz\r\n課題２：StrHash\r\n課題３：Rock-Paper-Scissors\r\n課題４：Recursion\r\n","created_at":"2018-08-14T00:48:26Z","updated_at":"2018-08-18T09:13:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de4217778933a93af478803749687e8956237aee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dguchi/tryout/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dguchi/tryout/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dguchi/tryout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dguchi/tryout/issues/1/comments","statuses_url":"https://api.github.com/repos/dguchi/tryout/statuses/3b8610cbe8e921809c54434d14f43109fdcc2071","head":{"label":"dguchi:develop","ref":"develop","sha":"3b8610cbe8e921809c54434d14f43109fdcc2071","user":{"login":"dguchi","id":33976459,"node_id":"MDQ6VXNlcjMzOTc2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/33976459?v=4","gravatar_id":"","url":"https://api.github.com/users/dguchi","html_url":"https://github.com/dguchi","followers_url":"https://api.github.com/users/dguchi/followers","following_url":"https://api.github.com/users/dguchi/following{/other_user}","gists_url":"https://api.github.com/users/dguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguchi/subscriptions","organizations_url":"https://api.github.com/users/dguchi/orgs","repos_url":"https://api.github.com/users/dguchi/repos","events_url":"https://api.github.com/users/dguchi/events{/privacy}","received_events_url":"https://api.github.com/users/dguchi/received_events","type":"User","site_admin":false},"repo":{"id":143368496,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMzNjg0OTY=","name":"tryout","full_name":"dguchi/tryout","owner":{"login":"dguchi","id":33976459,"node_id":"MDQ6VXNlcjMzOTc2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/33976459?v=4","gravatar_id":"","url":"https://api.github.com/users/dguchi","html_url":"https://github.com/dguchi","followers_url":"https://api.github.com/users/dguchi/followers","following_url":"https://api.github.com/users/dguchi/following{/other_user}","gists_url":"https://api.github.com/users/dguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguchi/subscriptions","organizations_url":"https://api.github.com/users/dguchi/orgs","repos_url":"https://api.github.com/users/dguchi/repos","events_url":"https://api.github.com/users/dguchi/events{/privacy}","received_events_url":"https://api.github.com/users/dguchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dguchi/tryout","description":"トライアウト用リポジトリ","fork":false,"url":"https://api.github.com/repos/dguchi/tryout","forks_url":"https://api.github.com/repos/dguchi/tryout/forks","keys_url":"https://api.github.com/repos/dguchi/tryout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dguchi/tryout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dguchi/tryout/teams","hooks_url":"https://api.github.com/repos/dguchi/tryout/hooks","issue_events_url":"https://api.github.com/repos/dguchi/tryout/issues/events{/number}","events_url":"https://api.github.com/repos/dguchi/tryout/events","assignees_url":"https://api.github.com/repos/dguchi/tryout/assignees{/user}","branches_url":"https://api.github.com/repos/dguchi/tryout/branches{/branch}","tags_url":"https://api.github.com/repos/dguchi/tryout/tags","blobs_url":"https://api.github.com/repos/dguchi/tryout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dguchi/tryout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dguchi/tryout/git/refs{/sha}","trees_url":"https://api.github.com/repos/dguchi/tryout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dguchi/tryout/statuses/{sha}","languages_url":"https://api.github.com/repos/dguchi/tryout/languages","stargazers_url":"https://api.github.com/repos/dguchi/tryout/stargazers","contributors_url":"https://api.github.com/repos/dguchi/tryout/contributors","subscribers_url":"https://api.github.com/repos/dguchi/tryout/subscribers","subscription_url":"https://api.github.com/repos/dguchi/tryout/subscription","commits_url":"https://api.github.com/repos/dguchi/tryout/commits{/sha}","git_commits_url":"https://api.github.com/repos/dguchi/tryout/git/commits{/sha}","comments_url":"https://api.github.com/repos/dguchi/tryout/comments{/number}","issue_comment_url":"https://api.github.com/repos/dguchi/tryout/issues/comments{/number}","contents_url":"https://api.github.com/repos/dguchi/tryout/contents/{+path}","compare_url":"https://api.github.com/repos/dguchi/tryout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dguchi/tryout/merges","archive_url":"https://api.github.com/repos/dguchi/tryout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dguchi/tryout/downloads","issues_url":"https://api.github.com/repos/dguchi/tryout/issues{/number}","pulls_url":"https://api.github.com/repos/dguchi/tryout/pulls{/number}","milestones_url":"https://api.github.com/repos/dguchi/tryout/milestones{/number}","notifications_url":"https://api.github.com/repos/dguchi/tryout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dguchi/tryout/labels{/name}","releases_url":"https://api.github.com/repos/dguchi/tryout/releases{/id}","deployments_url":"https://api.github.com/repos/dguchi/tryout/deployments","created_at":"2018-08-03T02:40:37Z","updated_at":"2018-08-03T02:49:39Z","pushed_at":"2018-08-14T00:48:26Z","git_url":"git://github.com/dguchi/tryout.git","ssh_url":"git@github.com:dguchi/tryout.git","clone_url":"https://github.com/dguchi/tryout.git","svn_url":"https://github.com/dguchi/tryout","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"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":"dguchi:master","ref":"master","sha":"93df0441794c72ce3aae22a25e46b68e9a676819","user":{"login":"dguchi","id":33976459,"node_id":"MDQ6VXNlcjMzOTc2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/33976459?v=4","gravatar_id":"","url":"https://api.github.com/users/dguchi","html_url":"https://github.com/dguchi","followers_url":"https://api.github.com/users/dguchi/followers","following_url":"https://api.github.com/users/dguchi/following{/other_user}","gists_url":"https://api.github.com/users/dguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguchi/subscriptions","organizations_url":"https://api.github.com/users/dguchi/orgs","repos_url":"https://api.github.com/users/dguchi/repos","events_url":"https://api.github.com/users/dguchi/events{/privacy}","received_events_url":"https://api.github.com/users/dguchi/received_events","type":"User","site_admin":false},"repo":{"id":143368496,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMzNjg0OTY=","name":"tryout","full_name":"dguchi/tryout","owner":{"login":"dguchi","id":33976459,"node_id":"MDQ6VXNlcjMzOTc2NDU5","avatar_url":"https://avatars0.githubusercontent.com/u/33976459?v=4","gravatar_id":"","url":"https://api.github.com/users/dguchi","html_url":"https://github.com/dguchi","followers_url":"https://api.github.com/users/dguchi/followers","following_url":"https://api.github.com/users/dguchi/following{/other_user}","gists_url":"https://api.github.com/users/dguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/dguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dguchi/subscriptions","organizations_url":"https://api.github.com/users/dguchi/orgs","repos_url":"https://api.github.com/users/dguchi/repos","events_url":"https://api.github.com/users/dguchi/events{/privacy}","received_events_url":"https://api.github.com/users/dguchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dguchi/tryout","description":"トライアウト用リポジトリ","fork":false,"url":"https://api.github.com/repos/dguchi/tryout","forks_url":"https://api.github.com/repos/dguchi/tryout/forks","keys_url":"https://api.github.com/repos/dguchi/tryout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dguchi/tryout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dguchi/tryout/teams","hooks_url":"https://api.github.com/repos/dguchi/tryout/hooks","issue_events_url":"https://api.github.com/repos/dguchi/tryout/issues/events{/number}","events_url":"https://api.github.com/repos/dguchi/tryout/events","assignees_url":"https://api.github.com/repos/dguchi/tryout/assignees{/user}","branches_url":"https://api.github.com/repos/dguchi/tryout/branches{/branch}","tags_url":"https://api.github.com/repos/dguchi/tryout/tags","blobs_url":"https://api.github.com/repos/dguchi/tryout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dguchi/tryout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dguchi/tryout/git/refs{/sha}","trees_url":"https://api.github.com/repos/dguchi/tryout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dguchi/tryout/statuses/{sha}","languages_url":"https://api.github.com/repos/dguchi/tryout/languages","stargazers_url":"https://api.github.com/repos/dguchi/tryout/stargazers","contributors_url":"https://api.github.com/repos/dguchi/tryout/contributors","subscribers_url":"https://api.github.com/repos/dguchi/tryout/subscribers","subscription_url":"https://api.github.com/repos/dguchi/tryout/subscription","commits_url":"https://api.github.com/repos/dguchi/tryout/commits{/sha}","git_commits_url":"https://api.github.com/repos/dguchi/tryout/git/commits{/sha}","comments_url":"https://api.github.com/repos/dguchi/tryout/comments{/number}","issue_comment_url":"https://api.github.com/repos/dguchi/tryout/issues/comments{/number}","contents_url":"https://api.github.com/repos/dguchi/tryout/contents/{+path}","compare_url":"https://api.github.com/repos/dguchi/tryout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dguchi/tryout/merges","archive_url":"https://api.github.com/repos/dguchi/tryout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dguchi/tryout/downloads","issues_url":"https://api.github.com/repos/dguchi/tryout/issues{/number}","pulls_url":"https://api.github.com/repos/dguchi/tryout/pulls{/number}","milestones_url":"https://api.github.com/repos/dguchi/tryout/milestones{/number}","notifications_url":"https://api.github.com/repos/dguchi/tryout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dguchi/tryout/labels{/name}","releases_url":"https://api.github.com/repos/dguchi/tryout/releases{/id}","deployments_url":"https://api.github.com/repos/dguchi/tryout/deployments","created_at":"2018-08-03T02:40:37Z","updated_at":"2018-08-03T02:49:39Z","pushed_at":"2018-08-14T00:48:26Z","git_url":"git://github.com/dguchi/tryout.git","ssh_url":"git@github.com:dguchi/tryout.git","clone_url":"https://github.com/dguchi/tryout.git","svn_url":"https://github.com/dguchi/tryout","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"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/dguchi/tryout/pulls/1"},"html":{"href":"https://github.com/dguchi/tryout/pull/1"},"issue":{"href":"https://api.github.com/repos/dguchi/tryout/issues/1"},"comments":{"href":"https://api.github.com/repos/dguchi/tryout/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dguchi/tryout/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dguchi/tryout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dguchi/tryout/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dguchi/tryout/statuses/3b8610cbe8e921809c54434d14f43109fdcc2071"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tanaka-yoshi10"}}