From fca13acbbe665bc6fac3d7ed709e47e4240c5e59 Mon Sep 17 00:00:00 2001 From: Taha Shieenavaz Date: Sat, 23 Jul 2022 16:16:16 +0430 Subject: [PATCH] Save functionality is added to the game If a user completes the game, leaves and comes back the very same day we show the board he played last time and he or she will not be fooled with the same word again. --- .gitignore | 4 +- src/Game.vue | 640 ++++++++++++++++++++++++++++----------------------- src/types.ts | 5 + 3 files changed, 366 insertions(+), 283 deletions(-) diff --git a/.gitignore b/.gitignore index 53f7466..4bbb0c6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ node_modules .DS_Store dist dist-ssr -*.local \ No newline at end of file +*.local +.idea +.prettierrc diff --git a/src/Game.vue b/src/Game.vue index b61b749..b82db49 100644 --- a/src/Game.vue +++ b/src/Game.vue @@ -1,374 +1,450 @@ diff --git a/src/types.ts b/src/types.ts index 375f069..68d9aaf 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,3 +4,8 @@ export const enum LetterState { PRESENT = 'present', ABSENT = 'absent' } + +export interface Tile { + letter: string + state: LetterState +}