From 647edc9389b24bda19503514170ed31301ea0a72 Mon Sep 17 00:00:00 2001 From: Brendan F Date: Mon, 19 Feb 2024 20:35:50 -0800 Subject: Add guess states and exact artist match as a yellow --- src/types/guess.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/types') 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, +} -- cgit v1.2.3