Change indentation to spaces
This commit is contained in:
parent
f3a9568f70
commit
8119440db0
1 changed files with 13 additions and 13 deletions
|
@ -2,19 +2,19 @@
|
||||||
* The state of the board.
|
* The state of the board.
|
||||||
*/
|
*/
|
||||||
export const State = {
|
export const State = {
|
||||||
turnCount: 0,
|
turnCount: 0,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the id of the current player.
|
* Gets the id of the current player.
|
||||||
*
|
*
|
||||||
* @type {CellOwner}
|
* @type {CellOwner}
|
||||||
*/
|
*/
|
||||||
get currentPlayer()
|
get currentPlayer()
|
||||||
{
|
{
|
||||||
return this.turnCount % 2 === 0 ? "r" : "b";
|
return this.turnCount % 2 === 0 ? "r" : "b";
|
||||||
},
|
},
|
||||||
|
|
||||||
board: /** @type {Board} */ (
|
board: /** @type {Board} */ (
|
||||||
Array(6).fill("").map(
|
Array(6).fill("").map(
|
||||||
() => (Array(7).fill(""))))
|
() => (Array(7).fill(""))))
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue