{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments/25261942","id":25261942,"diff_hunk":"@@ -1,2 +1,69 @@\n-// Your code here\n-// Use the jQuery\n+$(document).ready(function(){\n+  $winner = $('#winning');\n+  $tiles = $('td');\n+  $tiles.map(function(){\n+    this.player = NaN;\n+    this.set = false;\n+  });\n+  $tiles.on('click',Circle.changeColor);\n+});\n+\n+\n+var Circle = (function(){\n+  var click = 0;\n+  var changeColor = function(){\n+    if(click % 2 === 0 && $(this).get(0).set === false){\n+      $(this).css('background-color', '#f00');\n+      $(this).get(0).player = 'Red';\n+      $(this).get(0).set = true;\n+      click++;\n+    }else if ($(this).get(0).set === false){\n+      $(this).css('background-color', '#000');\n+      $(this).get(0).player = 'Black';\n+      $(this).get(0).set = true;\n+      click++;\n+    }\n+\n+    _checkRows();\n+    _checkColumns();\n+    _checkDiagonals();\n+  };\n+  var _checkRows = function(){\n+    if(_threeIn(0,1,2)){\n+      _wins($tiles[0]);\n+    } else if(_threeIn(3,4,5)) {\n+      _wins($tiles[3]);\n+    } else if(_threeIn(6,7,8)) {\n+      _wins($tiles[6]);\n+    }\n+  };\n+\n+  var _checkColumns = function(){","path":"js/tic_tac_toe.js","position":43,"original_position":43,"commit_id":"17d96a0df395502bce033368203d06f186dcb9df","original_commit_id":"17d96a0df395502bce033368203d06f186dcb9df","user":{"login":"tibbon","id":82880,"avatar_url":"https://avatars.githubusercontent.com/u/82880?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbon","html_url":"https://github.com/tibbon","followers_url":"https://api.github.com/users/tibbon/followers","following_url":"https://api.github.com/users/tibbon/following{/other_user}","gists_url":"https://api.github.com/users/tibbon/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbon/subscriptions","organizations_url":"https://api.github.com/users/tibbon/orgs","repos_url":"https://api.github.com/users/tibbon/repos","events_url":"https://api.github.com/users/tibbon/events{/privacy}","received_events_url":"https://api.github.com/users/tibbon/received_events","type":"User","site_admin":false},"body":"I like these are your private function names. ","created_at":"2015-02-24T15:46:08Z","updated_at":"2015-02-24T15:46:08Z","html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10#discussion_r25261942","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments/25261942"},"html":{"href":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10#discussion_r25261942"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10","id":29868640,"html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10","diff_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10.diff","patch_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/10","number":10,"state":"open","locked":false,"title":"assignment completed","user":{"login":"abroccoli","id":9356738,"avatar_url":"https://avatars.githubusercontent.com/u/9356738?v=3","gravatar_id":"","url":"https://api.github.com/users/abroccoli","html_url":"https://github.com/abroccoli","followers_url":"https://api.github.com/users/abroccoli/followers","following_url":"https://api.github.com/users/abroccoli/following{/other_user}","gists_url":"https://api.github.com/users/abroccoli/gists{/gist_id}","starred_url":"https://api.github.com/users/abroccoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroccoli/subscriptions","organizations_url":"https://api.github.com/users/abroccoli/orgs","repos_url":"https://api.github.com/users/abroccoli/repos","events_url":"https://api.github.com/users/abroccoli/events{/privacy}","received_events_url":"https://api.github.com/users/abroccoli/received_events","type":"User","site_admin":false},"body":"tic-tac-doh!","created_at":"2015-02-24T03:34:22Z","updated_at":"2015-02-24T15:46:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f682606526a1d45af6b18cc6e6fc4f722b056e0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/10/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/17d96a0df395502bce033368203d06f186dcb9df","head":{"label":"abroccoli:master","ref":"master","sha":"17d96a0df395502bce033368203d06f186dcb9df","user":{"login":"abroccoli","id":9356738,"avatar_url":"https://avatars.githubusercontent.com/u/9356738?v=3","gravatar_id":"","url":"https://api.github.com/users/abroccoli","html_url":"https://github.com/abroccoli","followers_url":"https://api.github.com/users/abroccoli/followers","following_url":"https://api.github.com/users/abroccoli/following{/other_user}","gists_url":"https://api.github.com/users/abroccoli/gists{/gist_id}","starred_url":"https://api.github.com/users/abroccoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroccoli/subscriptions","organizations_url":"https://api.github.com/users/abroccoli/orgs","repos_url":"https://api.github.com/users/abroccoli/repos","events_url":"https://api.github.com/users/abroccoli/events{/privacy}","received_events_url":"https://api.github.com/users/abroccoli/received_events","type":"User","site_admin":false},"repo":{"id":31227482,"name":"wdi_8_js_lab_jquery_tic_tac_toe","full_name":"abroccoli/wdi_8_js_lab_jquery_tic_tac_toe","owner":{"login":"abroccoli","id":9356738,"avatar_url":"https://avatars.githubusercontent.com/u/9356738?v=3","gravatar_id":"","url":"https://api.github.com/users/abroccoli","html_url":"https://github.com/abroccoli","followers_url":"https://api.github.com/users/abroccoli/followers","following_url":"https://api.github.com/users/abroccoli/following{/other_user}","gists_url":"https://api.github.com/users/abroccoli/gists{/gist_id}","starred_url":"https://api.github.com/users/abroccoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroccoli/subscriptions","organizations_url":"https://api.github.com/users/abroccoli/orgs","repos_url":"https://api.github.com/users/abroccoli/repos","events_url":"https://api.github.com/users/abroccoli/events{/privacy}","received_events_url":"https://api.github.com/users/abroccoli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe","description":"","fork":true,"url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe","forks_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/forks","keys_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/teams","hooks_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/hooks","issue_events_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/issues/events{/number}","events_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/events","assignees_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/assignees{/user}","branches_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/branches{/branch}","tags_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/tags","blobs_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/statuses/{sha}","languages_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/languages","stargazers_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/stargazers","contributors_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/contributors","subscribers_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/subscribers","subscription_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/subscription","commits_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/contents/{+path}","compare_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/merges","archive_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/downloads","issues_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/issues{/number}","pulls_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/pulls{/number}","milestones_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/milestones{/number}","notifications_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/labels{/name}","releases_url":"https://api.github.com/repos/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe/releases{/id}","created_at":"2015-02-23T20:16:35Z","updated_at":"2015-02-24T14:42:21Z","pushed_at":"2015-02-24T14:42:21Z","git_url":"git://github.com/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe.git","ssh_url":"git@github.com:abroccoli/wdi_8_js_lab_jquery_tic_tac_toe.git","clone_url":"https://github.com/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe.git","svn_url":"https://github.com/abroccoli/wdi_8_js_lab_jquery_tic_tac_toe","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"ga-wdi-boston:master","ref":"master","sha":"70467bdaedfb6dfe3bc197fe16f30cfa5331e014","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":17142196,"name":"wdi_8_js_lab_jquery_tic_tac_toe","full_name":"ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","description":"","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","forks_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/releases{/id}","created_at":"2014-02-24T16:21:16Z","updated_at":"2015-02-10T02:53:29Z","pushed_at":"2015-02-10T02:53:29Z","git_url":"git://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","ssh_url":"git@github.com:ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","clone_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","svn_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":18,"forks":36,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10"},"html":{"href":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/10"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/10"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/17d96a0df395502bce033368203d06f186dcb9df"}}}}