From 87f078da13fbd43fd195bd5ad299eed837f47391 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 13 Dec 2022 11:18:23 +0100 Subject: [PATCH] Make board size dynamic --- src/js/types.d.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/js/types.d.ts b/src/js/types.d.ts index 09d85de..3633da2 100644 --- a/src/js/types.d.ts +++ b/src/js/types.d.ts @@ -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[];