diff --git a/Examples/TicTacToe/TicTacToeApp.js b/Examples/TicTacToe/TicTacToeApp.js index ff74aa2f2edb06..d1499f25c50e8f 100755 --- a/Examples/TicTacToe/TicTacToeApp.js +++ b/Examples/TicTacToe/TicTacToeApp.js @@ -39,7 +39,7 @@ class Board { return this; } - hasMove(row: number, col: number): boolean { + hasMark(row: number, col: number): boolean { return this.grid[row][col] !== 0; } @@ -175,7 +175,7 @@ var TicTacToeApp = React.createClass({ }, handleCellPress(row: number, col: number) { - if (this.state.board.hasMove(row, col)) { + if (this.state.board.hasMark(row, col)) { return; }