aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorBrendan F <EpicWolverine@users.noreply.github.com>2024-02-19 20:35:50 -0800
committerBrendan F <EpicWolverine@users.noreply.github.com>2024-02-19 20:35:50 -0800
commit647edc9389b24bda19503514170ed31301ea0a72 (patch)
tree2b76df7a0e6ada2ad0042d91b3b7b2a679e2f5e8 /src/types
parentaa3a3063cbbd449ecd8b0d6092fd83ea4db27984 (diff)
Add guess states and exact artist match as a yellow
Diffstat (limited to 'src/types')
-rw-r--r--src/types/guess.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/types/guess.ts b/src/types/guess.ts
index a84602d..ea5a6ad 100644
--- a/src/types/guess.ts
+++ b/src/types/guess.ts
@@ -2,6 +2,12 @@ import { Song } from "./song";
export type GuessType = {
song: Song | undefined;
- skipped: boolean;
- isCorrect: boolean | undefined;
+ state: GuessState | undefined;
};
+
+export const enum GuessState {
+ Correct = 0,
+ PartiallyCorrect = 1,
+ Incorrect = 2,
+ Skipped = 3,
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage