{"action":"created","comment":{"url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/comments/34750790","id":34750790,"diff_hunk":"@@ -95,12 +173,17 @@ $(document).ready(function(){\n   var randomNumberGeneration = function(){\n     var generated=false;","path":"js/application.js","position":182,"original_position":182,"commit_id":"f76e38e15a31e5a5db3b9e5c0dbb531b2365594b","original_commit_id":"f76e38e15a31e5a5db3b9e5c0dbb531b2365594b","user":{"login":"harrychenca","id":1697380,"avatar_url":"https://avatars.githubusercontent.com/u/1697380?v=3","gravatar_id":"","url":"https://api.github.com/users/harrychenca","html_url":"https://github.com/harrychenca","followers_url":"https://api.github.com/users/harrychenca/followers","following_url":"https://api.github.com/users/harrychenca/following{/other_user}","gists_url":"https://api.github.com/users/harrychenca/gists{/gist_id}","starred_url":"https://api.github.com/users/harrychenca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrychenca/subscriptions","organizations_url":"https://api.github.com/users/harrychenca/orgs","repos_url":"https://api.github.com/users/harrychenca/repos","events_url":"https://api.github.com/users/harrychenca/events{/privacy}","received_events_url":"https://api.github.com/users/harrychenca/received_events","type":"User","site_admin":false},"body":"Spaces between operators. Always!  `var generated = false;`","created_at":"2015-07-16T02:30:34Z","updated_at":"2015-07-16T02:30:34Z","html_url":"https://github.com/WDI-HK-8/2048game/pull/2#discussion_r34750790","pull_request_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/comments/34750790"},"html":{"href":"https://github.com/WDI-HK-8/2048game/pull/2#discussion_r34750790"},"pull_request":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2","id":39994908,"html_url":"https://github.com/WDI-HK-8/2048game/pull/2","diff_url":"https://github.com/WDI-HK-8/2048game/pull/2.diff","patch_url":"https://github.com/WDI-HK-8/2048game/pull/2.patch","issue_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/2","number":2,"state":"open","locked":false,"title":"Fixed formatting and done animation for random generation","user":{"login":"raptattention","id":12581196,"avatar_url":"https://avatars.githubusercontent.com/u/12581196?v=3","gravatar_id":"","url":"https://api.github.com/users/raptattention","html_url":"https://github.com/raptattention","followers_url":"https://api.github.com/users/raptattention/followers","following_url":"https://api.github.com/users/raptattention/following{/other_user}","gists_url":"https://api.github.com/users/raptattention/gists{/gist_id}","starred_url":"https://api.github.com/users/raptattention/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raptattention/subscriptions","organizations_url":"https://api.github.com/users/raptattention/orgs","repos_url":"https://api.github.com/users/raptattention/repos","events_url":"https://api.github.com/users/raptattention/events{/privacy}","received_events_url":"https://api.github.com/users/raptattention/received_events","type":"User","site_admin":false},"body":"I fixed the formatting for the different grids and added a pop-in effect when new tiles are generated. Also cleaned up the code for moving and various other places. However, I still need to have a default background color and font color for really large numbers, so I couldn't implement Fer's suggestion, as elegant as it is. Still trying to add animation for moving tiles around.","created_at":"2015-07-15T07:29:17Z","updated_at":"2015-07-16T02:30:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62bff3967f3f8dc33077a27975ba545421fc3153","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2/commits","review_comments_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2/comments","review_comment_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/2/comments","statuses_url":"https://api.github.com/repos/WDI-HK-8/2048game/statuses/f76e38e15a31e5a5db3b9e5c0dbb531b2365594b","head":{"label":"WDI-HK-8:project1","ref":"project1","sha":"f76e38e15a31e5a5db3b9e5c0dbb531b2365594b","user":{"login":"WDI-HK-8","id":12110100,"avatar_url":"https://avatars.githubusercontent.com/u/12110100?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-HK-8","html_url":"https://github.com/WDI-HK-8","followers_url":"https://api.github.com/users/WDI-HK-8/followers","following_url":"https://api.github.com/users/WDI-HK-8/following{/other_user}","gists_url":"https://api.github.com/users/WDI-HK-8/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-HK-8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-HK-8/subscriptions","organizations_url":"https://api.github.com/users/WDI-HK-8/orgs","repos_url":"https://api.github.com/users/WDI-HK-8/repos","events_url":"https://api.github.com/users/WDI-HK-8/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-HK-8/received_events","type":"Organization","site_admin":false},"repo":{"id":38992896,"name":"2048game","full_name":"WDI-HK-8/2048game","owner":{"login":"WDI-HK-8","id":12110100,"avatar_url":"https://avatars.githubusercontent.com/u/12110100?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-HK-8","html_url":"https://github.com/WDI-HK-8","followers_url":"https://api.github.com/users/WDI-HK-8/followers","following_url":"https://api.github.com/users/WDI-HK-8/following{/other_user}","gists_url":"https://api.github.com/users/WDI-HK-8/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-HK-8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-HK-8/subscriptions","organizations_url":"https://api.github.com/users/WDI-HK-8/orgs","repos_url":"https://api.github.com/users/WDI-HK-8/repos","events_url":"https://api.github.com/users/WDI-HK-8/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-HK-8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WDI-HK-8/2048game","description":"by Kody Law","fork":false,"url":"https://api.github.com/repos/WDI-HK-8/2048game","forks_url":"https://api.github.com/repos/WDI-HK-8/2048game/forks","keys_url":"https://api.github.com/repos/WDI-HK-8/2048game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WDI-HK-8/2048game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WDI-HK-8/2048game/teams","hooks_url":"https://api.github.com/repos/WDI-HK-8/2048game/hooks","issue_events_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/events{/number}","events_url":"https://api.github.com/repos/WDI-HK-8/2048game/events","assignees_url":"https://api.github.com/repos/WDI-HK-8/2048game/assignees{/user}","branches_url":"https://api.github.com/repos/WDI-HK-8/2048game/branches{/branch}","tags_url":"https://api.github.com/repos/WDI-HK-8/2048game/tags","blobs_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/refs{/sha}","trees_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WDI-HK-8/2048game/statuses/{sha}","languages_url":"https://api.github.com/repos/WDI-HK-8/2048game/languages","stargazers_url":"https://api.github.com/repos/WDI-HK-8/2048game/stargazers","contributors_url":"https://api.github.com/repos/WDI-HK-8/2048game/contributors","subscribers_url":"https://api.github.com/repos/WDI-HK-8/2048game/subscribers","subscription_url":"https://api.github.com/repos/WDI-HK-8/2048game/subscription","commits_url":"https://api.github.com/repos/WDI-HK-8/2048game/commits{/sha}","git_commits_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/commits{/sha}","comments_url":"https://api.github.com/repos/WDI-HK-8/2048game/comments{/number}","issue_comment_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/comments{/number}","contents_url":"https://api.github.com/repos/WDI-HK-8/2048game/contents/{+path}","compare_url":"https://api.github.com/repos/WDI-HK-8/2048game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WDI-HK-8/2048game/merges","archive_url":"https://api.github.com/repos/WDI-HK-8/2048game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WDI-HK-8/2048game/downloads","issues_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues{/number}","pulls_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls{/number}","milestones_url":"https://api.github.com/repos/WDI-HK-8/2048game/milestones{/number}","notifications_url":"https://api.github.com/repos/WDI-HK-8/2048game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WDI-HK-8/2048game/labels{/name}","releases_url":"https://api.github.com/repos/WDI-HK-8/2048game/releases{/id}","created_at":"2015-07-13T05:28:58Z","updated_at":"2015-07-15T02:59:47Z","pushed_at":"2015-07-16T01:17:22Z","git_url":"git://github.com/WDI-HK-8/2048game.git","ssh_url":"git@github.com:WDI-HK-8/2048game.git","clone_url":"https://github.com/WDI-HK-8/2048game.git","svn_url":"https://github.com/WDI-HK-8/2048game","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"WDI-HK-8:master","ref":"master","sha":"03bc8a8cadae0a6ad185bfc8d6e8665d607116a4","user":{"login":"WDI-HK-8","id":12110100,"avatar_url":"https://avatars.githubusercontent.com/u/12110100?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-HK-8","html_url":"https://github.com/WDI-HK-8","followers_url":"https://api.github.com/users/WDI-HK-8/followers","following_url":"https://api.github.com/users/WDI-HK-8/following{/other_user}","gists_url":"https://api.github.com/users/WDI-HK-8/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-HK-8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-HK-8/subscriptions","organizations_url":"https://api.github.com/users/WDI-HK-8/orgs","repos_url":"https://api.github.com/users/WDI-HK-8/repos","events_url":"https://api.github.com/users/WDI-HK-8/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-HK-8/received_events","type":"Organization","site_admin":false},"repo":{"id":38992896,"name":"2048game","full_name":"WDI-HK-8/2048game","owner":{"login":"WDI-HK-8","id":12110100,"avatar_url":"https://avatars.githubusercontent.com/u/12110100?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-HK-8","html_url":"https://github.com/WDI-HK-8","followers_url":"https://api.github.com/users/WDI-HK-8/followers","following_url":"https://api.github.com/users/WDI-HK-8/following{/other_user}","gists_url":"https://api.github.com/users/WDI-HK-8/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-HK-8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-HK-8/subscriptions","organizations_url":"https://api.github.com/users/WDI-HK-8/orgs","repos_url":"https://api.github.com/users/WDI-HK-8/repos","events_url":"https://api.github.com/users/WDI-HK-8/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-HK-8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WDI-HK-8/2048game","description":"by Kody Law","fork":false,"url":"https://api.github.com/repos/WDI-HK-8/2048game","forks_url":"https://api.github.com/repos/WDI-HK-8/2048game/forks","keys_url":"https://api.github.com/repos/WDI-HK-8/2048game/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WDI-HK-8/2048game/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WDI-HK-8/2048game/teams","hooks_url":"https://api.github.com/repos/WDI-HK-8/2048game/hooks","issue_events_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/events{/number}","events_url":"https://api.github.com/repos/WDI-HK-8/2048game/events","assignees_url":"https://api.github.com/repos/WDI-HK-8/2048game/assignees{/user}","branches_url":"https://api.github.com/repos/WDI-HK-8/2048game/branches{/branch}","tags_url":"https://api.github.com/repos/WDI-HK-8/2048game/tags","blobs_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/refs{/sha}","trees_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WDI-HK-8/2048game/statuses/{sha}","languages_url":"https://api.github.com/repos/WDI-HK-8/2048game/languages","stargazers_url":"https://api.github.com/repos/WDI-HK-8/2048game/stargazers","contributors_url":"https://api.github.com/repos/WDI-HK-8/2048game/contributors","subscribers_url":"https://api.github.com/repos/WDI-HK-8/2048game/subscribers","subscription_url":"https://api.github.com/repos/WDI-HK-8/2048game/subscription","commits_url":"https://api.github.com/repos/WDI-HK-8/2048game/commits{/sha}","git_commits_url":"https://api.github.com/repos/WDI-HK-8/2048game/git/commits{/sha}","comments_url":"https://api.github.com/repos/WDI-HK-8/2048game/comments{/number}","issue_comment_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues/comments{/number}","contents_url":"https://api.github.com/repos/WDI-HK-8/2048game/contents/{+path}","compare_url":"https://api.github.com/repos/WDI-HK-8/2048game/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WDI-HK-8/2048game/merges","archive_url":"https://api.github.com/repos/WDI-HK-8/2048game/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WDI-HK-8/2048game/downloads","issues_url":"https://api.github.com/repos/WDI-HK-8/2048game/issues{/number}","pulls_url":"https://api.github.com/repos/WDI-HK-8/2048game/pulls{/number}","milestones_url":"https://api.github.com/repos/WDI-HK-8/2048game/milestones{/number}","notifications_url":"https://api.github.com/repos/WDI-HK-8/2048game/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WDI-HK-8/2048game/labels{/name}","releases_url":"https://api.github.com/repos/WDI-HK-8/2048game/releases{/id}","created_at":"2015-07-13T05:28:58Z","updated_at":"2015-07-15T02:59:47Z","pushed_at":"2015-07-16T01:17:22Z","git_url":"git://github.com/WDI-HK-8/2048game.git","ssh_url":"git@github.com:WDI-HK-8/2048game.git","clone_url":"https://github.com/WDI-HK-8/2048game.git","svn_url":"https://github.com/WDI-HK-8/2048game","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2"},"html":{"href":"https://github.com/WDI-HK-8/2048game/pull/2"},"issue":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/issues/2"},"comments":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/WDI-HK-8/2048game/statuses/f76e38e15a31e5a5db3b9e5c0dbb531b2365594b"}}}}