Skip to content
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

Open
wants to merge 10 commits into
base: sat/master
Choose a base branch
from

Conversation

trowbrsa
Copy link

@trowbrsa trowbrsa commented Feb 1, 2016

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.

}

TicTacToe.prototype.play = function(position, marker) {
this.turn();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Watch your indentation here

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?

@kariabancroft
Copy link

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 slice calls, it will work as you expect!

@kariabancroft kariabancroft self-assigned this Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants