-
Notifications
You must be signed in to change notification settings - Fork 21
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
Audrey's tic-tac-toe #10
base: ald/master
Are you sure you want to change the base?
Conversation
@@ -1,3 +1,41 @@ | |||
html { | |||
|
|||
} |
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.
Make sure to remove these lines if not needed.
|
||
//defines what the current board is | ||
TicTacToe.prototype.updateBoard = function(nextBoard) { | ||
this.currentBoard = nextBoard; | ||
} |
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 job using SRP and making your functions do one specific thing.
Nice job! Your code was well formatted and easy to follow. Well done on commenting throughout your code and making the functions singly responsive (except that checkGame function). I like the theme you had going. Keep up the good work! 🌠 |
Completed rules and specs.
After a game is finished, clicking anyplace on the board starts a new game.
Chose to use 2D array for containing the board. To check for a win, board is broken down into the 8 possible winning combinations are forEach checked for equality.