diff --git a/src/js/State.js b/src/js/State.js index 8c553f9..a6d71ec 100644 --- a/src/js/State.js +++ b/src/js/State.js @@ -2,19 +2,19 @@ * The state of the board. */ export const State = { - turnCount: 0, + turnCount: 0, - /** - * Gets the id of the current player. - * - * @type {CellOwner} - */ - get currentPlayer() - { - return this.turnCount % 2 === 0 ? "r" : "b"; - }, + /** + * Gets the id of the current player. + * + * @type {CellOwner} + */ + get currentPlayer() + { + return this.turnCount % 2 === 0 ? "r" : "b"; + }, - board: /** @type {Board} */ ( - Array(6).fill("").map( - () => (Array(7).fill("")))) + board: /** @type {Board} */ ( + Array(6).fill("").map( + () => (Array(7).fill("")))) };