Challenge: Tic-Tac-Toe
So, my son needs help again. He was not sure why he did not past to the next level on step 2. What he was not sure at is that the:
Tile.prototype.handleMouseClick = function(x, y) {
// Check for mouse click inside the tile
if (x >= this.x && x <= this.x + this.size &&
y >= this.y && y >= this.x + this.size)
{
this.onclick();
}
};
Is suppose to be right but it didn't work. Please give him an answer why it is wrong or what he is missing on his code.
Влезте в услугата, за да оставите коментар.