{"action":"created","comment":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments/245236066","pull_request_review_id":189288318,"id":245236066,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTIzNjA2Ng==","diff_hunk":"@@ -0,0 +1,82 @@\n+const xStartPlayer = 200;\n+const yStartPlayer = 400;\n+let countWin = 0;\n+\n+var Enemy = function (x, y, speed) {\n+    this.x = x;\n+    this.y = y;\n+    this.speed = speed;\n+    this.sprite = 'images/enemy-bug.png';\n+};\n+\n+Enemy.prototype.update = function (dt) {\n+    this.x += this.speed * dt;\n+    if (this.x > 500) {\n+        this.x = -100;\n+        this.speed = Math.random() * (500 - 50) + 50;\n+    }\n+\n+    if ((player.y + 5 === this.y || player.y + 13 === this.y || player.y + 20 === this.y)\n+        && player.x < this.x + 50 && player.x > this.x - 50) {\n+        player.goStartPosition();","path":"submissions/alexdefender/frogger-arcade-game/app.js","position":21,"original_position":21,"commit_id":"3687d9a77d8691ec69d7e5c3df37acab468be250","original_commit_id":"3687d9a77d8691ec69d7e5c3df37acab468be250","user":{"login":"OleksiyRudenko","id":8686631,"node_id":"MDQ6VXNlcjg2ODY2MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8686631?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksiyRudenko","html_url":"https://github.com/OleksiyRudenko","followers_url":"https://api.github.com/users/OleksiyRudenko/followers","following_url":"https://api.github.com/users/OleksiyRudenko/following{/other_user}","gists_url":"https://api.github.com/users/OleksiyRudenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksiyRudenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksiyRudenko/subscriptions","organizations_url":"https://api.github.com/users/OleksiyRudenko/orgs","repos_url":"https://api.github.com/users/OleksiyRudenko/repos","events_url":"https://api.github.com/users/OleksiyRudenko/events{/privacy}","received_events_url":"https://api.github.com/users/OleksiyRudenko/received_events","type":"User","site_admin":false},"body":"Classes should not refer to any global variables, like global variable `player`, which is an instance of `Player` class (referring to global constants and globals provided by the gaming platform like `Resources` is OK);\r\n\r\nHint: pass `Player` instance as an argument to every enemy","created_at":"2019-01-04T08:30:02Z","updated_at":"2019-01-04T08:31:23Z","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/255#discussion_r245236066","pull_request_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments/245236066"},"html":{"href":"https://github.com/kottans/frontend-2019-homeworks/pull/255#discussion_r245236066"},"pull_request":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255","id":242164893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTY0ODkz","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/255","diff_url":"https://github.com/kottans/frontend-2019-homeworks/pull/255.diff","patch_url":"https://github.com/kottans/frontend-2019-homeworks/pull/255.patch","issue_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/255","number":255,"state":"open","locked":false,"title":"Add frogger-arcade-game","user":{"login":"alexdefender","id":36728644,"node_id":"MDQ6VXNlcjM2NzI4NjQ0","avatar_url":"https://avatars1.githubusercontent.com/u/36728644?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdefender","html_url":"https://github.com/alexdefender","followers_url":"https://api.github.com/users/alexdefender/followers","following_url":"https://api.github.com/users/alexdefender/following{/other_user}","gists_url":"https://api.github.com/users/alexdefender/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdefender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdefender/subscriptions","organizations_url":"https://api.github.com/users/alexdefender/orgs","repos_url":"https://api.github.com/users/alexdefender/repos","events_url":"https://api.github.com/users/alexdefender/events{/privacy}","received_events_url":"https://api.github.com/users/alexdefender/received_events","type":"User","site_admin":false},"body":"_Complete the form below and remove this line._\r\n\r\n### task name\r\n\r\n[Demo](https://alexdefender.github.io/frogger-arcade-game/) |\r\n[Code base](https://github.com/alexdefender/frogger-arcade-game)\r\n\r\nThe code is submitted in a dedicated feature branch.\r\nPlease, review.\r\n","created_at":"2019-01-04T03:04:43Z","updated_at":"2019-01-04T08:31:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8278ff03be507fec4d1e20559ee662627c9447c0","assignee":{"login":"OleksiyRudenko","id":8686631,"node_id":"MDQ6VXNlcjg2ODY2MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8686631?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksiyRudenko","html_url":"https://github.com/OleksiyRudenko","followers_url":"https://api.github.com/users/OleksiyRudenko/followers","following_url":"https://api.github.com/users/OleksiyRudenko/following{/other_user}","gists_url":"https://api.github.com/users/OleksiyRudenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksiyRudenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksiyRudenko/subscriptions","organizations_url":"https://api.github.com/users/OleksiyRudenko/orgs","repos_url":"https://api.github.com/users/OleksiyRudenko/repos","events_url":"https://api.github.com/users/OleksiyRudenko/events{/privacy}","received_events_url":"https://api.github.com/users/OleksiyRudenko/received_events","type":"User","site_admin":false},"assignees":[{"login":"OleksiyRudenko","id":8686631,"node_id":"MDQ6VXNlcjg2ODY2MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/8686631?v=4","gravatar_id":"","url":"https://api.github.com/users/OleksiyRudenko","html_url":"https://github.com/OleksiyRudenko","followers_url":"https://api.github.com/users/OleksiyRudenko/followers","following_url":"https://api.github.com/users/OleksiyRudenko/following{/other_user}","gists_url":"https://api.github.com/users/OleksiyRudenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OleksiyRudenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OleksiyRudenko/subscriptions","organizations_url":"https://api.github.com/users/OleksiyRudenko/orgs","repos_url":"https://api.github.com/users/OleksiyRudenko/repos","events_url":"https://api.github.com/users/OleksiyRudenko/events{/privacy}","received_events_url":"https://api.github.com/users/OleksiyRudenko/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255/commits","review_comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255/comments","review_comment_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/255/comments","statuses_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/3687d9a77d8691ec69d7e5c3df37acab468be250","head":{"label":"alexdefender:frogger-arcade-game","ref":"frogger-arcade-game","sha":"3687d9a77d8691ec69d7e5c3df37acab468be250","user":{"login":"alexdefender","id":36728644,"node_id":"MDQ6VXNlcjM2NzI4NjQ0","avatar_url":"https://avatars1.githubusercontent.com/u/36728644?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdefender","html_url":"https://github.com/alexdefender","followers_url":"https://api.github.com/users/alexdefender/followers","following_url":"https://api.github.com/users/alexdefender/following{/other_user}","gists_url":"https://api.github.com/users/alexdefender/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdefender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdefender/subscriptions","organizations_url":"https://api.github.com/users/alexdefender/orgs","repos_url":"https://api.github.com/users/alexdefender/repos","events_url":"https://api.github.com/users/alexdefender/events{/privacy}","received_events_url":"https://api.github.com/users/alexdefender/received_events","type":"User","site_admin":false},"repo":{"id":163748249,"node_id":"MDEwOlJlcG9zaXRvcnkxNjM3NDgyNDk=","name":"frontend-2019-homeworks","full_name":"alexdefender/frontend-2019-homeworks","private":false,"owner":{"login":"alexdefender","id":36728644,"node_id":"MDQ6VXNlcjM2NzI4NjQ0","avatar_url":"https://avatars1.githubusercontent.com/u/36728644?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdefender","html_url":"https://github.com/alexdefender","followers_url":"https://api.github.com/users/alexdefender/followers","following_url":"https://api.github.com/users/alexdefender/following{/other_user}","gists_url":"https://api.github.com/users/alexdefender/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdefender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdefender/subscriptions","organizations_url":"https://api.github.com/users/alexdefender/orgs","repos_url":"https://api.github.com/users/alexdefender/repos","events_url":"https://api.github.com/users/alexdefender/events{/privacy}","received_events_url":"https://api.github.com/users/alexdefender/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alexdefender/frontend-2019-homeworks","description":"Repo for students' homework reviews","fork":true,"url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks","forks_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/forks","keys_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/teams","hooks_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/hooks","issue_events_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/events","assignees_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/tags","blobs_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/languages","stargazers_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/stargazers","contributors_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/contributors","subscribers_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/subscribers","subscription_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/subscription","commits_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/merges","archive_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/downloads","issues_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/labels{/name}","releases_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/alexdefender/frontend-2019-homeworks/deployments","created_at":"2019-01-01T15:53:34Z","updated_at":"2019-01-02T05:39:20Z","pushed_at":"2019-01-04T03:02:54Z","git_url":"git://github.com/alexdefender/frontend-2019-homeworks.git","ssh_url":"git@github.com:alexdefender/frontend-2019-homeworks.git","clone_url":"https://github.com/alexdefender/frontend-2019-homeworks.git","svn_url":"https://github.com/alexdefender/frontend-2019-homeworks","homepage":null,"size":66298,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"kottans:master","ref":"master","sha":"3e89fa13b1d817b19ca1a7bcb54e3719684342a8","user":{"login":"kottans","id":6013442,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMTM0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6013442?v=4","gravatar_id":"","url":"https://api.github.com/users/kottans","html_url":"https://github.com/kottans","followers_url":"https://api.github.com/users/kottans/followers","following_url":"https://api.github.com/users/kottans/following{/other_user}","gists_url":"https://api.github.com/users/kottans/gists{/gist_id}","starred_url":"https://api.github.com/users/kottans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kottans/subscriptions","organizations_url":"https://api.github.com/users/kottans/orgs","repos_url":"https://api.github.com/users/kottans/repos","events_url":"https://api.github.com/users/kottans/events{/privacy}","received_events_url":"https://api.github.com/users/kottans/received_events","type":"Organization","site_admin":false},"repo":{"id":155096157,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUwOTYxNTc=","name":"frontend-2019-homeworks","full_name":"kottans/frontend-2019-homeworks","private":false,"owner":{"login":"kottans","id":6013442,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMTM0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6013442?v=4","gravatar_id":"","url":"https://api.github.com/users/kottans","html_url":"https://github.com/kottans","followers_url":"https://api.github.com/users/kottans/followers","following_url":"https://api.github.com/users/kottans/following{/other_user}","gists_url":"https://api.github.com/users/kottans/gists{/gist_id}","starred_url":"https://api.github.com/users/kottans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kottans/subscriptions","organizations_url":"https://api.github.com/users/kottans/orgs","repos_url":"https://api.github.com/users/kottans/repos","events_url":"https://api.github.com/users/kottans/events{/privacy}","received_events_url":"https://api.github.com/users/kottans/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kottans/frontend-2019-homeworks","description":"Repo for students' homework reviews","fork":false,"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks","forks_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/forks","keys_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/teams","hooks_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/hooks","issue_events_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/events","assignees_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/tags","blobs_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/languages","stargazers_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/stargazers","contributors_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/contributors","subscribers_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/subscribers","subscription_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/subscription","commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/merges","archive_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/downloads","issues_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/labels{/name}","releases_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/deployments","created_at":"2018-10-28T17:21:19Z","updated_at":"2019-01-03T22:48:21Z","pushed_at":"2019-01-04T06:58:03Z","git_url":"git://github.com/kottans/frontend-2019-homeworks.git","ssh_url":"git@github.com:kottans/frontend-2019-homeworks.git","clone_url":"https://github.com/kottans/frontend-2019-homeworks.git","svn_url":"https://github.com/kottans/frontend-2019-homeworks","homepage":null,"size":66182,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"archived":false,"open_issues_count":33,"license":null,"forks":62,"open_issues":33,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255"},"html":{"href":"https://github.com/kottans/frontend-2019-homeworks/pull/255"},"issue":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/255"},"comments":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/3687d9a77d8691ec69d7e5c3df37acab468be250"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"OleksiyRudenko"}}