(gameState): Prepare future props

This commit is contained in:
2024-02-15 19:30:04 +01:00
parent 6aca7b49cf
commit 6c86744275
+13
View File
@@ -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: '',
},
});