Make board size dynamic

This commit is contained in:
Manuel Thalmann 2022-12-13 11:18:23 +01:00
parent 2cf011ed03
commit 87f078da13
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B

11
src/js/types.d.ts vendored
View file

@ -6,16 +6,9 @@ type CellOwner = "" | "r" | "b";
/**
* Represents a row of the game field.
*/
type Row = [CellOwner, CellOwner, CellOwner, CellOwner, CellOwner, CellOwner, CellOwner];
type Row = CellOwner[];
/**
* Represents a game board.
*/
type Board = [
Row,
Row,
Row,
Row,
Row,
Row
];
type Board = Row[];