{"action":"created","comment":{"url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/comments/148045986","pull_request_review_id":73228052,"id":148045986,"diff_hunk":"@@ -24,23 +24,51 @@ function printBoard() {\n }\n \n function horizontalWin() {\n-  // Your code here\n+  //horizontalWin(), checks if there are three X's or O's in [0][0], [0][1], [0][2], etc, indexOf method\n+  if (printBoard.indexOf(printBoard) === ((([0][0]) && [0][1] && [0][2]) || ([1][0] && [1][1] && [1][2]) || ([2][0] && [2][1] && [2][2])) {\n+    return 'You Win!';\n+  } else {\n+    const getPrompt;\n+  }\n }\n \n function verticalWin() {\n-  // Your code here\n+  //verticalWin(), checks if there are th ree X's or O'ss in [0][0], [1][0], [2][0]; [0][1], [1][1], [2][1]; [0][2], [1][2], [2][2]; indexOf method\n+  if (printBoard.indexOf(printBoard) === ((([0][0]) && [1][0] && [2][0]) || ([0][1] && [1][1] && [2][1]) || ([0][2] && [1][2] && [2][2])) {\n+    return 'You Win!';\n+  } else {\n+    const getPrompt;\n+  }\n }\n \n function diagonalWin() {\n-  // Your code here\n+  //diagonalWin(), checks if there are three X's or O's in [0][0], [1][1], [2][2]; [0][2], [1][1], [2][0]; indexOf method\n+  if (printBoard.indexOf(printBoard) === ((([0][0]) && [1][1] && [2][2]) || ([0][2] && [1][1] && [2][0])) {\n+    return 'You Win!';\n+  } else {\n+    const getPrompt;\n+  }\n }\n \n function checkForWin() {\n-  // Your code here\n+  //checkForWin(), check if horizontalWin, verticalWin, diagonalWin have three of the same values, if else statements\n+  if (diagonalWin || verticalWin || horizontalWin) {\n+    return 'Play again?';\n+  }\n }\n \n function ticTacToe(row, column) {\n-  // Your code here\n+  //ticTacToe(), begin the game with player X\n+  print(row, column)\n+  //playerXTurn(), set playerTurn to 'X' - place an X in the column/row that player X chooses, splice method on var board\n+  checkForWin\n+  let playerTurn = 'O';\n+  //playerOTurn(), change playerTurn to 'O' - switch to player O, place an O in the column/row that player O chooses, splice method on var board\n+  //switch back to player X, run the same code again\n+  checkForWin","path":"03week/ticTacToe.js","position":50,"original_position":50,"commit_id":"e5cde3fa1763640b8aa73a318ee8529553f8c81e","original_commit_id":"e5cde3fa1763640b8aa73a318ee8529553f8c81e","user":{"login":"reneedudley","id":12837355,"avatar_url":"https://avatars0.githubusercontent.com/u/12837355?v=4","gravatar_id":"","url":"https://api.github.com/users/reneedudley","html_url":"https://github.com/reneedudley","followers_url":"https://api.github.com/users/reneedudley/followers","following_url":"https://api.github.com/users/reneedudley/following{/other_user}","gists_url":"https://api.github.com/users/reneedudley/gists{/gist_id}","starred_url":"https://api.github.com/users/reneedudley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneedudley/subscriptions","organizations_url":"https://api.github.com/users/reneedudley/orgs","repos_url":"https://api.github.com/users/reneedudley/repos","events_url":"https://api.github.com/users/reneedudley/events{/privacy}","received_events_url":"https://api.github.com/users/reneedudley/received_events","type":"User","site_admin":false},"body":"This throws and error, your calling a checkForWin variable here not a function.","created_at":"2017-10-31T16:10:36Z","updated_at":"2017-10-31T16:11:51Z","html_url":"https://github.com/walzer85/javascript-workbook/pull/7#discussion_r148045986","pull_request_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/comments/148045986"},"html":{"href":"https://github.com/walzer85/javascript-workbook/pull/7#discussion_r148045986"},"pull_request":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7","id":149070376,"html_url":"https://github.com/walzer85/javascript-workbook/pull/7","diff_url":"https://github.com/walzer85/javascript-workbook/pull/7.diff","patch_url":"https://github.com/walzer85/javascript-workbook/pull/7.patch","issue_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/7","number":7,"state":"open","locked":false,"title":"Class5 tictactoe","user":{"login":"walzer85","id":29731790,"avatar_url":"https://avatars2.githubusercontent.com/u/29731790?v=4","gravatar_id":"","url":"https://api.github.com/users/walzer85","html_url":"https://github.com/walzer85","followers_url":"https://api.github.com/users/walzer85/followers","following_url":"https://api.github.com/users/walzer85/following{/other_user}","gists_url":"https://api.github.com/users/walzer85/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer85/subscriptions","organizations_url":"https://api.github.com/users/walzer85/orgs","repos_url":"https://api.github.com/users/walzer85/repos","events_url":"https://api.github.com/users/walzer85/events{/privacy}","received_events_url":"https://api.github.com/users/walzer85/received_events","type":"User","site_admin":false},"body":"## Checkpoint Rubric\r\nThis is the rubric that your instructor will use to grade your checkpoints. Please do not edit. \r\n\r\n**Checkpoint 1**\r\n- [ ] All tests passed: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript: 30 points\r\n\r\n**Checkpoint 2**\r\n- [ ] The application works as it should: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript and the DOM API: 30 points\r\n\r\n**Checkpoint 3**\r\n- [ ] Use of React: 25 points\r\n- [ ] Accesses an API: 25 points\r\n- [ ] Proper use of documentation (commenting on code): 25 points\r\n- [ ] The application functions as it should: 25 points\r\n","created_at":"2017-10-26T23:36:40Z","updated_at":"2017-10-31T16:11:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6344570a84a5d1b1902dffdb380a5b4c8c45f41","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7/commits","review_comments_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7/comments","review_comment_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/7/comments","statuses_url":"https://api.github.com/repos/walzer85/javascript-workbook/statuses/e5cde3fa1763640b8aa73a318ee8529553f8c81e","head":{"label":"walzer85:class5-tictactoe","ref":"class5-tictactoe","sha":"e5cde3fa1763640b8aa73a318ee8529553f8c81e","user":{"login":"walzer85","id":29731790,"avatar_url":"https://avatars2.githubusercontent.com/u/29731790?v=4","gravatar_id":"","url":"https://api.github.com/users/walzer85","html_url":"https://github.com/walzer85","followers_url":"https://api.github.com/users/walzer85/followers","following_url":"https://api.github.com/users/walzer85/following{/other_user}","gists_url":"https://api.github.com/users/walzer85/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer85/subscriptions","organizations_url":"https://api.github.com/users/walzer85/orgs","repos_url":"https://api.github.com/users/walzer85/repos","events_url":"https://api.github.com/users/walzer85/events{/privacy}","received_events_url":"https://api.github.com/users/walzer85/received_events","type":"User","site_admin":false},"repo":{"id":105715261,"name":"javascript-workbook","full_name":"walzer85/javascript-workbook","owner":{"login":"walzer85","id":29731790,"avatar_url":"https://avatars2.githubusercontent.com/u/29731790?v=4","gravatar_id":"","url":"https://api.github.com/users/walzer85","html_url":"https://github.com/walzer85","followers_url":"https://api.github.com/users/walzer85/followers","following_url":"https://api.github.com/users/walzer85/following{/other_user}","gists_url":"https://api.github.com/users/walzer85/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer85/subscriptions","organizations_url":"https://api.github.com/users/walzer85/orgs","repos_url":"https://api.github.com/users/walzer85/repos","events_url":"https://api.github.com/users/walzer85/events{/privacy}","received_events_url":"https://api.github.com/users/walzer85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walzer85/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/walzer85/javascript-workbook","forks_url":"https://api.github.com/repos/walzer85/javascript-workbook/forks","keys_url":"https://api.github.com/repos/walzer85/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walzer85/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walzer85/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/walzer85/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/walzer85/javascript-workbook/events","assignees_url":"https://api.github.com/repos/walzer85/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/walzer85/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/walzer85/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walzer85/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/walzer85/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/walzer85/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/walzer85/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/walzer85/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/walzer85/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/walzer85/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/walzer85/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/walzer85/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/walzer85/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walzer85/javascript-workbook/merges","archive_url":"https://api.github.com/repos/walzer85/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walzer85/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/walzer85/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/walzer85/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walzer85/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/walzer85/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/walzer85/javascript-workbook/deployments","created_at":"2017-10-03T23:49:13Z","updated_at":"2017-10-03T23:49:15Z","pushed_at":"2017-10-31T11:35:06Z","git_url":"git://github.com/walzer85/javascript-workbook.git","ssh_url":"git@github.com:walzer85/javascript-workbook.git","clone_url":"https://github.com/walzer85/javascript-workbook.git","svn_url":"https://github.com/walzer85/javascript-workbook","homepage":"","size":395,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"walzer85:gh-pages","ref":"gh-pages","sha":"0801b2dcda8608e45160fe425fb26b97aa828b7b","user":{"login":"walzer85","id":29731790,"avatar_url":"https://avatars2.githubusercontent.com/u/29731790?v=4","gravatar_id":"","url":"https://api.github.com/users/walzer85","html_url":"https://github.com/walzer85","followers_url":"https://api.github.com/users/walzer85/followers","following_url":"https://api.github.com/users/walzer85/following{/other_user}","gists_url":"https://api.github.com/users/walzer85/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer85/subscriptions","organizations_url":"https://api.github.com/users/walzer85/orgs","repos_url":"https://api.github.com/users/walzer85/repos","events_url":"https://api.github.com/users/walzer85/events{/privacy}","received_events_url":"https://api.github.com/users/walzer85/received_events","type":"User","site_admin":false},"repo":{"id":105715261,"name":"javascript-workbook","full_name":"walzer85/javascript-workbook","owner":{"login":"walzer85","id":29731790,"avatar_url":"https://avatars2.githubusercontent.com/u/29731790?v=4","gravatar_id":"","url":"https://api.github.com/users/walzer85","html_url":"https://github.com/walzer85","followers_url":"https://api.github.com/users/walzer85/followers","following_url":"https://api.github.com/users/walzer85/following{/other_user}","gists_url":"https://api.github.com/users/walzer85/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer85/subscriptions","organizations_url":"https://api.github.com/users/walzer85/orgs","repos_url":"https://api.github.com/users/walzer85/repos","events_url":"https://api.github.com/users/walzer85/events{/privacy}","received_events_url":"https://api.github.com/users/walzer85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walzer85/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/walzer85/javascript-workbook","forks_url":"https://api.github.com/repos/walzer85/javascript-workbook/forks","keys_url":"https://api.github.com/repos/walzer85/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walzer85/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walzer85/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/walzer85/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/walzer85/javascript-workbook/events","assignees_url":"https://api.github.com/repos/walzer85/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/walzer85/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/walzer85/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walzer85/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/walzer85/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/walzer85/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/walzer85/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/walzer85/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/walzer85/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/walzer85/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/walzer85/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/walzer85/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/walzer85/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/walzer85/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walzer85/javascript-workbook/merges","archive_url":"https://api.github.com/repos/walzer85/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walzer85/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/walzer85/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/walzer85/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/walzer85/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/walzer85/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walzer85/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/walzer85/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/walzer85/javascript-workbook/deployments","created_at":"2017-10-03T23:49:13Z","updated_at":"2017-10-03T23:49:15Z","pushed_at":"2017-10-31T11:35:06Z","git_url":"git://github.com/walzer85/javascript-workbook.git","ssh_url":"git@github.com:walzer85/javascript-workbook.git","clone_url":"https://github.com/walzer85/javascript-workbook.git","svn_url":"https://github.com/walzer85/javascript-workbook","homepage":"","size":395,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7"},"html":{"href":"https://github.com/walzer85/javascript-workbook/pull/7"},"issue":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/issues/7"},"comments":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/walzer85/javascript-workbook/statuses/e5cde3fa1763640b8aa73a318ee8529553f8c81e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"reneedudley"}}