From: Carl Worth Date: Mon, 1 Jun 2020 21:32:50 +0000 (-0700) Subject: tictactoe: Reword the comment describing the add_move method X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=53806350bc2b8e36bf9d2561729b4608403af96d tictactoe: Reword the comment describing the add_move method The former wording was just a little vague and potentially ambiguous. It's now more clear about when a true value is returned, and when false is returned. --- diff --git a/tictactoe.js b/tictactoe.js index a60eed6..d5a07b2 100644 --- a/tictactoe.js +++ b/tictactoe.js @@ -11,7 +11,7 @@ class TicTacToe extends Game { }; } - /* Returns Boolean indicating whether move was legal and added. */ + /* Returns true if move was legal and added, false otherwise. */ add_move(square) { /* Cannot move to an occupied square. */ if (this.state.board[square])