Spaces:
Build error
Build error
Download shared/types.ts from Danisz/spymaster-dev-b: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/spaces/Danisz/spymaster-dev-b/resolve/main/shared/types.ts
- Command line
-
hf download hf://spaces/Danisz/spymaster-dev-b/shared/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/Danisz/spymaster-dev-b/resolve/main/shared/types.ts
690 Bytes
| // ICodenamesBrowser interface and supporting types for the Browser Layer | |
| export enum Team { | |
| Red = 'red', | |
| Blue = 'blue', | |
| Neutral = 'neutral', | |
| Assassin = 'assassin', | |
| } | |
| export interface BoardWord { | |
| word: string; | |
| revealed: boolean; | |
| team: Team | null; | |
| } | |
| export interface BoardState { | |
| words: BoardWord[]; | |
| } | |
| export interface Clue { | |
| word: string; | |
| count: number; | |
| } | |
| export interface ICodenamesGameAPI { | |
| joinRoom(options?: any): Promise<void>; | |
| leaveRoom(): Promise<void>; | |
| joinAsSpymaster(team: Team): Promise<void>; | |
| getBoardState(): Promise<BoardState>; | |
| submitClue(clue: Clue): Promise<void>; | |
| makeGuess(word: string): Promise<void>; | |
| endTurn(): Promise<void>; | |
| } |