-
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
draft submission for TicTacToe #21
base: sat/master
Are you sure you want to change the base?
Conversation
…lue for a particular slot selected
…ch player on each turn
} | ||
|
||
TicTacToe.prototype.play = function(position, marker) { | ||
this.turn(); |
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.
Watch your indentation here
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.
It seems like you would want to switch the players at the end of a turn instead of at the beginning of the turn, right? Will this then end up with player 2 as the first player?
Nice job separating everything out into functions. I like the way you've used the turns to determine which player you're on, though I think you could go a step further and use this saved data again. I think if you adjust the parameters you've used in the |
Currently, the click, turn, and player functionality work. However, the won? logic is not getting triggered. The board array is correctly populating with x's and o's based on my game's logic, so I am debugging this section.