{"action":"created","comment":{"url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/comments/35929517","id":35929517,"diff_hunk":"@@ -0,0 +1,47 @@\n+class Cell\n+\n+  constructor: (@col, @row, @size, @two, @board) ->\n+    @isDeleted = false\n+    @rect = @two.makeRectangle @getX(), @getY(), @size, @size\n+    @two.update()\n+\n+  setColor: (c) =>\n+    @color = c\n+    @rect.fill = c\n+    @two.update()\n+\n+  setBorder: (c) =>\n+    @rect.stroke = c\n+    @rect.linewidth = 6\n+    @two.update()\n+\n+  hide: ->\n+    @rect.opacity = 0\n+\n+  getX: (col=@col) =>\n+    @board.x - (@board.size + @size) / 2 + (col + 1) * @board.change\n+\n+  getY: (row=@row)->\n+    @board.y - (@board.size + @size) / 2 + (row + 1) * @board.change\n+\n+  shiftTo: (row, col) =>\n+    end = new Two.Vector(@getX(col), @getY(row))\n+    start = new Two.Vector(@getX(), @getY())","path":"app/views/Cell.coffee","position":29,"original_position":29,"commit_id":"6970557935db7ca7494769c948a331b2808115c3","original_commit_id":"6970557935db7ca7494769c948a331b2808115c3","user":{"login":"bmwwoo","id":5299614,"avatar_url":"https://avatars.githubusercontent.com/u/5299614?v=3","gravatar_id":"","url":"https://api.github.com/users/bmwwoo","html_url":"https://github.com/bmwwoo","followers_url":"https://api.github.com/users/bmwwoo/followers","following_url":"https://api.github.com/users/bmwwoo/following{/other_user}","gists_url":"https://api.github.com/users/bmwwoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bmwwoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmwwoo/subscriptions","organizations_url":"https://api.github.com/users/bmwwoo/orgs","repos_url":"https://api.github.com/users/bmwwoo/repos","events_url":"https://api.github.com/users/bmwwoo/events{/privacy}","received_events_url":"https://api.github.com/users/bmwwoo/received_events","type":"User","site_admin":false},"body":"()?","created_at":"2015-07-30T22:38:05Z","updated_at":"2015-07-30T22:38:05Z","html_url":"https://github.com/sf-interns/mathswipe/pull/10#discussion_r35929517","pull_request_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/comments/35929517"},"html":{"href":"https://github.com/sf-interns/mathswipe/pull/10#discussion_r35929517"},"pull_request":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10","id":40695043,"html_url":"https://github.com/sf-interns/mathswipe/pull/10","diff_url":"https://github.com/sf-interns/mathswipe/pull/10.diff","patch_url":"https://github.com/sf-interns/mathswipe/pull/10.patch","issue_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/10","number":10,"state":"open","locked":false,"title":"BW Ec graphics mockup","user":{"login":"bmwwoo","id":5299614,"avatar_url":"https://avatars.githubusercontent.com/u/5299614?v=3","gravatar_id":"","url":"https://api.github.com/users/bmwwoo","html_url":"https://github.com/bmwwoo","followers_url":"https://api.github.com/users/bmwwoo/followers","following_url":"https://api.github.com/users/bmwwoo/following{/other_user}","gists_url":"https://api.github.com/users/bmwwoo/gists{/gist_id}","starred_url":"https://api.github.com/users/bmwwoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmwwoo/subscriptions","organizations_url":"https://api.github.com/users/bmwwoo/orgs","repos_url":"https://api.github.com/users/bmwwoo/repos","events_url":"https://api.github.com/users/bmwwoo/events{/privacy}","received_events_url":"https://api.github.com/users/bmwwoo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-23T17:09:32Z","updated_at":"2015-07-30T22:38:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30fe2334f0a0f37c8c48c7c3547ae3c8417c4ae8","assignee":{"login":"ericthewry","id":10351855,"avatar_url":"https://avatars.githubusercontent.com/u/10351855?v=3","gravatar_id":"","url":"https://api.github.com/users/ericthewry","html_url":"https://github.com/ericthewry","followers_url":"https://api.github.com/users/ericthewry/followers","following_url":"https://api.github.com/users/ericthewry/following{/other_user}","gists_url":"https://api.github.com/users/ericthewry/gists{/gist_id}","starred_url":"https://api.github.com/users/ericthewry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericthewry/subscriptions","organizations_url":"https://api.github.com/users/ericthewry/orgs","repos_url":"https://api.github.com/users/ericthewry/repos","events_url":"https://api.github.com/users/ericthewry/events{/privacy}","received_events_url":"https://api.github.com/users/ericthewry/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10/commits","review_comments_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10/comments","review_comment_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/10/comments","statuses_url":"https://api.github.com/repos/sf-interns/mathswipe/statuses/6970557935db7ca7494769c948a331b2808115c3","head":{"label":"sf-interns:ec-graphics-mockup","ref":"ec-graphics-mockup","sha":"6970557935db7ca7494769c948a331b2808115c3","user":{"login":"sf-interns","id":13339620,"avatar_url":"https://avatars.githubusercontent.com/u/13339620?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-interns","html_url":"https://github.com/sf-interns","followers_url":"https://api.github.com/users/sf-interns/followers","following_url":"https://api.github.com/users/sf-interns/following{/other_user}","gists_url":"https://api.github.com/users/sf-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-interns/subscriptions","organizations_url":"https://api.github.com/users/sf-interns/orgs","repos_url":"https://api.github.com/users/sf-interns/repos","events_url":"https://api.github.com/users/sf-interns/events{/privacy}","received_events_url":"https://api.github.com/users/sf-interns/received_events","type":"Organization","site_admin":false},"repo":{"id":39095076,"name":"mathswipe","full_name":"sf-interns/mathswipe","owner":{"login":"sf-interns","id":13339620,"avatar_url":"https://avatars.githubusercontent.com/u/13339620?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-interns","html_url":"https://github.com/sf-interns","followers_url":"https://api.github.com/users/sf-interns/followers","following_url":"https://api.github.com/users/sf-interns/following{/other_user}","gists_url":"https://api.github.com/users/sf-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-interns/subscriptions","organizations_url":"https://api.github.com/users/sf-interns/orgs","repos_url":"https://api.github.com/users/sf-interns/repos","events_url":"https://api.github.com/users/sf-interns/events{/privacy}","received_events_url":"https://api.github.com/users/sf-interns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sf-interns/mathswipe","description":"A game with numbers","fork":false,"url":"https://api.github.com/repos/sf-interns/mathswipe","forks_url":"https://api.github.com/repos/sf-interns/mathswipe/forks","keys_url":"https://api.github.com/repos/sf-interns/mathswipe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sf-interns/mathswipe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sf-interns/mathswipe/teams","hooks_url":"https://api.github.com/repos/sf-interns/mathswipe/hooks","issue_events_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/events{/number}","events_url":"https://api.github.com/repos/sf-interns/mathswipe/events","assignees_url":"https://api.github.com/repos/sf-interns/mathswipe/assignees{/user}","branches_url":"https://api.github.com/repos/sf-interns/mathswipe/branches{/branch}","tags_url":"https://api.github.com/repos/sf-interns/mathswipe/tags","blobs_url":"https://api.github.com/repos/sf-interns/mathswipe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sf-interns/mathswipe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sf-interns/mathswipe/git/refs{/sha}","trees_url":"https://api.github.com/repos/sf-interns/mathswipe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sf-interns/mathswipe/statuses/{sha}","languages_url":"https://api.github.com/repos/sf-interns/mathswipe/languages","stargazers_url":"https://api.github.com/repos/sf-interns/mathswipe/stargazers","contributors_url":"https://api.github.com/repos/sf-interns/mathswipe/contributors","subscribers_url":"https://api.github.com/repos/sf-interns/mathswipe/subscribers","subscription_url":"https://api.github.com/repos/sf-interns/mathswipe/subscription","commits_url":"https://api.github.com/repos/sf-interns/mathswipe/commits{/sha}","git_commits_url":"https://api.github.com/repos/sf-interns/mathswipe/git/commits{/sha}","comments_url":"https://api.github.com/repos/sf-interns/mathswipe/comments{/number}","issue_comment_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/comments{/number}","contents_url":"https://api.github.com/repos/sf-interns/mathswipe/contents/{+path}","compare_url":"https://api.github.com/repos/sf-interns/mathswipe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sf-interns/mathswipe/merges","archive_url":"https://api.github.com/repos/sf-interns/mathswipe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sf-interns/mathswipe/downloads","issues_url":"https://api.github.com/repos/sf-interns/mathswipe/issues{/number}","pulls_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls{/number}","milestones_url":"https://api.github.com/repos/sf-interns/mathswipe/milestones{/number}","notifications_url":"https://api.github.com/repos/sf-interns/mathswipe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sf-interns/mathswipe/labels{/name}","releases_url":"https://api.github.com/repos/sf-interns/mathswipe/releases{/id}","created_at":"2015-07-14T19:09:17Z","updated_at":"2015-07-18T00:11:35Z","pushed_at":"2015-07-30T22:32:55Z","git_url":"git://github.com/sf-interns/mathswipe.git","ssh_url":"git@github.com:sf-interns/mathswipe.git","clone_url":"https://github.com/sf-interns/mathswipe.git","svn_url":"https://github.com/sf-interns/mathswipe","homepage":"https://sf-interns.github.io/mathswipe","size":424,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"sf-interns:master","ref":"master","sha":"f9f3d3f86f9f2c0c01e44bec7eede630b985c35f","user":{"login":"sf-interns","id":13339620,"avatar_url":"https://avatars.githubusercontent.com/u/13339620?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-interns","html_url":"https://github.com/sf-interns","followers_url":"https://api.github.com/users/sf-interns/followers","following_url":"https://api.github.com/users/sf-interns/following{/other_user}","gists_url":"https://api.github.com/users/sf-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-interns/subscriptions","organizations_url":"https://api.github.com/users/sf-interns/orgs","repos_url":"https://api.github.com/users/sf-interns/repos","events_url":"https://api.github.com/users/sf-interns/events{/privacy}","received_events_url":"https://api.github.com/users/sf-interns/received_events","type":"Organization","site_admin":false},"repo":{"id":39095076,"name":"mathswipe","full_name":"sf-interns/mathswipe","owner":{"login":"sf-interns","id":13339620,"avatar_url":"https://avatars.githubusercontent.com/u/13339620?v=3","gravatar_id":"","url":"https://api.github.com/users/sf-interns","html_url":"https://github.com/sf-interns","followers_url":"https://api.github.com/users/sf-interns/followers","following_url":"https://api.github.com/users/sf-interns/following{/other_user}","gists_url":"https://api.github.com/users/sf-interns/gists{/gist_id}","starred_url":"https://api.github.com/users/sf-interns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sf-interns/subscriptions","organizations_url":"https://api.github.com/users/sf-interns/orgs","repos_url":"https://api.github.com/users/sf-interns/repos","events_url":"https://api.github.com/users/sf-interns/events{/privacy}","received_events_url":"https://api.github.com/users/sf-interns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sf-interns/mathswipe","description":"A game with numbers","fork":false,"url":"https://api.github.com/repos/sf-interns/mathswipe","forks_url":"https://api.github.com/repos/sf-interns/mathswipe/forks","keys_url":"https://api.github.com/repos/sf-interns/mathswipe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sf-interns/mathswipe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sf-interns/mathswipe/teams","hooks_url":"https://api.github.com/repos/sf-interns/mathswipe/hooks","issue_events_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/events{/number}","events_url":"https://api.github.com/repos/sf-interns/mathswipe/events","assignees_url":"https://api.github.com/repos/sf-interns/mathswipe/assignees{/user}","branches_url":"https://api.github.com/repos/sf-interns/mathswipe/branches{/branch}","tags_url":"https://api.github.com/repos/sf-interns/mathswipe/tags","blobs_url":"https://api.github.com/repos/sf-interns/mathswipe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sf-interns/mathswipe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sf-interns/mathswipe/git/refs{/sha}","trees_url":"https://api.github.com/repos/sf-interns/mathswipe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sf-interns/mathswipe/statuses/{sha}","languages_url":"https://api.github.com/repos/sf-interns/mathswipe/languages","stargazers_url":"https://api.github.com/repos/sf-interns/mathswipe/stargazers","contributors_url":"https://api.github.com/repos/sf-interns/mathswipe/contributors","subscribers_url":"https://api.github.com/repos/sf-interns/mathswipe/subscribers","subscription_url":"https://api.github.com/repos/sf-interns/mathswipe/subscription","commits_url":"https://api.github.com/repos/sf-interns/mathswipe/commits{/sha}","git_commits_url":"https://api.github.com/repos/sf-interns/mathswipe/git/commits{/sha}","comments_url":"https://api.github.com/repos/sf-interns/mathswipe/comments{/number}","issue_comment_url":"https://api.github.com/repos/sf-interns/mathswipe/issues/comments{/number}","contents_url":"https://api.github.com/repos/sf-interns/mathswipe/contents/{+path}","compare_url":"https://api.github.com/repos/sf-interns/mathswipe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sf-interns/mathswipe/merges","archive_url":"https://api.github.com/repos/sf-interns/mathswipe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sf-interns/mathswipe/downloads","issues_url":"https://api.github.com/repos/sf-interns/mathswipe/issues{/number}","pulls_url":"https://api.github.com/repos/sf-interns/mathswipe/pulls{/number}","milestones_url":"https://api.github.com/repos/sf-interns/mathswipe/milestones{/number}","notifications_url":"https://api.github.com/repos/sf-interns/mathswipe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sf-interns/mathswipe/labels{/name}","releases_url":"https://api.github.com/repos/sf-interns/mathswipe/releases{/id}","created_at":"2015-07-14T19:09:17Z","updated_at":"2015-07-18T00:11:35Z","pushed_at":"2015-07-30T22:32:55Z","git_url":"git://github.com/sf-interns/mathswipe.git","ssh_url":"git@github.com:sf-interns/mathswipe.git","clone_url":"https://github.com/sf-interns/mathswipe.git","svn_url":"https://github.com/sf-interns/mathswipe","homepage":"https://sf-interns.github.io/mathswipe","size":424,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10"},"html":{"href":"https://github.com/sf-interns/mathswipe/pull/10"},"issue":{"href":"https://api.github.com/repos/sf-interns/mathswipe/issues/10"},"comments":{"href":"https://api.github.com/repos/sf-interns/mathswipe/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sf-interns/mathswipe/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/sf-interns/mathswipe/statuses/6970557935db7ca7494769c948a331b2808115c3"}}}}