Skip to content

Submitting Tic-Tac-Toe#7

Open
emgord wants to merge 14 commits intoAda-C4:erg/masterfrom
emgord:erg/master
Open

Submitting Tic-Tac-Toe#7
emgord wants to merge 14 commits intoAda-C4:erg/masterfrom
emgord:erg/master

Conversation

@emgord
Copy link
Copy Markdown

@emgord emgord commented Jan 30, 2016

No description provided.

var player2 = prompt("What is the name of the second player?", "Player O");
var game = new TicTacToe(player1,player2);
$("#alert").text(game.currentPlayer.name + "'s turn");
$(".square").one("click", function(){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice use of the one function here to execute this click handler only once

@kariabancroft
Copy link
Copy Markdown

Nice job on this. I really like the way you kept track of players and the board. I especially like the way you've created the player objects that track the players name and symbol.

@kariabancroft kariabancroft self-assigned this Feb 8, 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