{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/comments/181231738","pull_request_review_id":111807224,"id":181231738,"diff_hunk":"@@ -0,0 +1,192 @@\n+'use strict';\n+\n+var ESC_KEYCODE = 27;\n+var ENTER_KEYCODE = 13;\n+var WIZARDS_NUMBER = 4;\n+\n+var WIZARDS_NAMES = [\n+  'Иван',\n+  'Хуан Себастьян',\n+  'Мария',\n+  'Кристоф',\n+  'Виктор',\n+  'Юлия',\n+  'Люпита',\n+  'Вашингтон'\n+];\n+\n+var WIZARDS_SURNAMES = [\n+  'да Марья',\n+  'Верон',\n+  'Мирабелла',\n+  'Вальц',\n+  'Онопко',\n+  'Топольницкая',\n+  'Нионго',\n+  'Ирвинг'\n+];\n+\n+var WIZARDS_COATS_COLORS = [\n+  'rgb(101, 137, 164)',\n+  'rgb(241, 43, 107)',\n+  'rgb(146, 100, 161)',\n+  'rgb(56, 159, 117)',\n+  'rgb(215, 210, 55)',\n+  'rgb(0, 0, 0)'\n+];\n+\n+var WIZARDS_EYES_COLORS = [\n+  'black',\n+  'red',\n+  'blue',\n+  'yellow',\n+  'green'\n+];\n+\n+var FIREBALL_COLORS = [\n+  '#ee4830',\n+  '#30a8ee',\n+  '#5ce6c0',\n+  '#e848d5',\n+  '#e6e848'\n+];\n+\n+var similarWizardTemplate = document.querySelector('#similar-wizard-template').content;\n+var setupSimilarList = document.querySelector('.setup-similar-list');\n+\n+// Получаю случайное число\n+var getRandomNumber = function (min, max) {\n+  return Math.floor(Math.random() * (max - min) + min);\n+};\n+\n+// Делаю рокировочку\n+var swapElements = function (array, index1, index2) {\n+  var temporaryValue = array[index1];\n+  array[index1] = array[index2];\n+  array[index2] = temporaryValue;\n+};\n+\n+// Перемешиваю массив\n+var shuffleArray = function (array) {\n+  for (var i = 0; i < array.length; i++) {\n+    var randomIndex = Math.floor(Math.random() * i);","path":"js/setup.js","position":72,"original_position":72,"commit_id":"dff5d1c4dd9ae5a09385fc8c3af7a040bf58ab36","original_commit_id":"dff5d1c4dd9ae5a09385fc8c3af7a040bf58ab36","user":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"body":"Кажется, у тебя есть специальная функция для генерации случайных числе, давай использовать её?","created_at":"2018-04-12T21:47:17Z","updated_at":"2018-04-12T21:53:35Z","html_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3#discussion_r181231738","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/comments/181231738"},"html":{"href":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3#discussion_r181231738"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3","id":180715960,"html_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3","diff_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3.diff","patch_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/3","number":3,"state":"open","locked":false,"title":"Учебный проект: нас орда","user":{"login":"tenthreee","id":25146266,"avatar_url":"https://avatars0.githubusercontent.com/u/25146266?v=4","gravatar_id":"","url":"https://api.github.com/users/tenthreee","html_url":"https://github.com/tenthreee","followers_url":"https://api.github.com/users/tenthreee/followers","following_url":"https://api.github.com/users/tenthreee/following{/other_user}","gists_url":"https://api.github.com/users/tenthreee/gists{/gist_id}","starred_url":"https://api.github.com/users/tenthreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenthreee/subscriptions","organizations_url":"https://api.github.com/users/tenthreee/orgs","repos_url":"https://api.github.com/users/tenthreee/repos","events_url":"https://api.github.com/users/tenthreee/events{/privacy}","received_events_url":"https://api.github.com/users/tenthreee/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: нас орда](https://up.htmlacademy.ru/javascript/13/user/345843/tasks/12)\n\n:boom: https://htmlacademy-javascript.github.io/345843-code-and-magick/3/","created_at":"2018-04-10T20:18:19Z","updated_at":"2018-04-12T21:53:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dee9c0da760e09a23dc6fe1089671aa3db835b0c","assignee":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"assignees":[{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/3/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/statuses/dff5d1c4dd9ae5a09385fc8c3af7a040bf58ab36","head":{"label":"tenthreee:module3-task1","ref":"module3-task1","sha":"dff5d1c4dd9ae5a09385fc8c3af7a040bf58ab36","user":{"login":"tenthreee","id":25146266,"avatar_url":"https://avatars0.githubusercontent.com/u/25146266?v=4","gravatar_id":"","url":"https://api.github.com/users/tenthreee","html_url":"https://github.com/tenthreee","followers_url":"https://api.github.com/users/tenthreee/followers","following_url":"https://api.github.com/users/tenthreee/following{/other_user}","gists_url":"https://api.github.com/users/tenthreee/gists{/gist_id}","starred_url":"https://api.github.com/users/tenthreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenthreee/subscriptions","organizations_url":"https://api.github.com/users/tenthreee/orgs","repos_url":"https://api.github.com/users/tenthreee/repos","events_url":"https://api.github.com/users/tenthreee/events{/privacy}","received_events_url":"https://api.github.com/users/tenthreee/received_events","type":"User","site_admin":false},"repo":{"id":127134577,"name":"345843-code-and-magick-1","full_name":"tenthreee/345843-code-and-magick-1","owner":{"login":"tenthreee","id":25146266,"avatar_url":"https://avatars0.githubusercontent.com/u/25146266?v=4","gravatar_id":"","url":"https://api.github.com/users/tenthreee","html_url":"https://github.com/tenthreee","followers_url":"https://api.github.com/users/tenthreee/followers","following_url":"https://api.github.com/users/tenthreee/following{/other_user}","gists_url":"https://api.github.com/users/tenthreee/gists{/gist_id}","starred_url":"https://api.github.com/users/tenthreee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenthreee/subscriptions","organizations_url":"https://api.github.com/users/tenthreee/orgs","repos_url":"https://api.github.com/users/tenthreee/repos","events_url":"https://api.github.com/users/tenthreee/events{/privacy}","received_events_url":"https://api.github.com/users/tenthreee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tenthreee/345843-code-and-magick-1","description":"Три Десятова","fork":true,"url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1","forks_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/forks","keys_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/teams","hooks_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/hooks","issue_events_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/issues/events{/number}","events_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/events","assignees_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/assignees{/user}","branches_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/branches{/branch}","tags_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/tags","blobs_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/statuses/{sha}","languages_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/languages","stargazers_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/stargazers","contributors_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/contributors","subscribers_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/subscribers","subscription_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/subscription","commits_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/contents/{+path}","compare_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/merges","archive_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/downloads","issues_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/issues{/number}","pulls_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/pulls{/number}","milestones_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/milestones{/number}","notifications_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/labels{/name}","releases_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/releases{/id}","deployments_url":"https://api.github.com/repos/tenthreee/345843-code-and-magick-1/deployments","created_at":"2018-03-28T12:09:35Z","updated_at":"2018-04-10T20:07:50Z","pushed_at":"2018-04-10T20:17:55Z","git_url":"git://github.com/tenthreee/345843-code-and-magick-1.git","ssh_url":"git@github.com:tenthreee/345843-code-and-magick-1.git","clone_url":"https://github.com/tenthreee/345843-code-and-magick-1.git","svn_url":"https://github.com/tenthreee/345843-code-and-magick-1","homepage":null,"size":1081,"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-javascript:master","ref":"master","sha":"540a07eae770a330c8d270c4d558e4824b767d7d","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","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":127134534,"name":"345843-code-and-magick","full_name":"htmlacademy-javascript/345843-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","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/345843-code-and-magick","description":"Три Десятова","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/deployments","created_at":"2018-03-28T12:09:17Z","updated_at":"2018-04-04T11:30:12Z","pushed_at":"2018-04-12T21:09:52Z","git_url":"git://github.com/htmlacademy-javascript/345843-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/345843-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/345843-code-and-magick","homepage":"https://github.com/tenthreee/345843-code-and-magick-1","size":1086,"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-javascript/345843-code-and-magick/pulls/3"},"html":{"href":"https://github.com/htmlacademy-javascript/345843-code-and-magick/pull/3"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/3"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/345843-code-and-magick/statuses/dff5d1c4dd9ae5a09385fc8c3af7a040bf58ab36"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"LeraGreen"}}