{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/comments/194218014","pull_request_review_id":127356429,"id":194218014,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDIxODAxNA==","diff_hunk":"@@ -0,0 +1,18 @@\n+const countPoints = (answers, lives) => {\n+  let sum = 0;","path":"js/data/points-counter.js","position":10,"original_position":2,"commit_id":"26f137c2aab9bf13e6d072c52a8ccc5ca7d020c4","original_commit_id":"d0a1c9b8083773281643c2d43660487dbc1180ba","user":{"login":"OleksandrLz","id":23139535,"node_id":"MDQ6VXNlcjIzMTM5NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/23139535?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksandrLz","html_url":"https://github.com/OleksandrLz","followers_url":"https://api.github.com/users/OleksandrLz/followers","following_url":"https://api.github.com/users/OleksandrLz/following{/other_user}","gists_url":"https://api.github.com/users/OleksandrLz/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksandrLz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksandrLz/subscriptions","organizations_url":"https://api.github.com/users/OleksandrLz/orgs","repos_url":"https://api.github.com/users/OleksandrLz/repos","events_url":"https://api.github.com/users/OleksandrLz/events{/privacy}","received_events_url":"https://api.github.com/users/OleksandrLz/received_events","type":"User","site_admin":false},"body":"Переписал, но теперь не правильно отрабатывает\r\n\r\nconst countPoints = (answers, lives) => {\r\n\r\n  return answers.reduce(\r\n      (acc, answer, index, array) => {\r\n        if (array.length < MIN_RIGHT_ANSWERS) {\r\n          return -1;\r\n        }\r\n        if (answer.correctAnswer) {\r\n          acc += RIGHT_ANSWER_POINTS;\r\n          acc += answer.answerTime < FAST_ANSWER_TIME ? FAST_ANSWER_POINTS : 0;\r\n          acc -= answer.answerTime > SLOW_ANSWER_TIME ? SLOW_ANSWER_POINTS : 0;\r\n        }\r\n        return acc + (lives * LIFE_BONUS);\r\n      }, 0\r\n  );\r\n};","created_at":"2018-06-09T07:38:13Z","updated_at":"2018-06-09T07:38:13Z","html_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5#discussion_r194218014","pull_request_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/comments/194218014"},"html":{"href":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5#discussion_r194218014"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5"}},"in_reply_to_id":193533546},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5","id":193102218,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMTAyMjE4","html_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5","diff_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5.diff","patch_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5.patch","issue_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/5","number":5,"state":"open","locked":false,"title":"Начнём с конца","user":{"login":"OleksandrLz","id":23139535,"node_id":"MDQ6VXNlcjIzMTM5NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/23139535?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksandrLz","html_url":"https://github.com/OleksandrLz","followers_url":"https://api.github.com/users/OleksandrLz/followers","following_url":"https://api.github.com/users/OleksandrLz/following{/other_user}","gists_url":"https://api.github.com/users/OleksandrLz/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksandrLz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksandrLz/subscriptions","organizations_url":"https://api.github.com/users/OleksandrLz/orgs","repos_url":"https://api.github.com/users/OleksandrLz/repos","events_url":"https://api.github.com/users/OleksandrLz/events{/privacy}","received_events_url":"https://api.github.com/users/OleksandrLz/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Начнём с конца](https://up.htmlacademy.ru/ecmascript/5/user/254439/tasks/6)\n\n:boom: https://htmlacademy-ecmascript.github.io/254439-pixel-hunter/5/","created_at":"2018-06-06T18:32:53Z","updated_at":"2018-06-09T07:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f0d784cd2dedd5ece16c3173c02cecf1565026b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/5/comments","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/statuses/26f137c2aab9bf13e6d072c52a8ccc5ca7d020c4","head":{"label":"OleksandrLz:module3-task2","ref":"module3-task2","sha":"26f137c2aab9bf13e6d072c52a8ccc5ca7d020c4","user":{"login":"OleksandrLz","id":23139535,"node_id":"MDQ6VXNlcjIzMTM5NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/23139535?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksandrLz","html_url":"https://github.com/OleksandrLz","followers_url":"https://api.github.com/users/OleksandrLz/followers","following_url":"https://api.github.com/users/OleksandrLz/following{/other_user}","gists_url":"https://api.github.com/users/OleksandrLz/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksandrLz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksandrLz/subscriptions","organizations_url":"https://api.github.com/users/OleksandrLz/orgs","repos_url":"https://api.github.com/users/OleksandrLz/repos","events_url":"https://api.github.com/users/OleksandrLz/events{/privacy}","received_events_url":"https://api.github.com/users/OleksandrLz/received_events","type":"User","site_admin":false},"repo":{"id":135336813,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMzY4MTM=","name":"254439-pixel-hunter","full_name":"OleksandrLz/254439-pixel-hunter","owner":{"login":"OleksandrLz","id":23139535,"node_id":"MDQ6VXNlcjIzMTM5NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/23139535?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksandrLz","html_url":"https://github.com/OleksandrLz","followers_url":"https://api.github.com/users/OleksandrLz/followers","following_url":"https://api.github.com/users/OleksandrLz/following{/other_user}","gists_url":"https://api.github.com/users/OleksandrLz/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksandrLz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksandrLz/subscriptions","organizations_url":"https://api.github.com/users/OleksandrLz/orgs","repos_url":"https://api.github.com/users/OleksandrLz/repos","events_url":"https://api.github.com/users/OleksandrLz/events{/privacy}","received_events_url":"https://api.github.com/users/OleksandrLz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OleksandrLz/254439-pixel-hunter","description":"Александр Лазаренко","fork":true,"url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter","forks_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/forks","keys_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/events","assignees_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/merges","archive_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/OleksandrLz/254439-pixel-hunter/deployments","created_at":"2018-05-29T18:24:55Z","updated_at":"2018-06-04T12:07:52Z","pushed_at":"2018-06-06T21:03:13Z","git_url":"git://github.com/OleksandrLz/254439-pixel-hunter.git","ssh_url":"git@github.com:OleksandrLz/254439-pixel-hunter.git","clone_url":"https://github.com/OleksandrLz/254439-pixel-hunter.git","svn_url":"https://github.com/OleksandrLz/254439-pixel-hunter","homepage":null,"size":658,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"htmlacademy-ecmascript:master","ref":"master","sha":"4b91e55fff7b111bf5f667a6e746bd9031f7445e","user":{"login":"htmlacademy-ecmascript","id":22890904,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODkwOTA0","avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"repo":{"id":135336574,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMzY1NzQ=","name":"254439-pixel-hunter","full_name":"htmlacademy-ecmascript/254439-pixel-hunter","owner":{"login":"htmlacademy-ecmascript","id":22890904,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODkwOTA0","avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter","description":"Александр Лазаренко","fork":false,"url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter","forks_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/forks","keys_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/events","assignees_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/merges","archive_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/deployments","created_at":"2018-05-29T18:22:51Z","updated_at":"2018-06-06T19:29:58Z","pushed_at":"2018-06-06T21:03:16Z","git_url":"git://github.com/htmlacademy-ecmascript/254439-pixel-hunter.git","ssh_url":"git@github.com:htmlacademy-ecmascript/254439-pixel-hunter.git","clone_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter.git","svn_url":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter","homepage":"https://github.com/OleksandrLz/254439-pixel-hunter","size":674,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5"},"html":{"href":"https://github.com/htmlacademy-ecmascript/254439-pixel-hunter/pull/5"},"issue":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/5"},"comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/254439-pixel-hunter/statuses/26f137c2aab9bf13e6d072c52a8ccc5ca7d020c4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"OleksandrLz"}}