{"action":"created","comment":{"url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/comments/192633077","pull_request_review_id":125384880,"id":192633077,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjYzMzA3Nw==","diff_hunk":"@@ -0,0 +1,379 @@\n+$(document).ready(loadDocument);\n+\n+//########################################## GLOBAL VARIABLES ###################################\n+// Player Info\n+var player1 = null;\n+var player2 = null;\n+\n+var currentPlayer = player1;\n+var currentPlayerStatus = true; // true is player 1 and false is player 2\n+var screenClickable = true;\n+\n+\n+\n+var winCount = 4;//for connect 4 or even higher\n+\n+var gameBoardArray = [\n+    ['','','','','',''],\n+    ['','','','','',''],\n+    ['','','','','',''],\n+    ['','','','','',''],\n+    ['','','','','',''],\n+    ['','','','','',''],\n+    ['','','','','','']\n+]; //gameBoardArray template\n+\n+\n+function loadDocument(){\n+    addClickHandlers();\n+    \n+}\n+\n+function addClickHandlers(){\n+    $(\".column\").click(columnClicked);\n+    $(\".playerColumn img\").click(powerupButtonClicked); // sets image as powerUp Button\n+    $(\".resetGame\").click(resetGame);\n+    $(\".playerCharacterSelectionModal img\").click(characterClicked);\n+    $(\".gameStart\").click(gameStart);\n+}\n+\n+function gameStart() {\n+    $(\".gameStart\").addClass('hiddenElement'); \n+    $(\".playerCharacterSelectionModal\").removeClass('hiddenElement');\n+    bgMusicPlay();\n+}\n+\n+\n+function columnClicked(){\n+    if(!screenClickable){//if screenClickable = true then you can click.\n+        return;\n+    }\n+\n+    var columnClicked = $(this).attr(\"column\");\n+\n+    columnClicked = parseInt(columnClicked);\n+    //drop token and update game board. //if pop up modal for sorry try again.\n+    var currentRowDroppedIn = dropTokenCol( currentPlayer, columnClicked);\n+    if (currentRowDroppedIn === null){\n+        return;\n+    }\n+    //check to see if powerup is allowed OR if player has won.\n+    tokenPlacementCheck( currentPlayer, columnClicked, currentRowDroppedIn );\n+}\n+\n+function powerupButtonClicked(){\n+    //activates powerUp if currentplayer powerupheld is = true;\n+    var test = $(this).hasClass(currentPlayer.characterType.characterToken);\n+    if(currentPlayer.powerupHeld && test) {\n+        usePowerup(currentPlayer.characterType.characterPowerup);\n+    \n+        currentPlayer.powerupHeld = false;\n+        if(currentPlayerStatus) {\n+            $('#player1 img').removeClass('animatePowerupButton');\n+        }else{\n+            $('#player2 img').removeClass('animatePowerupButton');\n+        }\n+        updateDOM();\n+    }\n+}\n+\n+function characterClicked() {","path":"main.js","position":80,"original_position":80,"commit_id":"a23cd2ff46df3706ebdb6ccedf09953c9343078a","original_commit_id":"a23cd2ff46df3706ebdb6ccedf09953c9343078a","user":{"login":"dpaschal-lf","id":10343746,"node_id":"MDQ6VXNlcjEwMzQzNzQ2","avatar_url":"https://avatars3.githubusercontent.com/u/10343746?v=4","gravatar_id":"","url":"https://api.github.com/users/dpaschal-lf","html_url":"https://github.com/dpaschal-lf","followers_url":"https://api.github.com/users/dpaschal-lf/followers","following_url":"https://api.github.com/users/dpaschal-lf/following{/other_user}","gists_url":"https://api.github.com/users/dpaschal-lf/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaschal-lf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaschal-lf/subscriptions","organizations_url":"https://api.github.com/users/dpaschal-lf/orgs","repos_url":"https://api.github.com/users/dpaschal-lf/repos","events_url":"https://api.github.com/users/dpaschal-lf/events{/privacy}","received_events_url":"https://api.github.com/users/dpaschal-lf/received_events","type":"User","site_admin":false},"body":"perhaps this should be getCharacterClicked","created_at":"2018-06-04T06:01:56Z","updated_at":"2018-06-04T06:17:05Z","html_url":"https://github.com/dpaschal-lf/418_connectathon/pull/9#discussion_r192633077","pull_request_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/comments/192633077"},"html":{"href":"https://github.com/dpaschal-lf/418_connectathon/pull/9#discussion_r192633077"},"pull_request":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9","id":190457198,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNDU3MTk4","html_url":"https://github.com/dpaschal-lf/418_connectathon/pull/9","diff_url":"https://github.com/dpaschal-lf/418_connectathon/pull/9.diff","patch_url":"https://github.com/dpaschal-lf/418_connectathon/pull/9.patch","issue_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/9","number":9,"state":"open","locked":false,"title":"Mario Connect4 || Steffany, James, Peter","user":{"login":"P-nguyen","id":4933442,"node_id":"MDQ6VXNlcjQ5MzM0NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/4933442?v=4","gravatar_id":"","url":"https://api.github.com/users/P-nguyen","html_url":"https://github.com/P-nguyen","followers_url":"https://api.github.com/users/P-nguyen/followers","following_url":"https://api.github.com/users/P-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/P-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/P-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P-nguyen/subscriptions","organizations_url":"https://api.github.com/users/P-nguyen/orgs","repos_url":"https://api.github.com/users/P-nguyen/repos","events_url":"https://api.github.com/users/P-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/P-nguyen/received_events","type":"User","site_admin":false},"body":"NOTES: \r\n\r\nPowerups : \r\nMario needs an inverted V to receive power up\r\nLuigi needs to create a L pattern to receive power up.\r\n\r\nPlayer Icon when glowing has the ability to call power up.","created_at":"2018-05-25T00:57:31Z","updated_at":"2018-06-04T06:17:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd614db2579020877886c297842bc8f0965bd32e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/9/comments","statuses_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/statuses/a23cd2ff46df3706ebdb6ccedf09953c9343078a","head":{"label":"P-nguyen:master","ref":"master","sha":"a23cd2ff46df3706ebdb6ccedf09953c9343078a","user":{"login":"P-nguyen","id":4933442,"node_id":"MDQ6VXNlcjQ5MzM0NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/4933442?v=4","gravatar_id":"","url":"https://api.github.com/users/P-nguyen","html_url":"https://github.com/P-nguyen","followers_url":"https://api.github.com/users/P-nguyen/followers","following_url":"https://api.github.com/users/P-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/P-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/P-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P-nguyen/subscriptions","organizations_url":"https://api.github.com/users/P-nguyen/orgs","repos_url":"https://api.github.com/users/P-nguyen/repos","events_url":"https://api.github.com/users/P-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/P-nguyen/received_events","type":"User","site_admin":false},"repo":{"id":134594445,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ1OTQ0NDU=","name":"418_connectathon","full_name":"P-nguyen/418_connectathon","owner":{"login":"P-nguyen","id":4933442,"node_id":"MDQ6VXNlcjQ5MzM0NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/4933442?v=4","gravatar_id":"","url":"https://api.github.com/users/P-nguyen","html_url":"https://github.com/P-nguyen","followers_url":"https://api.github.com/users/P-nguyen/followers","following_url":"https://api.github.com/users/P-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/P-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/P-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P-nguyen/subscriptions","organizations_url":"https://api.github.com/users/P-nguyen/orgs","repos_url":"https://api.github.com/users/P-nguyen/repos","events_url":"https://api.github.com/users/P-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/P-nguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/P-nguyen/418_connectathon","description":null,"fork":true,"url":"https://api.github.com/repos/P-nguyen/418_connectathon","forks_url":"https://api.github.com/repos/P-nguyen/418_connectathon/forks","keys_url":"https://api.github.com/repos/P-nguyen/418_connectathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/P-nguyen/418_connectathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/P-nguyen/418_connectathon/teams","hooks_url":"https://api.github.com/repos/P-nguyen/418_connectathon/hooks","issue_events_url":"https://api.github.com/repos/P-nguyen/418_connectathon/issues/events{/number}","events_url":"https://api.github.com/repos/P-nguyen/418_connectathon/events","assignees_url":"https://api.github.com/repos/P-nguyen/418_connectathon/assignees{/user}","branches_url":"https://api.github.com/repos/P-nguyen/418_connectathon/branches{/branch}","tags_url":"https://api.github.com/repos/P-nguyen/418_connectathon/tags","blobs_url":"https://api.github.com/repos/P-nguyen/418_connectathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/P-nguyen/418_connectathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/P-nguyen/418_connectathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/P-nguyen/418_connectathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/P-nguyen/418_connectathon/statuses/{sha}","languages_url":"https://api.github.com/repos/P-nguyen/418_connectathon/languages","stargazers_url":"https://api.github.com/repos/P-nguyen/418_connectathon/stargazers","contributors_url":"https://api.github.com/repos/P-nguyen/418_connectathon/contributors","subscribers_url":"https://api.github.com/repos/P-nguyen/418_connectathon/subscribers","subscription_url":"https://api.github.com/repos/P-nguyen/418_connectathon/subscription","commits_url":"https://api.github.com/repos/P-nguyen/418_connectathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/P-nguyen/418_connectathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/P-nguyen/418_connectathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/P-nguyen/418_connectathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/P-nguyen/418_connectathon/contents/{+path}","compare_url":"https://api.github.com/repos/P-nguyen/418_connectathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/P-nguyen/418_connectathon/merges","archive_url":"https://api.github.com/repos/P-nguyen/418_connectathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/P-nguyen/418_connectathon/downloads","issues_url":"https://api.github.com/repos/P-nguyen/418_connectathon/issues{/number}","pulls_url":"https://api.github.com/repos/P-nguyen/418_connectathon/pulls{/number}","milestones_url":"https://api.github.com/repos/P-nguyen/418_connectathon/milestones{/number}","notifications_url":"https://api.github.com/repos/P-nguyen/418_connectathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/P-nguyen/418_connectathon/labels{/name}","releases_url":"https://api.github.com/repos/P-nguyen/418_connectathon/releases{/id}","deployments_url":"https://api.github.com/repos/P-nguyen/418_connectathon/deployments","created_at":"2018-05-23T16:03:42Z","updated_at":"2018-05-25T00:53:21Z","pushed_at":"2018-05-29T23:59:50Z","git_url":"git://github.com/P-nguyen/418_connectathon.git","ssh_url":"git@github.com:P-nguyen/418_connectathon.git","clone_url":"https://github.com/P-nguyen/418_connectathon.git","svn_url":"https://github.com/P-nguyen/418_connectathon","homepage":null,"size":8565,"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":"dpaschal-lf:master","ref":"master","sha":"2e9cc1429be30d378bd1a181e7ad6255953979d0","user":{"login":"dpaschal-lf","id":10343746,"node_id":"MDQ6VXNlcjEwMzQzNzQ2","avatar_url":"https://avatars3.githubusercontent.com/u/10343746?v=4","gravatar_id":"","url":"https://api.github.com/users/dpaschal-lf","html_url":"https://github.com/dpaschal-lf","followers_url":"https://api.github.com/users/dpaschal-lf/followers","following_url":"https://api.github.com/users/dpaschal-lf/following{/other_user}","gists_url":"https://api.github.com/users/dpaschal-lf/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaschal-lf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaschal-lf/subscriptions","organizations_url":"https://api.github.com/users/dpaschal-lf/orgs","repos_url":"https://api.github.com/users/dpaschal-lf/repos","events_url":"https://api.github.com/users/dpaschal-lf/events{/privacy}","received_events_url":"https://api.github.com/users/dpaschal-lf/received_events","type":"User","site_admin":false},"repo":{"id":134483679,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ0ODM2Nzk=","name":"418_connectathon","full_name":"dpaschal-lf/418_connectathon","owner":{"login":"dpaschal-lf","id":10343746,"node_id":"MDQ6VXNlcjEwMzQzNzQ2","avatar_url":"https://avatars3.githubusercontent.com/u/10343746?v=4","gravatar_id":"","url":"https://api.github.com/users/dpaschal-lf","html_url":"https://github.com/dpaschal-lf","followers_url":"https://api.github.com/users/dpaschal-lf/followers","following_url":"https://api.github.com/users/dpaschal-lf/following{/other_user}","gists_url":"https://api.github.com/users/dpaschal-lf/gists{/gist_id}","starred_url":"https://api.github.com/users/dpaschal-lf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpaschal-lf/subscriptions","organizations_url":"https://api.github.com/users/dpaschal-lf/orgs","repos_url":"https://api.github.com/users/dpaschal-lf/repos","events_url":"https://api.github.com/users/dpaschal-lf/events{/privacy}","received_events_url":"https://api.github.com/users/dpaschal-lf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dpaschal-lf/418_connectathon","description":null,"fork":false,"url":"https://api.github.com/repos/dpaschal-lf/418_connectathon","forks_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/forks","keys_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/teams","hooks_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/hooks","issue_events_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/events{/number}","events_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/events","assignees_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/assignees{/user}","branches_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/branches{/branch}","tags_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/tags","blobs_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/statuses/{sha}","languages_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/languages","stargazers_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/stargazers","contributors_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/contributors","subscribers_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/subscribers","subscription_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/subscription","commits_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/contents/{+path}","compare_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/merges","archive_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/downloads","issues_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues{/number}","pulls_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls{/number}","milestones_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/milestones{/number}","notifications_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/labels{/name}","releases_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/releases{/id}","deployments_url":"https://api.github.com/repos/dpaschal-lf/418_connectathon/deployments","created_at":"2018-05-22T22:43:45Z","updated_at":"2018-05-22T23:07:54Z","pushed_at":"2018-05-30T00:34:27Z","git_url":"git://github.com/dpaschal-lf/418_connectathon.git","ssh_url":"git@github.com:dpaschal-lf/418_connectathon.git","clone_url":"https://github.com/dpaschal-lf/418_connectathon.git","svn_url":"https://github.com/dpaschal-lf/418_connectathon","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":7,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9"},"html":{"href":"https://github.com/dpaschal-lf/418_connectathon/pull/9"},"issue":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/9"},"comments":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dpaschal-lf/418_connectathon/statuses/a23cd2ff46df3706ebdb6ccedf09953c9343078a"}},"author_association":"NONE"}}
{"actor":{"display_login":"dpaschal-lf"}}