Make board size dynamic
This commit is contained in:
parent
2cf011ed03
commit
87f078da13
1 changed files with 2 additions and 9 deletions
11
src/js/types.d.ts
vendored
11
src/js/types.d.ts
vendored
|
@ -6,16 +6,9 @@ type CellOwner = "" | "r" | "b";
|
||||||
/**
|
/**
|
||||||
* Represents a row of the game field.
|
* Represents a row of the game field.
|
||||||
*/
|
*/
|
||||||
type Row = [CellOwner, CellOwner, CellOwner, CellOwner, CellOwner, CellOwner, CellOwner];
|
type Row = CellOwner[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a game board.
|
* Represents a game board.
|
||||||
*/
|
*/
|
||||||
type Board = [
|
type Board = Row[];
|
||||||
Row,
|
|
||||||
Row,
|
|
||||||
Row,
|
|
||||||
Row,
|
|
||||||
Row,
|
|
||||||
Row
|
|
||||||
];
|
|
||||||
|
|
Loading…
Reference in a new issue