{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/comments/124786189","pull_request_review_id":46984976,"id":124786189,"diff_hunk":"@@ -1,47 +1,50 @@\n+import {Answer, Settings, questions} from './data';\n+\n /**\n- * @param {Number} lives\n- * @param {Boolean} isAnswerCorrect\n- * @return {Number}\n+ * @param {number} lives\n+ * @param {boolean} isAnswerCorrect\n+ * @return {number}\n  */\n export const changeLives = (lives, isAnswerCorrect) => {\n   return isAnswerCorrect ? lives : Math.max((lives - 1), 0);\n };\n \n-\n /**\n- * @param {Number} currentQuestion\n- * @param {Number} maxQuestion\n- * @return {Number}\n+ * @param {number} level\n+ * @param {number} maxQuestion\n+ * @return {number}\n  */\n-export const changeCurrentQuestion = (currentQuestion, maxQuestion) => Math.min(currentQuestion + 1, maxQuestion);\n-\n+export const changeLevel = (level, maxQuestion) => Math.min(level + 1, maxQuestion);","path":"js/change-state.js","position":26,"original_position":26,"commit_id":"a30b966c18832db80d19042b7d18c0e3f4155801","original_commit_id":"a30b966c18832db80d19042b7d18c0e3f4155801","user":{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false},"body":"Не сосвем понятное название. Сменить можно по-разному. Я б называл что-то вроде `increaseLevel` .","created_at":"2017-06-29T12:31:27Z","updated_at":"2017-06-29T12:40:30Z","html_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9#discussion_r124786189","pull_request_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/comments/124786189"},"html":{"href":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9#discussion_r124786189"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9","id":126877772,"html_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9","diff_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9.diff","patch_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9.patch","issue_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/9","number":9,"state":"open","locked":false,"title":"Тотальный контроль","user":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars1.githubusercontent.com/u/3251438?v=3","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Тотальный контроль](https://up.htmlacademy.ru/ecmascript/2/user/42390/tasks/10)\n\n:boom: https://htmlacademy-ecmascript.github.io/42390-pixel-hunter/9/","created_at":"2017-06-21T22:53:29Z","updated_at":"2017-06-29T12:40:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de4879f9d9f13c9072000d69f98cc082b645a070","assignee":{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false},"assignees":[{"login":"o0","id":696826,"avatar_url":"https://avatars3.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/9/comments","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/statuses/a30b966c18832db80d19042b7d18c0e3f4155801","head":{"label":"fyvfyv:module6-task1","ref":"module6-task1","sha":"a30b966c18832db80d19042b7d18c0e3f4155801","user":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars1.githubusercontent.com/u/3251438?v=3","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"repo":{"id":92205744,"name":"42390-pixel-hunter","full_name":"fyvfyv/42390-pixel-hunter","owner":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars1.githubusercontent.com/u/3251438?v=3","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fyvfyv/42390-pixel-hunter","description":"Олег Петров","fork":true,"url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter","forks_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/forks","keys_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/events","assignees_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/merges","archive_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/fyvfyv/42390-pixel-hunter/deployments","created_at":"2017-05-23T18:23:12Z","updated_at":"2017-05-31T09:25:47Z","pushed_at":"2017-06-28T21:08:13Z","git_url":"git://github.com/fyvfyv/42390-pixel-hunter.git","ssh_url":"git@github.com:fyvfyv/42390-pixel-hunter.git","clone_url":"https://github.com/fyvfyv/42390-pixel-hunter.git","svn_url":"https://github.com/fyvfyv/42390-pixel-hunter","homepage":null,"size":602,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-ecmascript:master","ref":"master","sha":"fef5a402f034b076875aad92d699484a5bb525ff","user":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars1.githubusercontent.com/u/22890904?v=3","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":92205548,"name":"42390-pixel-hunter","full_name":"htmlacademy-ecmascript/42390-pixel-hunter","owner":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars1.githubusercontent.com/u/22890904?v=3","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/42390-pixel-hunter","description":"Олег Петров","fork":false,"url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter","forks_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/forks","keys_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/events","assignees_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/merges","archive_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/deployments","created_at":"2017-05-23T18:20:58Z","updated_at":"2017-05-31T09:25:19Z","pushed_at":"2017-06-28T21:11:53Z","git_url":"git://github.com/htmlacademy-ecmascript/42390-pixel-hunter.git","ssh_url":"git@github.com:htmlacademy-ecmascript/42390-pixel-hunter.git","clone_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter.git","svn_url":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter","homepage":"https://github.com/fyvfyv/42390-pixel-hunter","size":680,"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,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9"},"html":{"href":"https://github.com/htmlacademy-ecmascript/42390-pixel-hunter/pull/9"},"issue":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/9"},"comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/42390-pixel-hunter/statuses/a30b966c18832db80d19042b7d18c0e3f4155801"}}}}
{"actor":{"display_login":"o0"}}