-
Notifications
You must be signed in to change notification settings - Fork 0
Class5 tic tac toe #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Conversation
reneemeyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
| array to equal true for the 3 cases. If doesn't get one to return true will return falsey*/ | ||
| const horizontalWin= () => { | ||
| const horizontal = [0, 1, 2]; | ||
| let result = horizontal.some(indices => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be const, also just return the function, this isn't necessary
return horizontal.some(indices => { ....| array to equal true for the 3 cases. If doesn't get one to return true will return falsey*/ | ||
| const verticalWin= () => { | ||
| const vertical = [0, 1, 2]; | ||
| let result1 = vertical.some(indx => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be const, also just return the function, this isn't necessary
| Will return true if either of the 2 sets will evaluate to true, if not will | ||
| return falsey. | ||
| */ | ||
| if (board[1][1] == playerTurn){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3