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

Audrey's tic-tac-toe #10

Open
wants to merge 23 commits into
base: ald/master
Choose a base branch
from
Open

Audrey's tic-tac-toe #10

wants to merge 23 commits into from

Conversation

Dreedle
Copy link

@Dreedle Dreedle commented Jan 30, 2016

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.

@acmei acmei self-assigned this Feb 9, 2016
@@ -1,3 +1,41 @@
html {

}
Copy link

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;
}
Copy link

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.

@acmei
Copy link

acmei commented Feb 10, 2016

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! 🌠

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