diff --git a/src/lib/game/game.ts b/src/lib/game/game.ts index be79b9d..e6acbe4 100644 --- a/src/lib/game/game.ts +++ b/src/lib/game/game.ts @@ -1,3 +1,10 @@ +import { Awaitable } from "../utils.ts"; + export type Info = { kind: "abscent" } | { kind: "somewhere" } | { kind: "there" }; export type GuessResult = { kind: "success" } | { kind: "failure"; informations: Info[] }; + +export interface Gaming { + length(): number; + guess(guess: string, known: string): Awaitable; +}