Spaces:
Sleeping
Sleeping
File size: 518 Bytes
1bc8781 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
export const enum LetterState {
INITIAL = '',
CORRECT = 'correct',
PRESENT = 'present',
ABSENT = 'absent'
}
export const enum GameState {
LOADING,
PLAYING,
SUCESS,
FAIL,
COMPLETED
}
export interface Tile {
letter: string;
state: LetterState;
correct: string;
}
export type Board = Tile[][];
export interface PromptsData {
[key: string]: string[];
}
export interface BadgeComponent {
[key: number]: string;
}
export interface SuccessPrompt {
prompt: string;
idx: number;
}
export type User = string;
|