{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/comments/97165024","pull_request_review_id":17774462,"id":97165024,"diff_hunk":"@@ -32,6 +32,35 @@ <h1 class=\"header-title section-title\">\n                                                               width=\"130\">Сделано в HTML Academy</a>в 2017 году</p>\n </footer>\n \n+<script>\n+\n+  'use strict';\n+\n+  var fireballSize = 22;\n+\n+  function getFireballSpeed(left) {\n+    if (left) {\n+      return 5;\n+    } else return 2;\n+  }\n+\n+  var wizardSpeed = 3;\n+  var wizardWidth = 70;\n+\n+  function getWizardHeight() {\n+    return 1.337 * wizardWidth;\n+  }\n+\n+  function getWizardX(width) {\n+    return 300; // здесь сомнения","path":"index.html","position":24,"original_position":24,"commit_id":"779c08978919b7cc33d788c4fc72eceec67624c8","original_commit_id":"779c08978919b7cc33d788c4fc72eceec67624c8","user":{"login":"andreevWork","id":12683454,"avatar_url":"https://avatars.githubusercontent.com/u/12683454?v=3","gravatar_id":"","url":"https://api.github.com/users/andreevWork","html_url":"https://github.com/andreevWork","followers_url":"https://api.github.com/users/andreevWork/followers","following_url":"https://api.github.com/users/andreevWork/following{/other_user}","gists_url":"https://api.github.com/users/andreevWork/gists{/gist_id}","starred_url":"https://api.github.com/users/andreevWork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreevWork/subscriptions","organizations_url":"https://api.github.com/users/andreevWork/orgs","repos_url":"https://api.github.com/users/andreevWork/repos","events_url":"https://api.github.com/users/andreevWork/events{/privacy}","received_events_url":"https://api.github.com/users/andreevWork/received_events","type":"User","site_admin":false},"body":"А тут надо просто на основании переданной переменной вычислить значение и вернуть его, в данном случае, будет \r\n``` return width / 2; ```\r\nТо есть половина ширины, значит маг будет точно посередине, при любой ширине.","created_at":"2017-01-20T22:03:52Z","updated_at":"2017-01-20T22:03:52Z","html_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1#discussion_r97165024","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/comments/97165024"},"html":{"href":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1#discussion_r97165024"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1","id":102530689,"html_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1","diff_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1.diff","patch_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/1","number":1,"state":"open","locked":false,"title":"Учебный проект: начинаем программировать","user":{"login":"seconduser","id":8398651,"avatar_url":"https://avatars.githubusercontent.com/u/8398651?v=3","gravatar_id":"","url":"https://api.github.com/users/seconduser","html_url":"https://github.com/seconduser","followers_url":"https://api.github.com/users/seconduser/followers","following_url":"https://api.github.com/users/seconduser/following{/other_user}","gists_url":"https://api.github.com/users/seconduser/gists{/gist_id}","starred_url":"https://api.github.com/users/seconduser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seconduser/subscriptions","organizations_url":"https://api.github.com/users/seconduser/orgs","repos_url":"https://api.github.com/users/seconduser/repos","events_url":"https://api.github.com/users/seconduser/events{/privacy}","received_events_url":"https://api.github.com/users/seconduser/received_events","type":"User","site_admin":false},"body":"Есть сомнения с этим заданием:\r\n\r\n> Определите функцию getWizardX c одним параметром — width. Игра будет вызывать вашу функцию и передавать в неё этот параметр (который обозначает ширину игровой области). Результат, возвращаемый вашей функцией, игра будет использовать, чтобы задать положение мага по горизонтали. Напишите функцию так, чтобы центр фигурки мага находился посередине игрового поля.\n\n---\n:mortar_board: [Учебный проект: начинаем программировать](https://up.htmlacademy.ru/javascript/8/user/11320/tasks/6)\n\n:boom: https://htmlacademy-javascript.github.io/11320-code-and-magick/1/","created_at":"2017-01-20T20:29:20Z","updated_at":"2017-01-20T22:03:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"647db4f820b484c82ac8b6b18030d8ebc8752934","assignee":{"login":"andreevWork","id":12683454,"avatar_url":"https://avatars.githubusercontent.com/u/12683454?v=3","gravatar_id":"","url":"https://api.github.com/users/andreevWork","html_url":"https://github.com/andreevWork","followers_url":"https://api.github.com/users/andreevWork/followers","following_url":"https://api.github.com/users/andreevWork/following{/other_user}","gists_url":"https://api.github.com/users/andreevWork/gists{/gist_id}","starred_url":"https://api.github.com/users/andreevWork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreevWork/subscriptions","organizations_url":"https://api.github.com/users/andreevWork/orgs","repos_url":"https://api.github.com/users/andreevWork/repos","events_url":"https://api.github.com/users/andreevWork/events{/privacy}","received_events_url":"https://api.github.com/users/andreevWork/received_events","type":"User","site_admin":false},"assignees":[{"login":"andreevWork","id":12683454,"avatar_url":"https://avatars.githubusercontent.com/u/12683454?v=3","gravatar_id":"","url":"https://api.github.com/users/andreevWork","html_url":"https://github.com/andreevWork","followers_url":"https://api.github.com/users/andreevWork/followers","following_url":"https://api.github.com/users/andreevWork/following{/other_user}","gists_url":"https://api.github.com/users/andreevWork/gists{/gist_id}","starred_url":"https://api.github.com/users/andreevWork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreevWork/subscriptions","organizations_url":"https://api.github.com/users/andreevWork/orgs","repos_url":"https://api.github.com/users/andreevWork/repos","events_url":"https://api.github.com/users/andreevWork/events{/privacy}","received_events_url":"https://api.github.com/users/andreevWork/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/1/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/statuses/779c08978919b7cc33d788c4fc72eceec67624c8","head":{"label":"seconduser:module1-task2","ref":"module1-task2","sha":"779c08978919b7cc33d788c4fc72eceec67624c8","user":{"login":"seconduser","id":8398651,"avatar_url":"https://avatars.githubusercontent.com/u/8398651?v=3","gravatar_id":"","url":"https://api.github.com/users/seconduser","html_url":"https://github.com/seconduser","followers_url":"https://api.github.com/users/seconduser/followers","following_url":"https://api.github.com/users/seconduser/following{/other_user}","gists_url":"https://api.github.com/users/seconduser/gists{/gist_id}","starred_url":"https://api.github.com/users/seconduser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seconduser/subscriptions","organizations_url":"https://api.github.com/users/seconduser/orgs","repos_url":"https://api.github.com/users/seconduser/repos","events_url":"https://api.github.com/users/seconduser/events{/privacy}","received_events_url":"https://api.github.com/users/seconduser/received_events","type":"User","site_admin":false},"repo":{"id":79376350,"name":"11320-code-and-magick","full_name":"seconduser/11320-code-and-magick","owner":{"login":"seconduser","id":8398651,"avatar_url":"https://avatars.githubusercontent.com/u/8398651?v=3","gravatar_id":"","url":"https://api.github.com/users/seconduser","html_url":"https://github.com/seconduser","followers_url":"https://api.github.com/users/seconduser/followers","following_url":"https://api.github.com/users/seconduser/following{/other_user}","gists_url":"https://api.github.com/users/seconduser/gists{/gist_id}","starred_url":"https://api.github.com/users/seconduser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seconduser/subscriptions","organizations_url":"https://api.github.com/users/seconduser/orgs","repos_url":"https://api.github.com/users/seconduser/repos","events_url":"https://api.github.com/users/seconduser/events{/privacy}","received_events_url":"https://api.github.com/users/seconduser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seconduser/11320-code-and-magick","description":"Алексей Мягков","fork":true,"url":"https://api.github.com/repos/seconduser/11320-code-and-magick","forks_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/forks","keys_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/teams","hooks_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/events","assignees_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/tags","blobs_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/subscription","commits_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/merges","archive_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/downloads","issues_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/seconduser/11320-code-and-magick/deployments","created_at":"2017-01-18T19:34:08Z","updated_at":"2017-01-18T19:34:10Z","pushed_at":"2017-01-20T20:26:10Z","git_url":"git://github.com/seconduser/11320-code-and-magick.git","ssh_url":"git@github.com:seconduser/11320-code-and-magick.git","clone_url":"https://github.com/seconduser/11320-code-and-magick.git","svn_url":"https://github.com/seconduser/11320-code-and-magick","homepage":null,"size":1073,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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-javascript:master","ref":"master","sha":"b83c13411b3f6670d9ed6b44e695b1431e4440ef","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":79373772,"name":"11320-code-and-magick","full_name":"htmlacademy-javascript/11320-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick","description":"Алексей Мягков","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/deployments","created_at":"2017-01-18T19:06:17Z","updated_at":"2017-01-20T20:29:38Z","pushed_at":"2017-01-20T21:59:38Z","git_url":"git://github.com/htmlacademy-javascript/11320-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/11320-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/11320-code-and-magick","homepage":"https://github.com/seconduser/11320-code-and-magick","size":1073,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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-javascript/11320-code-and-magick/pulls/1"},"html":{"href":"https://github.com/htmlacademy-javascript/11320-code-and-magick/pull/1"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/1"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/11320-code-and-magick/statuses/779c08978919b7cc33d788c4fc72eceec67624c8"}}}}
{"actor":{"display_login":"andreevWork"}}