diff --git a/src/components/Board.svelte b/src/components/Board.svelte index 37a0b5f..fa0fbac 100644 --- a/src/components/Board.svelte +++ b/src/components/Board.svelte @@ -1,5 +1,7 @@ -
-
-
-
-
+
+
+ + + +
diff --git a/src/components/store.ts b/src/components/store.ts index ae72ce4..a6bc359 100644 --- a/src/components/store.ts +++ b/src/components/store.ts @@ -13,6 +13,7 @@ const createEmptyGrid = (): TileType[][] => { export const createInitialGameState = (wordId?: number): GameData => { const gameState: GameData = { + loading: false, grid: createEmptyGrid(), currentRow: 0, state: GameState.Playing, @@ -24,6 +25,7 @@ export const createInitialGameState = (wordId?: number): GameData => { }; interface GameData { + loading: boolean; grid: TileType[][]; currentRow: number; state: GameState;