(game): Generate grid & User Interactions

Generate grid with bombs & numbers, user interactions like, click on a cell, pin a flag
This commit is contained in:
2024-02-12 11:18:14 +01:00
parent d0d8093fb5
commit 28f48bacdd
10 changed files with 373 additions and 15 deletions
+3
View File
@@ -0,0 +1,3 @@
export type Difficulty = 'beginner' | 'intermediate' | 'expert';
export type CellValue = 'empty' | 'bomb' | number;
export type GridType = { hidden: boolean; value: CellValue; flag: boolean }[][];