diff --git a/src/contexts/gameState.ts b/src/contexts/gameState.ts index c399358..b32f6ce 100644 --- a/src/contexts/gameState.ts +++ b/src/contexts/gameState.ts @@ -1,5 +1,16 @@ import { atom } from 'recoil'; +/** + * Values: + * - Status: 'settings' | 'idle' | 'playing' | 'board' + * - Difficulty: 'begginer' | 'intermediate' | 'expert' + * - Grid Size: 12, 16, 20 + * - Bombs: ]0;{GridSize}] + * - Placed Flags: [0;{GridSize}] + * - gameTime: Timestamp + * - End Type: 'win' | 'loose' + */ + export const gameStateAtom = atom({ key: 'gameState', default: { @@ -8,5 +19,7 @@ export const gameStateAtom = atom({ gridSize: 12, bombs: 0, placedFlags: 0, + gameTime: 0, + endType: '', }, });